edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
| 1 | |
| 2 | |
| 3 | // Untrusted entry: the packet-level H264Decoder as a demuxer drives it. |
| 4 | // Input layout: byte 0 gives the avcC extradata length (modulo the rest), |
| 5 | // the next bytes are the avcC record, and the remainder is one packet |
| 6 | // (length-prefixed NAL units when the record is valid, Annex B otherwise). |
| 7 | |
| 8 | use ; |
| 9 | use ; |
| 10 | use H264Decoder; |
| 11 | use fuzz_target; |
| 12 | |
| 13 | /// Harness caps (see lanes/fuzz1hvideo.report.md): at most 512 bytes of avcC |
| 14 | /// record and 4 KiB of packet, so one exec stays small enough to run at a useful rate. |
| 15 | const MAX_EXTRADATA: usize = 512; |
| 16 | const MAX_PACKET: usize = 4096; |
| 17 | |
| 18 | fuzz_target! |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | ; |