diff options
author | Prasad J Pandit <pjp@fedoraproject.org> | 2016-01-15 12:30:40 +0530 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2016-02-04 13:22:06 +0800 |
commit | 244381ec19ce1412b474f41b5f30fe1da846451b (patch) | |
tree | 5504876e9841404fb9f5ba5fc0863327e332c391 /xen-mapcache.c | |
parent | c8c6afa8867b43e6b2a0553a8eb6c880f27a8379 (diff) |
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>
Diffstat (limited to 'xen-mapcache.c')
0 files changed, 0 insertions, 0 deletions