]> 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)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 15 Oct 2020 18:50:25 +0000 (15:50 -0300)
commit602da9de696099f543ee2bb3c1520bc178f42fc9
tree2e57ef762a69c29861ce481cdc1853e330a4c13e
parentc02695d776406faaf63418e4e80c4a7023af0b4f
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.
sysdeps/unix/sysv/linux/tst-sysvshm-linux.c