mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-31 12:35:51 +00:00
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.