File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /*
2+ Fuzzing server for LibVNCServer.
3+
4+ This is used by OSS-Fuzz at https://android.googlesource.com/platform/external/oss-fuzz/+/refs/heads/upstream-master/projects/libvnc
5+ which is integrated into our CI at `.github/workflows/cifuzz.yaml`.
6+ OSS-Fuzz basically runs every executable in the $OUT dir with LLVMFuzzerTestOneInput in it,
7+ so other fuzzers can be added later on as well.
8+
9+ If you want to run the fuzzer locally, you have to build like that:
10+
11+ ```
12+ mkdir build
13+ cd build
14+ CC=clang LIB_FUZZING_ENGINE="-fsanitize=fuzzer" CFLAGS="-fsanitize=address,fuzzer-no-link -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1" cmake ..
15+ cmake --build .
16+ ```
17+
18+ and then execute `build/fuzz_server`. You can add some command line options, based on
19+ the fuzzing engine you have used to compile it, see https://llvm.org/docs/LibFuzzer.html
20+
21+ */
22+
23+
124#include <rfb/rfb.h>
225
326static int initialized = 0 ;
You can’t perform that action at this time.
0 commit comments