Out-of-Bounds Access Vulnerability in z2d Zig 2D Graphics Library by Vancluever

Post Reply
Shane1145
Posts: 1624
Joined: Wed Sep 25, 2024 2:31 pm

Out-of-Bounds Access Vulnerability in z2d Zig 2D Graphics Library by Vancluever

Post by Shane1145 »

The z2d Zig 2D graphics library contains an out-of-bounds access vulnerability introduced in version 0.7.0 due to a new multi-sample anti-aliasing method. When drawing paths that partially or fully extend beyond the rendering surface, incorrect bounding may allow access outside the intended memory bounds within the coverage buffer. This impacts key drawing operations like Context.fill and Context.stroke under specific anti-aliasing modes, leading to potential invalid memory accesses or corruption under non-safe optimization settings. Upgrading to z2d version 0.7.1 is strongly advised as it addresses this vulnerability.


https://securityvulnerability.io/vulner ... 2025-55286
Post Reply