Files
photocraft/crates/engine
Sven Lafebre 5c1357b46d Palette PNG indices: no second full-image buffer, and a memory check
The index read kept every index in one vector and then copied it into
the index surface, two bytes per pixel that the open's memory check
never counted. Write the indices into the surface one band of rows at
a time instead, and check that they and one band fit in free memory
before reading. When they don't, no indices are recorded and Color
Table falls back to the nearest entry; the open itself goes on.
2026-11-15 23:31:14 +01:00
..