diff options
author | Kees Cook <[email protected]> | 2023-02-04 10:34:27 -0800 |
---|---|---|
committer | Jan Kara <[email protected]> | 2023-02-07 13:05:31 +0100 |
commit | 51e38c92bed26f648ec187c4400fa7512fcd8067 (patch) | |
tree | daa61be08fae3ecd3d9ffc34e61dbe011e2d90d5 /scripts/gdb/linux/tasks.py | |
parent | f8d0dd0bc302b237dfa2ef5836e6ee375c0a1773 (diff) |
udf: Use unsigned variables for size calculations
To avoid confusing the compiler about possible negative sizes, switch
various size variables that can never be negative from int to u32. Seen
with GCC 13:
../fs/udf/directory.c: In function 'udf_copy_fi':
../include/linux/fortify-string.h:57:33: warning: '__builtin_memcpy' pointer overflow between offset 80 and size [-2147483648, -1] [-Warray-bounds=]
57 | #define __underlying_memcpy __builtin_memcpy
| ^
...
../fs/udf/directory.c:102:9: note: in expansion of macro 'memcpy'
102 | memcpy(&iter->fi, iter->bh[0]->b_data + off, len);
| ^~~~~~
Cc: Jan Kara <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Message-Id: <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions