Files
AnyPS5/core/libs/prx/libSceJpegDec
MarcZX10 59a1857e4d fix(libSceJpegDec): reject progressive headers whose coefficient size overflows
fillImageInfo computed mcuColumns * mcuRows * blocksPerMcu * 128 + 64 in
uint32. A progressive header with huge dimensions wrapped the result, so
sceJpegDecParseHeader reported a small coefficient_mem_size and the
coefficient memory check in sceJpegDecDecode was bypassed.

Compute the size in uint64 and fail with the coefficient memory error
(0x80650005, already returned when the supplied coefficient memory is too
small) when it does not fit in uint32.
2026-10-28 03:09:29 +00:00
..