aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDemi Marie Obenour <demi@invisiblethingslab.com>2024-07-24 21:18:40 -0400
committerDemi Marie Obenour <demi@invisiblethingslab.com>2024-11-29 19:19:45 -0500
commit4273a5edc862bd5f620ad0c7f11d20cd040e005c (patch)
treeba86e0e7523d1614d8156fd294b2dce674c16a8e /tests
parentprotocol: add wl_fixes interface (diff)
downloadwayland-4273a5edc862bd5f620ad0c7f11d20cd040e005c.tar
wayland-4273a5edc862bd5f620ad0c7f11d20cd040e005c.tar.gz
wayland-4273a5edc862bd5f620ad0c7f11d20cd040e005c.tar.bz2
wayland-4273a5edc862bd5f620ad0c7f11d20cd040e005c.tar.lz
wayland-4273a5edc862bd5f620ad0c7f11d20cd040e005c.tar.xz
wayland-4273a5edc862bd5f620ad0c7f11d20cd040e005c.tar.zst
wayland-4273a5edc862bd5f620ad0c7f11d20cd040e005c.zip
connection: Avoid undefined pointer arithmetic
Creating a pointer that is more than one element past the end of an array is undefined behavior, even if the pointer is not dereferenced. Avoid this undefined behavior by using `p >= end` instead of `p + 1 > end` and `SOMETHING > end - p` instead of `p + SOMETHING > end`. Signed-off-by: Demi Marie Obenour <demi@invisiblethingslab.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions