Be strict about maxPayloadLength in inflate

This commit is contained in:
Alex Hultman
2020-01-01 18:15:56 +01:00
parent 6fe5ea40aa
commit bbbe3bda18
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
std::string_view inflation = staticData.inflationStream.inflate(&staticData.zlibContext, std::string_view((char *) data, size), 256);
if (inflation.length() > 256) {
/* Cause ASAN to freak out */
//delete (int *) (void *) 1;
delete (int *) (void *) 1;
}
});