]> xenbits.xensource.com Git - qemu-upstream-4.4-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:12:15 +0000 (14:12 +0000)
commit6c68b6f933b6a68bb481bc6bd9fd7483a08fa5ee
treef2e6a939f041fd5c11a51e291619c59e1433ce20
parent178619628aae201eb7f7ac6e61f9d3917a477670
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