[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3] net: stellaris_enet: check packet length aga
Re: [Qemu-devel] [PATCH v3] net: stellaris_enet: check packet length against receive buffer
Mon, 11 Apr 2016 14:25:59 +0100
On 8 April 2016 at 07:03, P J P <address@hidden> wrote:
> From: Prasad J Pandit <address@hidden>
> When receiving packets over Stellaris ethernet controller, it
> uses receive buffer of size 2048 bytes. In case the controller
> accepts large(MTU) packets, it could lead to memory corruption.
> Add check to avoid it.
> Reported-by: Oleksandr Bazhaniuk <address@hidden>
> Signed-off-by: Prasad J Pandit <address@hidden>
> hw/net/stellaris_enet.c | 12 +++++++++++-
> 1 file changed, 11 insertions(+), 1 deletion(-)
Applied to target-arm.next, thanks.