mirror of
https://github.com/glennrp/libpng.git
synced 2026-10-24 08:39:18 +03:00
Cast `row_width` to `size_t` before multiplication when computing `row_info->rowbytes`, to avoid 32-bit truncation on LP64 systems. Fix the cast order in `png_do_expand_palette` where the widening cast was applied after the multiply rather than before it. Reviewed-by: Cosmin Truta <ctruta@gmail.com> Signed-off-by: Cosmin Truta <ctruta@gmail.com>