mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
The decode admission counted each pixel's channel samples and vector header but not the heap capacity of the per-pixel (id, coverage) pair lists. A compressed Cryptomatte document could therefore return pixel storage exceeding the caller's max_alloc budget. Include the maximum pair capacity (one pair per rank, 8 bytes each) in the per-pixel byte count before check_bytes. Finding: 5482ed4a-bc95-43fc-84d1-d5bfb6373761 (CWE-400)