Commit 7e693a1d authored by Janne Grunau's avatar Janne Grunau Committed by Henrik Gramner

fuzzer: fix ivf parsing

parent e664029a
......@@ -54,11 +54,11 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
err = dav1d_open(&ctx, &settings);
if (err < 0) goto end;
while (ptr <= data + size - 4) {
while (ptr <= data + size - 12) {
Dav1dData buf;
size_t frame_size = r32le(ptr);
ptr += 4;
ptr += 12;
if (frame_size > size || ptr > data + size - frame_size)
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment