aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/lists.py
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2021-06-19 16:55:46 +0300
committerPablo Neira Ayuso <[email protected]>2021-06-21 22:05:29 +0200
commit24610ed80df65a564d6165d15505a950d05f9f5a (patch)
tree472932825e271ae415eab1dec306a68f754031f3 /scripts/gdb/linux/lists.py
parent3078d964c0fe6cf8eba197c862d1011cb7c0e7b4 (diff)
netfilter: nfnetlink_hook: fix check for snprintf() overflow
The kernel version of snprintf() can't return negatives. The "ret > (int)sizeof(sym)" check is off by one because and it should be >=. Finally, we need to set a negative error code. Fixes: e2cf17d3774c ("netfilter: add new hook nfnl subsystem") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Florian Westphal <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions