Files
xserver/dix
Alan Coopersmith cf49354b60 dix: assert that size of buffers to swap is a multiple of the swap size
If we're swapping 4-byte integers or 2-byte integers, make sure the size
of the buffer doesn't have any bytes left over, since we won't correctly
handle those bytes.

Reported in #1817:

xwayland-24.1.6/redhat-linux-build/../dix/swaprep.c:99:22:
 warning[-Wanalyzer-allocation-size]:
 allocated buffer size is not a multiple of the pointee's size

xwayland-24.1.6/redhat-linux-build/../dix/swaprep.c:146:22:
 warning[-Wanalyzer-allocation-size]:
 allocated buffer size is not a multiple of the pointee's size

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2078>
2025-10-17 18:04:36 +00:00
..
2020-07-05 13:07:33 -07:00
2025-02-11 19:13:01 +01:00
2024-04-15 23:10:31 +00:00
2025-09-06 17:01:39 +00:00
2025-09-06 17:01:39 +00:00
2024-03-05 16:57:52 +01:00
2013-07-23 23:56:58 +01:00
2025-09-06 17:01:39 +00:00