]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Linux system call wrappers: truncate ioctl request number to 32 bits
authorBart Van Assche <bvanassche@acm.org>
Tue, 5 Aug 2014 11:35:48 +0000 (11:35 +0000)
committerBart Van Assche <bvanassche@acm.org>
Tue, 5 Aug 2014 11:35:48 +0000 (11:35 +0000)
commitf47a931b8cdc5a476f094c81bfacf71059a685c0
tree9e4ce41412a4872d3943794151530055c4eb9a78
parenta6f286d17d4d74e93c10c0f0cbf838bb076b4a98
Linux system call wrappers: truncate ioctl request number to 32 bits

As explained in https://bugs.kde.org/show_bug.cgi?id=331829, when passing
an ioctl request number as an int to a function the request number will
be sign-extended to 64 bits on 64-bit systems. Avoid that this causes
Valgrind to fail to recognize an ioctl by truncating the request number
to 32 bits.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14232
coregrind/m_syswrap/syswrap-linux.c