Commit e664029a authored by Janne Grunau's avatar Janne Grunau Committed by Henrik Gramner

fuzzer: use only external API and do not depend on config.h

Makes building under oss-fuzz easier.
parent 2faf1016
......@@ -30,9 +30,11 @@
#include <stdint.h>
#include <string.h>
#include <dav1d.h>
#include <dav1d/dav1d.h>
#include "common/intops.h"
static unsigned r32le(const uint8_t *const p) {
return (p[3] << 24U) | (p[2] << 16U) | (p[1] << 8U) | p[0];
}
// expects ivf input
......@@ -55,7 +57,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
while (ptr <= data + size - 4) {
Dav1dData buf;
size_t frame_size = rl32(ptr);
size_t frame_size = r32le(ptr);
ptr += 4;
if (frame_size > size || ptr > data + size - frame_size)
......
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