blob: 24e5f894b3203804bf9d3d5ee9b0b48d1579bc7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include "../tests.h"
#include <libplacebo/shaders/lut.h>
__AFL_FUZZ_INIT();
#pragma clang optimize off
int main()
{
struct pl_custom_lut *lut;
#ifdef __AFL_HAVE_MANUAL_CONTROL
__AFL_INIT();
#endif
unsigned char *buf = __AFL_FUZZ_TESTCASE_BUF;
while (__AFL_LOOP(100000)) {
size_t len = __AFL_FUZZ_TESTCASE_LEN;
lut = pl_lut_parse_cube(NULL, (char *) buf, len);
pl_lut_free(&lut);
}
}
|