diff options
| author | Shuah Khan <[email protected]> | 2021-10-21 21:33:33 +0000 |
|---|---|---|
| committer | Shuah Khan <[email protected]> | 2021-10-25 15:27:20 +0000 |
| commit | dd40f44eabe1e122c6852fabb298aac05b083fce (patch) | |
| tree | 495eea3d68a4206def78b8520ed95a795b7147c0 /lib/string_helpers.c | |
| parent | selftests: kvm: fix mismatched fclose() after popen() (diff) | |
| download | kernel-dd40f44eabe1e122c6852fabb298aac05b083fce.tar.gz kernel-dd40f44eabe1e122c6852fabb298aac05b083fce.zip | |
selftests: x86: fix [-Wstringop-overread] warn in test_process_vm_readv()
Fix the following [-Wstringop-overread] by passing in the variable
instead of the value.
test_vsyscall.c: In function ‘test_process_vm_readv’:
test_vsyscall.c:500:22: warning: ‘__builtin_memcmp_eq’ specified bound 4096 exceeds source size 0 [-Wstringop-overread]
500 | if (!memcmp(buf, (const void *)0xffffffffff600000, 4096)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions
