1
0
mirror of https://github.com/glennrp/libpng.git synced 2026-10-24 08:39:18 +03:00
Files
mohammadmseet-hue c0ba09ecb4 fix: Prevent integer overflow in rowbytes computation
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>
2026-04-06 19:02:41 +03:00
..