Re: [Qemu-devel] [PATCH v2] net: vmxnet: use g_new for pkt initialisation

2016-08-17 Thread Jason Wang
On 2016年08月16日 19:29, Dmitry Fleytman wrote: acked-by: Dmitry Fleytman On 16 Aug 2016, at 14:28, P J P wrote: From: Li Qiang When network transport abstraction layer initialises pkt, the maximum fragmentation count is not checked. This could lead to an integer overflow causing a NULL poi

Re: [Qemu-devel] [PATCH v2] net: vmxnet: use g_new for pkt initialisation

2016-08-16 Thread Dmitry Fleytman
acked-by: Dmitry Fleytman > On 16 Aug 2016, at 14:28, P J P wrote: > > From: Li Qiang > > 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()

[Qemu-devel] [PATCH v2] net: vmxnet: use g_new for pkt initialisation

2016-08-16 Thread P J P
From: Li Qiang 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 Signed-