1Reproducing Skia Fuzzes 2======================= 3 4We assume that you can [build Skia](/user/build). Many fuzzes only reproduce 5when building with ASAN or MSAN; see [those instructions for more details](./xsan). 6 7When building, you should add the following args to BUILD.gn to make reproducing 8less machine- and platform- dependent: 9 10 skia_use_fontconfig=false 11 skia_use_freetype=true 12 skia_use_system_freetype2=false 13 skia_use_wuffs=true 14 skia_enable_skottie=true 15 skia_enable_fontmgr_custom=false 16 skia_enable_fontmgr_custom_empty=true 17 18All that is needed to reproduce a fuzz downloaded from ClusterFuzz, oss-fuzz or 19fuzzer.skia.org is to run something like: 20 21 out/ASAN/fuzz -b /path/to/downloaded/testcase 22 23The fuzz binary will try its best to guess what the type/name should be based on 24the name of the testcase. Manually providing type and name is also supported, like: 25 26 out/ASAN/fuzz -t filter_fuzz -b /path/to/downloaded/testcase 27 out/ASAN/fuzz -t api -n RasterN32Canvas -b /path/to/downloaded/testcase 28 29To enumerate all supported types and names, run the following: 30 31 out/ASAN/fuzz --help # will list all types 32 out/ASAN/fuzz -t api # will list all names 33