Commit 14889476 authored by Mathis Rosenhauer's avatar Mathis Rosenhauer

First decode fuzzer data, then encode

parent 8d8311ed
......@@ -29,14 +29,14 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
strm.avail_in = Size - 2;
strm.next_out = dest.data();
strm.avail_out = dest.size();
aec_buffer_encode(&strm);
aec_buffer_decode(&strm);
// Encode data
strm.next_in = reinterpret_cast<const unsigned char *>(Data) + 2;
strm.avail_in = Size - 2;
strm.next_out = dest.data();
strm.avail_out = dest.size();
aec_buffer_decode(&strm);
aec_buffer_encode(&strm);
return 0;
}
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