xserver/render
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Peter Hutterer 489e68673b 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-06-05 15:00:39 +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 render: handle -Wanalyzer-null-dereference in AllocateGlyphHash() 2026-04-21 12:24:55 +02:00
glyphstr.h render: fix missing include in glyphstr.h 2025-09-26 16:45:16 +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 treewide: remove "lib" prefix in static_library names (meson) 2025-07-03 12:01:52 +02:00
miindex.c render: replace xallocarray() by calloc() 2025-06-12 17:21:43 +02:00
mipict.c treewide: replace PICT_TYPE_A by PIXMAN_TYPE_A 2025-08-07 15:35:38 +02:00
mipict.h render: Hide/unexport some implementation details 2015-07-08 16:40:57 -04:00
mirect.c render: use NULL instead of NullClient 2025-07-18 22:24:55 +02:00
mitrap.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
mitri.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
picture.c render: fix multiple mem leaks on err paths 2026-04-21 10:14:25 +02:00
picture.h render: picture: make PictFormatShort equal to pixman_format_code_t 2025-08-06 13:49:13 +02:00
picturestr.h render: drop obsolete pict_t_* defines 2025-11-27 11:58:33 +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-06-05 15:00:39 +02:00