Severity
Critical (crash, data loss)
Describe the bug
bool* outputs are cast to BOOL* and passed to WebView2 APIs. BOOL is 4 bytes while C++ bool is 1 byte.
Steps to reproduce
- Call any getter path using:
GetContextMenuEnabled, GetZoomEnabled, or GetDevToolsEnabled
- Observe undefined behavior risk from 4-byte writes into 1-byte storage.
Expected behavior
No memory overwrite; safe conversion from BOOL to bool.
Actual behavior
Potential stack/heap corruption.
Logs / Error Output
Minimal reproduction
src/InfiniFrame.Native/Platform/Windows/Window.cpp:614
src/InfiniFrame.Native/Platform/Windows/Window.cpp:624
src/InfiniFrame.Native/Platform/Windows/Window.cpp:634
.NET Version
No response
Project Version / Commit
No response
Operating System
No response
Checklist
Severity
Critical (crash, data loss)
Describe the bug
bool*outputs are cast toBOOL*and passed to WebView2 APIs.BOOLis 4 bytes while C++boolis 1 byte.Steps to reproduce
GetContextMenuEnabled,GetZoomEnabled, orGetDevToolsEnabledExpected behavior
No memory overwrite; safe conversion from
BOOLtobool.Actual behavior
Potential stack/heap corruption.
Logs / Error Output
Minimal reproduction
src/InfiniFrame.Native/Platform/Windows/Window.cpp:614src/InfiniFrame.Native/Platform/Windows/Window.cpp:624src/InfiniFrame.Native/Platform/Windows/Window.cpp:634.NET Version
No response
Project Version / Commit
No response
Operating System
No response
Checklist