Update PerMessageDeflate.cpp

This commit is contained in:
Alex Hultman
2020-10-24 08:28:35 +02:00
committed by GitHub
parent f9338395d0
commit 72e26ea483
+3 -1
View File
@@ -48,7 +48,9 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
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());
if (inflation.has_value()) {
b.set(inflation->length());
}
});
makeChunked(makePadded(data, size), size, [&staticData](const uint8_t *data, size_t size) {