]> git.ipfire.org Git - thirdparty/glibc.git/commit
sysvipc: Fix tst-sysvshm-linux on x32
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 15 Oct 2020 18:45:26 +0000 (15:45 -0300)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 22 Aug 2021 13:58:11 +0000 (15:58 +0200)
commitcc6ff883a63ef0f8e2dad8f97a5784c30acd2d49
treeeeb0c919fb438658a93d40ccb163fc9e5af4b4b7
parent75507b3337ae6d1662a0ac138517219fcb1af929
sysvipc: Fix tst-sysvshm-linux on x32

The Linux shminfo fields are '__syscall_ulong_t' (which is 64-bit
for x32).  This patch fixes the test to compare againt the correct
type and to only clamp the value if '__syscall_ulong_t' is the same
size of 'unsigned long int'.

Checked on x86_64-linux-gnu-x32.

(cherry picked from commit 602da9de696099f543ee2bb3c1520bc178f42fc9)
sysdeps/unix/sysv/linux/tst-sysvshm-linux.c