Update PerMessageDeflate fuzzing
This commit is contained in:
@@ -21,7 +21,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
|||||||
|
|
||||||
/* Why is this padded? */
|
/* Why is this padded? */
|
||||||
makeChunked(makePadded(data, size), size, [](const uint8_t *data, size_t size) {
|
makeChunked(makePadded(data, size), size, [](const uint8_t *data, size_t size) {
|
||||||
std::string_view inflation = staticData.inflationStream.inflate(&staticData.zlibContext, std::string_view((char *) data, size), 256);
|
auto [inflation, valid] = staticData.inflationStream.inflate(&staticData.zlibContext, std::string_view((char *) data, size), 256);
|
||||||
if (inflation.length() > 256) {
|
if (inflation.length() > 256) {
|
||||||
/* Cause ASAN to freak out */
|
/* Cause ASAN to freak out */
|
||||||
delete (int *) (void *) 1;
|
delete (int *) (void *) 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user