]> xenbits.xensource.com Git - qemu-upstream-4.5-testing.git/commit
rtl8139: check IP Total Length field
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 15 Jul 2015 17:17:02 +0000 (18:17 +0100)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 3 Aug 2015 14:04:40 +0000 (14:04 +0000)
commit6f4bd30fe9587f15cda1e812fa78a8f2c6163057
tree0bb282a02bc36a479b2a8b3024de79bc7da40005
parentc980cb873e1797f55b4208b950e66679bb5d3cdb
rtl8139: check IP Total Length field

The IP Total Length field includes the IP header and data.  Make sure it
is valid and does not exceed the Ethernet payload size.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
hw/net/rtl8139.c