diff options
author | James Hogan <james.hogan@imgtec.com> | 2014-05-02 14:15:41 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2014-05-21 00:22:07 +0000 |
commit | 3b09ebe724b1ee233ce2314a8b70a4dfdf9d2b07 (patch) | |
tree | 3a8ea6708542cd67ab1c9be58906b2fc1d9fffc1 /AUTHORS | |
parent | b2ede14797b729659b0397431b28f34e57b5c4e7 (diff) | |
download | strace-3b09ebe724b1ee233ce2314a8b70a4dfdf9d2b07.tar.gz strace-3b09ebe724b1ee233ce2314a8b70a4dfdf9d2b07.tar.bz2 strace-3b09ebe724b1ee233ce2314a8b70a4dfdf9d2b07.tar.xz |
When strace is built with large file support definitions in CFLAGS (as
may be provided by buildroot) the C library headers may expose a 64-bit
rlim_t even though the struct rlimit fields used by the system call
interface are only 32-bit. The SIZEOF_RLIM_T will then be 8 which
results in bad decoding of the getrlimit and setrlimit syscalls.
This is fixed by replacing unreliable SIZEOF_RLIM_T based checks with
checks for current_wordsize.
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Diffstat (limited to 'AUTHORS')
0 files changed, 0 insertions, 0 deletions