Skip to content
Myr

make fuzz target compilable as c++ code

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Randy · committed by Randy · parent 9cd6cdc · Browse files · 1 file+9 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+9 added−0 removed

  • tests:+9 added−0 removed

1 file+9 added−0 removed

modified:tests/stbi_read_fuzzer.c+9 added
1#ifdef __cplusplus2extern "C" {3#endif45#define STB_IMAGE_IMPLEMENTATION67#include "../stb_image.h"8910int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)11{12 int x, y, channels;13
7 unmodified lines
21 free(img);2223 return 0;24}2526#ifdef __cplusplus27}28#endif