| Hasnain Lakhani | 9b13668 | 2025-08-25 11:54:23 -0700 | [diff] [blame] | 1 | # Go fuzzing README |
| 2 | |
| 3 | To build the fuzz targets, simply run `make check` in this directory |
| 4 | |
| 5 | To reproduce a bug, update the code in the fuzz_test.go file, pass the right input buffer in there and update the code to call the relevant function. |
| 6 | |
| 7 | We currently have the following fuzz targets: |
| 8 | |
| 9 | * FuzzTutorial -- a fuzzer which spins up an mini server and fuzzes it with random data, following the tutorial example |
| 10 | * FuzzParseCompact -- fuzzes the deserialization of the Compact protocol |
| 11 | * FuzzParseBinary -- fuzzes the deserialization of the Binary protocol |
| 12 | * FuzzParseJson -- fuzzes the deserialization of the JSON protocol |
| 13 | * FuzzRoundtripCompact -- fuzzes the roundtrip of the Compact protocol |
| 14 | * FuzzRoundtripBinary -- fuzzes the roundtrip of the Binary protocol |
| 15 | * FuzzRoundtripJson -- fuzzes the roundtrip of the JSON protocol |