aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorJustin Stitt <[email protected]>2024-08-08 14:43:56 -0700
committerKees Cook <[email protected]>2024-08-15 09:26:02 -0700
commitbbf3c7ff9dfa45be51500d23a1276991a7cd8c6e (patch)
tree0f9f1877cc36c3ecc72bad4ae289b4238c3c872f /scripts/gdb/linux/modules.py
parent0336f898881ae13b92dfd8b72e69ed1246eac762 (diff)
lib/string_helpers: rework overflow-dependent code
When @size is 0, the desired behavior is to allow unlimited bytes to be parsed. Currently, this relies on some intentional arithmetic overflow where --size gives us SIZE_MAX when size is 0. Explicitly spell out the desired behavior without relying on intentional overflow/underflow. Signed-off-by: Justin Stitt <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions