mirror of
https://github.com/RGBCube/serenity
synced 2025-06-16 20:32:09 +00:00

LibFuzzer documentation [1] states that all return values except for 0 and -1 are currently reserved for future use. -1 is a special return value that causes LibFuzzer to not add a testing input to the testing corpus, regardless of the code coverage that it causes. [1] https://llvm.org/docs/LibFuzzer.html
15 lines
333 B
C++
15 lines
333 B
C++
/*
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibVideo/VP9/Decoder.h>
|
|
#include <stddef.h>
|
|
|
|
extern "C" int LLVMFuzzerTestOneInput(u8 const* data, size_t size)
|
|
{
|
|
Video::VP9::Decoder vp9_decoder;
|
|
(void)vp9_decoder.receive_sample({ data, size });
|
|
return 0;
|
|
}
|