Hyprland/hyprctl
Tom Englund 4b4971c06f
internal: introduce new types to avoid unsigned int rollover and signed int overflow (#7216)
* framebuffer: avoid gluint overflow

GLuint was being initialized to -1 and rolling over to unsigned int max,
its defined behaviour but very unnecessery. add a bool and use it for
checking if allocated or not.

* opengl: avoid gluint rollover

-1 rolls over to unsigned int max, use 0xFF instead.

* core: big uint64_t to int type conversion

there were a few uint64_t to int implicit conversions overflowing int
and causing UB, make all monitor/workspaces/windows use the new
typedefs. also fix the various related 64 to 32 implicit conversions
going around found with -Wshorten-64-to-32
2024-08-08 21:01:50 +02:00
..
CMakeLists.txt hyprctl: link to much less libraries (#7212) 2024-08-07 16:28:02 +02:00
hyprctl.bash hyprctl completions: Use only awk rather than grep + awk 2024-07-02 22:46:20 +03:00
hyprctl.fish hyprctl completions: Use only awk rather than grep + awk 2024-07-02 22:46:20 +03:00
hyprctl.usage Completions: use only awk (#6763) 2024-07-04 14:21:07 +03:00
hyprctl.zsh hyprctl completions: Use only awk rather than grep + awk 2024-07-02 22:46:20 +03:00
main.cpp internal: introduce new types to avoid unsigned int rollover and signed int overflow (#7216) 2024-08-08 21:01:50 +02:00
Makefile makefile: Add CXXFLAGS to hyprlctl's Makefile (#3913) 2023-11-22 11:02:36 +00:00
meson.build core: move to hyprutils for utils (#6385) 2024-06-11 17:17:45 +02:00
Strings.hpp hyprctl: added --follow option to rolliglog (#6325) 2024-06-14 12:11:40 +02:00