Do not silently truncate tracee addresses to current_wordsize. After transition from long to kernel_ulong_t there should be no sign extension issues with tracee addresses, and invalid addresses should be printed properly. * util.c (umoven): Check [SIZEOF_KERNEL_LONG_T > 4] instead of [SIZEOF_LONG > 4], reject addresses that do not fit into current_wordsize. * tests/umoven-illptr.c: New file. * tests/umoven-illptr.test: New test. * tests/.gitignore: Add umoven-illptr. * tests/Makefile.am (check_PROGRAMS): Likewise. (DECODER_TESTS): Add umoven-illptr.test.
7 lines
129 B
Bash
Executable File
7 lines
129 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Check decoding of invalid pointer by umoven.
|
|
. "${srcdir=.}/init.sh"
|
|
|
|
run_strace_match_diff -a36 -e trace=nanosleep
|