cairo/test/svg/fuzzer
2023-01-15 19:00:22 +10:30
..
meson.build We don't use HAVE_CONFIG_H anymore 2023-01-15 19:00:22 +10:30
README Fuzzer 2022-12-28 13:22:00 +10:30
svg-render-fuzzer.c Fuzzer 2022-12-28 13:22:00 +10:30

libFuzzer based fuzzing for cairo-svg-glyph-render.c
====================================================

Build
-----
CC=clang CFLAGS="-DDEBUG_SVG_RENDER -g -fsanitize=fuzzer-no-link,address" meson -Db_lundef=false bld-fuzzer
ninja -C bld-fuzzer


Test
----
  ./bld-fuzzer/test/svg/fuzzer/svg-render-fuzzer <CORPUS DIR>

where <CORPUS DIR> is a directory containing SVG files.

If the fuzzer crashes, a crash-* file will be written. Run the
fuzzer with the crash file to reproduce the crash.

  ./bld-fuzzer/test/svg/fuzzer/svg-render-fuzzer <crash-file>