aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/timerlist.py
diff options
context:
space:
mode:
authorMarcelo Ricardo Leitner <[email protected]>2021-06-28 16:13:42 -0300
committerDavid S. Miller <[email protected]>2021-06-28 15:34:50 -0700
commit50619dbf8db77e98d821d615af4f634d08e22698 (patch)
treec85866af2c925cd8dd7b65c634d0290de79f01ed /scripts/gdb/linux/timerlist.py
parent0c5dc070ff3d6246d22ddd931f23a6266249e3db (diff)
sctp: add size validation when walking chunks
The first chunk in a packet is ensured to be present at the beginning of sctp_rcv(), as a packet needs to have at least 1 chunk. But the second one, may not be completely available and ch->length can be over uninitialized memory. Fix here is by only trying to walk on the next chunk if there is enough to hold at least the header, and then proceed with the ch->length validation that is already there. Reported-by: Ilja Van Sprundel <[email protected]> Signed-off-by: Marcelo Ricardo Leitner <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions