Skip to content

Commit 41c4636

Browse files
committed
Xext: add __size_assert in xvdisp.c
See: #1021 See: #706 Signed-off-by: stefan11111 <[email protected]>
1 parent 5fdc765 commit 41c4636

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Xext/xvdisp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,7 @@ ProcXvQueryImageAttributes(ClientPtr client)
765765

766766
/* allocating for `offsets` as well as `pitches` in one block */
767767
/* both having CARD32 * num_planes (actually int32_t put into CARD32) */
768+
__size_assert(int, sizeof(INT32));
768769
int *offsets = x_rpcbuf_reserve(&rpcbuf, 2 * num_planes * sizeof(int));
769770
if (!offsets)
770771
return BadAlloc;

0 commit comments

Comments
 (0)