aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorLi Qiang <liqiang6-s@360.cn>2016-08-16 16:58:01 +0530
committerJason Wang <jasowang@redhat.com>2016-08-18 12:05:18 +0800
commit47882fa4975bf0b58dd74474329fdd7154e8f04c (patch)
tree72402d35a99e59a465b3a816eb5c10965bccd9fb /net
parent5f0e775348082c355769a3df612e055abea61c06 (diff)
downloadqemu-47882fa4975bf0b58dd74474329fdd7154e8f04c.zip
qemu-47882fa4975bf0b58dd74474329fdd7154e8f04c.tar.gz
qemu-47882fa4975bf0b58dd74474329fdd7154e8f04c.tar.bz2
net: vmxnet: use g_new for pkt initialisation
When network transport abstraction layer initialises pkt, the maximum fragmentation count is not checked. This could lead to an integer overflow causing a NULL pointer dereference. Replace g_malloc() with g_new() to catch the multiplication overflow. Reported-by: Li Qiang <liqiang6-s@360.cn> Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org> Acked-by: Dmitry Fleytman <dmitry@daynix.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions