]> xenbits.xensource.com Git - qemu-upstream-4.2-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:22:45 +0000 (14:22 +0000)
commita1c76be898c9da3a4a6c71d21e5ca6b8591fc9f9
treec40778fd41f6fac275ff1e29e1b42afd4abb258c
parente721b75d1d69f80c229b1997e1ddf88067bebf69
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>
hw/rtl8139.c