xserver/render
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Peter Hutterer 8b947b4db9 cursor: fix AllocARGBCursor leak/double-free for psrcbits/pmaskbits/argb
AllocARGBCursor took ownership of the psrcbits/pmaskbits/argb arguments.
But if the initial calloc failed none of them were freed, without the
caller knowing about it. Depending on the code path, those arguments
would thus either leak or be double-freed.

Fix it by always freeing those on error and updating the callers
accordingly.

Assisted-by: Claude:claude-opus-4-6
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2214>
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-05-21 16:50:29 +02:00
..
animcur.c treewide: macros lambda-esque screen iteration 2025-10-01 11:40:34 +02:00
filter.c treewide: macros lambda-esque screen iteration 2025-10-01 11:40:34 +02:00
glyph.c treewide: clean up includes of mipict.h 2026-04-30 14:51:33 +02:00
glyphstr_priv.h render: fix refcounting of glyphs during ProcRenderAddGlyphs 2024-04-02 19:19:40 -07:00
matrix.c render: drop obsolete including of colormapst.h 2025-06-12 17:21:43 +02:00
meson.build render: move over public SDK headers to include/ 2026-02-12 17:43:44 +01:00
miindex.c treewide: clean up includes of mipict.h 2026-04-30 14:51:33 +02:00
mipict.c treewide: clean up includes of mipict.h 2026-04-30 14:51:33 +02:00
mirect.c treewide: clean up includes of mipict.h 2026-04-30 14:51:33 +02:00
mitrap.c treewide: clean up includes of mipict.h 2026-04-30 14:51:33 +02:00
mitri.c treewide: clean up includes of mipict.h 2026-04-30 14:51:33 +02:00
picture.c render: fix multiple mem leaks on err paths 2026-03-16 13:26:38 +01:00
picturestr_priv.h rename old symbol PANORAMIX to XINERAMA 2025-02-06 15:51:27 +00:00
render.c cursor: fix AllocARGBCursor leak/double-free for psrcbits/pmaskbits/argb 2026-05-21 16:50:29 +02:00