Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

libgdx/libgdx
master @ 846d63a
5
Fixes
3
CVEs
HIGH
Peak severity
Highlights
Memory Corruption: 3 prior fixes. Scrutinize any change in this area.
gdx-freetype: most-fixed (2 issues). Treat as high-risk during review.
4 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 Safety: The unsafe direct buffer management in BufferUtils contains critical logic flaws, such as returning raw addresses for unregistered buffers or freeing non-unsafe memory blocks, leading directly to JVM crashes or potential exploitation.
Memory Corruption: JNI memory copy operations can overflow target native buffers if the source and destination limits/positions are not verified and explicitly clamped prior to making the native call.
Memory Safety: Texture decoding routines (like ETC1) are susceptible to out-of-bounds writes if target buffer capacities are not validated against the image's dimensions, leading to heap corruption as tracked in CVE-2017-0702.