edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
| 1 | |
| 2 | |
| 3 | // Untrusted entry: arbitrary bytes pushed into the MP1/MP2/MP3 byte-stream reader in chunks |
| 4 | // sized by the first byte, then every frame is decoded until the reader reports an error or |
| 5 | // runs dry. Errors are expected for malformed input; only panics, hangs and OOM count. |
| 6 | |
| 7 | use Mp3Reader; |
| 8 | use fuzz_target; |
| 9 | |
| 10 | /// Harness cap: frames decoded per input. A Layer III frame is 1152 samples, so this bounds |
| 11 | /// the work per input without starving the reader of resync and reservoir paths. |
| 12 | const MAX_FRAMES: usize = 512; |
| 13 | |
| 14 | fuzz_target! |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | ; |