Skip to content
Commit 3b9717a6 authored by Prasad J Pandit's avatar Prasad J Pandit Committed by Michael Roth
Browse files

net: check fragment length during fragmentation



Network transport abstraction layer supports packet fragmentation.
While fragmenting a packet, it checks for more fragments from
packet length and current fragment length. It is susceptible
to an infinite loop, if the current fragment length is zero.
Add check to avoid it.

Reported-by: default avatarLi Qiang <liqiang6-s@360.cn>
Signed-off-by: default avatarPrasad J Pandit <pjp@fedoraproject.org>
Reviewed-by: default avatarDmitry Fleytman <dmitry@daynix.com>
CC: qemu-stable@nongnu.org
Signed-off-by: default avatarJason Wang <jasowang@redhat.com>
(cherry picked from commit ead315e4)
Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent fcf75ad0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment