From dbfd395b28eb4fb135974276374b87449a44f6cb Mon Sep 17 00:00:00 2001 From: stefan11111 Date: Mon, 15 Sep 2025 13:47:34 +0300 Subject: [PATCH] Xext: add __size_assert in xvdisp.c See: https://github.com/X11Libre/xserver/pull/1021 See: https://github.com/X11Libre/xserver/issues/706 Signed-off-by: stefan11111 --- Xext/xvdisp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Xext/xvdisp.c b/Xext/xvdisp.c index 03fdafc9f0..243a0fddbf 100644 --- a/Xext/xvdisp.c +++ b/Xext/xvdisp.c @@ -765,6 +765,7 @@ ProcXvQueryImageAttributes(ClientPtr client) /* allocating for `offsets` as well as `pitches` in one block */ /* both having CARD32 * num_planes (actually int32_t put into CARD32) */ + __size_assert(int, sizeof(INT32)); int *offsets = x_rpcbuf_reserve(&rpcbuf, 2 * num_planes * sizeof(int)); if (!offsets) return BadAlloc;