diff options
| author | Li Qiang <liqiang6-s@360.cn> | 2016-08-16 16:58:01 +0530 |
|---|---|---|
| committer | Jason Wang <jasowang@redhat.com> | 2016-08-18 12:05:18 +0800 |
| commit | 47882fa4975bf0b58dd74474329fdd7154e8f04c (patch) | |
| tree | 72402d35a99e59a465b3a816eb5c10965bccd9fb /net/net.c | |
| parent | 5f0e775348082c355769a3df612e055abea61c06 (diff) | |
| download | focaccia-qemu-47882fa4975bf0b58dd74474329fdd7154e8f04c.tar.gz focaccia-qemu-47882fa4975bf0b58dd74474329fdd7154e8f04c.zip | |
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/net.c')
0 files changed, 0 insertions, 0 deletions