xserver/render
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Enrico Weigelt, metux IT consult 8e88faae02 render: filter: fix integer-overflow bypass of convolution size check
convolutionFilterValidateParams() derives w/h from client-supplied
xFixed values via the sign-extending xFixedToInt(), then checked
'w * h > nparams' as a plain (signed) int product. A client can choose
negative w/h so the mathematical product is huge but the signed int
product wraps to a small or negative value, defeating the bounds check
that is supposed to reject a convolution kernel larger than the actual
parameter list.

Reject negative w/h outright and compare the product as int64_t so it
cannot wrap before the comparison.

Signed-off-by: Enrico Weigelt, metux IT consult <enrico.weigelt@vnc.biz>
(cherry picked from commit 6a97f6d38e)
2026-10-07 18:26:48 +02:00
..
animcur.c render: fix CVE-2025-49175 2025-06-17 20:01:25 +02:00
filter.c render: filter: fix integer-overflow bypass of convolution size check 2026-10-07 18:26:48 +02:00
glyph.c Fix use-after-free caused by duplicate glyphs in one glyphset 2026-10-02 17:09:37 +02:00
glyphstr.h render: fix missing include in glyphstr.h 2025-09-26 16:45:33 +02:00
glyphstr_priv.h
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 render: replace xallocarray() by calloc() 2025-06-12 17:21:43 +02:00
mipict.h
mirect.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00: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-18 17:24:18 +02:00
picture.h
picturestr.h treewide: preemptively revert !1714 where it affects ABI compatibility 2025-06-16 10:32:48 +02:00
picturestr_priv.h rename old symbol PANORAMIX to XINERAMA 2025-02-06 15:51:27 +00:00
render.c render: fix memory leaks on XaceHook failure in resource creation 2026-06-05 15:10:32 +02:00