Commit b716083c authored by Janne Grunau's avatar Janne Grunau

fuzzer: mask all CPU flags under memory sanitizer

parent 1b536ad4
......@@ -31,6 +31,7 @@
#include <string.h>
#include <dav1d/dav1d.h>
#include "src/cpu.h"
#include "dav1d_fuzzer.h"
static unsigned r32le(const uint8_t *const p) {
......@@ -62,6 +63,13 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
dav1d_version();
// memory sanitizer is inherently incompatible with asm
#if defined(__has_feature)
#if __has_feature(memory_sanitizer)
dav1d_set_cpu_flags_mask(0);
#endif
#endif
if (size < 32) goto end;
ptr += 32; // skip ivf header
......
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