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 fed to the MPEG-1/2 video byte-stream API |
| 4 | // in random-sized chunks, then flushed and drained. Errors are expected for |
| 5 | // malformed input; only panics, hangs and OOM count. |
| 6 | |
| 7 | use ; |
| 8 | use Mpeg2Decoder; |
| 9 | use fuzz_target; |
| 10 | |
| 11 | /// Harness cap: pictures larger than this are not fed further (the decoder |
| 12 | /// itself bounds allocation at 8192x4352; the cap keeps fuzz runs fast). |
| 13 | const MAX_DIM: u32 = 256; |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | fuzz_target! |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | ; |