edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
| 1 | //! Inputs the fuzz review and the read-through found to allocate without bound, before the fixes |
| 2 | //! in `lib.rs`: an object or a canvas sized by a 16-bit field. |
| 3 | |
| 4 | use ; |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | /// A 1920x1080 canvas with one object placed at (0,0), epoch start. |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | /// Palette entry 1 opaque white. |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | /// One ODS whose declared size is `width` x `height`, with `rle` as its data. |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | /// A 65535 x 65535 object used to be allocated as a RLE bitmap (4 GB) and decoded at render time. |
| 39 | /// It is now refused with `Error::corrupt`, the segments after it still decode, and nothing is |
| 40 | /// allocated for it. |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | /// A canvas stated at 65535 x 65535 used to be allocated as RGBA (17 GB). It is refused. |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 |