Highlights
Buffer Overflow: 1 prior fix. Scrutinize any change in this area.
v3.1/glfw/glfw_win32_init.c: most-fixed (1 issue). Treat as high-risk during review.
2 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns
The bug types that recur here, drawn from past fixes, not open vulnerabilities.
Memory Corruption: Violating Cgo pointer-passing rules by directly passing Go-managed pixel structures to C.glfwCreateCursor can lead to runtime crashes or silent memory corruption. Go's garbage collector may move or reclaim memory that the C library assumes is stable. This requires explicit allocation of C-managed memory to safely bridge the boundary.
Buffer Overflow: Inadequate allocation sizes in custom string duplication or initialization functions on Windows can result in heap-based buffer overflows during copy operations (e.g., via strcpy). This occurs when the memory allocation fails to account for the trailing null-terminator byte.