Update PerMessageDeflate.cpp

This commit is contained in:
Alex Hultman
2020-10-23 22:20:03 +02:00
committed by GitHub
parent e96a6bdb24
commit 4fef0d73e4
+2 -2
View File
@@ -45,10 +45,10 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
/* Why is this padded? */
makeChunked(makePadded(data, size), size, [&staticData, &b](const uint8_t *data, size_t size) {
auto [inflation, valid] = staticData.inflationStream.inflate(&staticData.zlibContext, std::string_view((char *) data, size), 256);
auto inflation = staticData.inflationStream.inflate(&staticData.zlibContext, std::string_view((char *) data, size), 256);
/* Trigger ASAN flaws if length is more than 256 */
b.set(inflation.length());
b.set(inflation->length());
});
makeChunked(makePadded(data, size), size, [&staticData](const uint8_t *data, size_t size) {