baa580681216e9ee9b866591398aa6f165fbba5e
AC-4.4 allowed 8000 x 8000 pixels: a few kilobytes of flat PNG or WebP decode to 256 MB RGBA, more than the server container's 160 MiB. Now (proposed D-114) the header must also give at most 16 000 000 pixels and at most 64 MB decoded (16 MP x 4 bytes; a 16-bit image is refused above 8 MP), checked before decoding, with the image crate's decoder limits set as well; refused with the existing image_invalid. The decoded image is dropped before the square is converted, and the square converts in place (into_rgba8/into_rgb8), so the peak is one decoded image plus one square. Integration test at and over the pixel cap; unit test of the size rules. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TQd3pEP9UeN2uifbHknQ7B
Description
No description provided
Languages
Kotlin
64.7%
Rust
30.6%
Python
3.4%
Shell
1.1%
Dockerfile
0.2%