]> xenbits.xensource.com Git - qemu-upstream-4.6-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 13:52:21 +0000 (13:52 +0000)
commitb649863740fb3b93ba716d665fbfa1ce83cb5936
tree32950e1035da5b0550b9223d5fd808c757f7c8bd
parent5f7cccedaaa8dac367f3dbda857f57e915d8e775
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