762a9718
by Wei Xie at 2025-11-03T23:18:15+01:00
windowscodecs: Fix potential integer overflow in PNG format reader.
Fixed a potential integer overflow issue in the read_ulong_be function
by adding an explicit cast to ULONG before bit shifting. The data[0]
byte was being shifted left 24 bits without proper casting, which could
cause overflow when the byte value is large and the compiler treats it
as a signed char. This ensures proper 32-bit unsigned integer behavior
during the bitwise OR operations.