| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2025-12-18 | fix: Initialize uninitialized member variables | Tomi Valkeinen | |
| This commit addresses cppcheck warnings about member variables that are not properly initialized in constructors (uninitMemberVar). Uninitialized member variables can lead to undefined behavior and unpredictable program execution, making this a critical bug fix. Changes made: - kmscube/cube-gles2.cpp: Initialize m_width and m_height to 0 in GlScene constructor to prevent undefined behavior when these values are used - utils/kmstest.cpp: Initialize m_frame_num and m_flip_count to 0 in FlipState constructor to ensure proper frame counting behavior These fixes prevent potential crashes and ensure deterministic behavior by providing proper initial values for all member variables. | |||
| 2025-12-18 | fix: Replace C-style casts with C++ casts | Tomi Valkeinen | |
| This commit addresses cppcheck warnings about C-style casts (cstyleCast) by replacing them with appropriate C++ casts. C-style casts are considered dangerous because they can perform unsafe conversions without compile-time type checking, while C++ casts are more explicit and type-safe. Changes made: - static_cast for safe type conversions (e.g., void* to struct*) - reinterpret_cast for pointer type conversions (e.g., uint8_t* to char*) - Combined static_cast and reinterpret_cast for integer-to-pointer conversions Fixed files: - kmscube/cube-gles2.cpp: GLvoid* casts for OpenGL vertex attribute pointers - kmscube/cube-wl.cpp: Wayland interface pointer casts - kmscube/cube-x11.cpp: X11 window handle conversion - utils/fbtest.cpp: mmap return value cast - utils/kmstest.cpp: Framebuffer pointer arithmetic - utils/kmsview.cpp: Framebuffer memory mapping cast | |||
| 2020-10-09 | Bulk format of all files | Tomi Valkeinen | |
| 2016-06-11 | kms++util: split to subdirs | Tomi Valkeinen | |
| 2016-05-23 | Reorganize libkms++utils header | Tomi Valkeinen | |
| 2016-04-16 | kmscube: split into parts | Tomi Valkeinen | |
