diff options
| author | Li Qiang | 2016-08-16 13:28:01 +0200 |
|---|---|---|
| committer | Jason Wang | 2016-08-18 06:05:18 +0200 |
| commit | 47882fa4975bf0b58dd74474329fdd7154e8f04c (patch) | |
| tree | 72402d35a99e59a465b3a816eb5c10965bccd9fb /scripts/switch-timer-api | |
| parent | Update version for v2.7.0-rc3 release (diff) | |
| download | qemu-47882fa4975bf0b58dd74474329fdd7154e8f04c.tar.gz qemu-47882fa4975bf0b58dd74474329fdd7154e8f04c.tar.xz 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 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions
