[wxWidgets/wxWidgets] b47e2b: Validate 4-bit BMP palette index against number of...

0 views
Skip to first unread message

Steve Cornett

unread,
May 26, 2026, 6:02:32 PMMay 26
to wx-co...@googlegroups.com
Branch: refs/heads/master
Home: https://github.com/wxWidgets/wxWidgets
Commit: b47e2bb3527862397cafc7d200637db2ec0194f8
https://github.com/wxWidgets/wxWidgets/commit/b47e2bb3527862397cafc7d200637db2ec0194f8
Author: dxbjavid <dxbj...@gmail.com>
Date: 2026-05-26 (Tue, 26 May 2026)

Changed paths:
M src/common/imagbmp.cpp
M tests/image/image.cpp

Log Message:
-----------
Validate 4-bit BMP palette index against number of colors

Fix out-of-bounds read when decoding 4bpp BMP with invalid palette
indices.

Closes #26511.


Commit: 975dc5e53dc303629d3cc2e9276350a08d1b6a4d
https://github.com/wxWidgets/wxWidgets/commit/975dc5e53dc303629d3cc2e9276350a08d1b6a4d
Author: Steve Cornett <21205494...@users.noreply.github.com>
Date: 2026-05-26 (Tue, 26 May 2026)

Changed paths:
M src/msw/window.cpp

Log Message:
-----------
wxMSW: Repaint all windows upon system color change

The problem is when the system switches between dark and light mode,
Refresh() is never called. More specifically, when WM_SETTINGCHANGE
occurs with "ImmersiveColorSet", HandleSettingChange() is not called.
But that is where the only Refresh() call is.

Top level windows should get Refresh() upon WM_SYSCOLORCHANGE as well as
WM_SETTINGCHANGE. Adding another Refresh() call into
HandleSysColorChange() solves the problem.

Closes #26514.


Compare: https://github.com/wxWidgets/wxWidgets/compare/8ff2ba11cc22...975dc5e53dc3

To unsubscribe from these emails, change your notification settings at https://github.com/wxWidgets/wxWidgets/settings/notifications
Reply all
Reply to author
Forward
0 new messages