Files
wxWidgets/src
MarkLee131 edae38f44a Avoid out-of-bounds line-buffer read in wxPCXHandler::LoadFile
The PCX header's width and bytesperline are independent fields,
never cross-validated. A header with width > bytesperline produces a
small per-line buffer p and then reads p[i] for i < width past the
buffer end (the 24-bit branch additionally reads p[i + 2 * bytesperline]).

Reject the file when width exceeds bytesperline, or when either is
non-positive.

Closes #26441, #26443.
2026-05-11 01:10:25 +02:00
..