libXrender: Changes to 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Sep 16 19:25:43 UTC 2023
src/Xrender.c | 31 +++++++++++++++++++------------
1 file changed, 19 insertions(+), 12 deletions(-)
New commits:
commit 01e754610df2195536c5b31c1e8df756480599d1
Author: Alex Richardson <arichardson at FreeBSD.org>
Date: Tue Sep 12 22:55:37 2023 -0700
Ensure XRenderInfo pointers are appropriately aligned
While runnig some X11 applications on an Arm Morello platform I noticed
bus errors inside xrender. XRenderInfo uses a single malloc call to
allocate multiple objects in one single allocation and places those objects
directly after the XRenderInfo object. However, these calculations do not
ensure that this objects are sufficiently aligned. I noticed this because
on Morello (and other CHERI-enabled architectures) pointers need to be
strongly aligned. Instead of allocating a single block with potentially
misaligned subsequent objects, this change uses seprate allocations for
the four arrays.
This is an alternative to https://gitlab.freedesktop.org/xorg/lib/libxrender/-/merge_requests/12
Signed-off-by: Alex Richardson <arichardson at FreeBSD.org>
More information about the xorg-commit
mailing list