3
0
mirror of https://github.com/hyprwm/Hyprland.git synced 2026-02-04 19:05:27 +00:00

opengl: default initialize m_capStatus (#12619)

ubsan reports under wonky situation a runtime error of uninitialized
value lookups because of m_capStatus isnt initialized. so default
initialize it.

OpenGL.cpp:3331:26: runtime error: load of value 190, which is not a valid value for type 'bool'
This commit is contained in:
Tom Englund
2025-12-11 01:32:11 +01:00
committed by GitHub
parent f58c80fd39
commit 3cf6dfd7e6

View File

@ -355,7 +355,7 @@ class CHyprOpenGLImpl {
GLsizei height = 0;
} m_lastViewport;
std::array<bool, CAP_STATUS_END> m_capStatus;
std::array<bool, CAP_STATUS_END> m_capStatus = {};
std::vector<SDRMFormat> m_drmFormats;
bool m_hasModifiers = false;