Searched hist:"244381 ec19ce1412b474f41b5f30fe1da846451b" (Results 1 – 1 of 1) sorted by relevance
/qemu/hw/net/ |
H A D | cadence_gem.c | 244381ec19ce1412b474f41b5f30fe1da846451b Fri Jan 15 07:00:40 UTC 2016 Prasad J Pandit <pjp@fedoraproject.org> net: cadence_gem: check packet size in gem_recieve
While receiving packets in 'gem_receive' routine, if Frame Check Sequence(FCS) is enabled, it copies the packet into a local buffer without checking its size. Add check to validate packet length against the buffer size to avoid buffer overflow.
Reported-by: Ling Liu <liuling-it@360.cn> Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org> Signed-off-by: Jason Wang <jasowang@redhat.com>
|