summaryrefslogtreecommitdiffstats
path: root/net/netmap.c
diff options
context:
space:
mode:
authorPrasad J Pandit2016-03-02 12:59:58 +0100
committerJason Wang2016-03-08 08:34:18 +0100
commit362786f14a753d8a5256ef97d7c10ed576d6572b (patch)
treedf46cf293e0e12fdd91068e3aa60b228a8ab061d /net/netmap.c
parentfilter-buffer: Add status_changed callback processing (diff)
downloadqemu-362786f14a753d8a5256ef97d7c10ed576d6572b.tar.gz
qemu-362786f14a753d8a5256ef97d7c10ed576d6572b.tar.xz
qemu-362786f14a753d8a5256ef97d7c10ed576d6572b.zip
net: check packet payload length
While computing IP checksum, 'net_checksum_calculate' reads payload length from the packet. It could exceed the given 'data' buffer size. Add a check to avoid it. Reported-by: Liu Ling <liuling-it@360.cn> Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'net/netmap.c')
0 files changed, 0 insertions, 0 deletions