Commit ceb748f
committed
Fix heap-buffer-overflow
Resolved a heap-buffer-overflow in _twin_edge_fill by adjusting boundary
initialization. The right clip boundary was set to pixmap->width - 1,
ensuring correct clipping during rendering.
This prevents out-of-bounds memory access when filling spans and avoids
memory overflow issues during edge rendering.
- Set pixmap->clip.right = pixmap->width - 11 parent 8ef78ba commit ceb748f
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
226 | | - | |
| 225 | + | |
| 226 | + | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| |||
0 commit comments