]> xenbits.xensource.com Git - qemu-upstream-4.5-testing.git/commit
rtl8139: check TCP Data Offset field
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 15 Jul 2015 17:17:04 +0000 (18:17 +0100)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 3 Aug 2015 14:04:41 +0000 (14:04 +0000)
commitd595c4189f5064b0b615e70d7c5c679bfec728b5
tree2e83cb68cca4dbcad5bcecf4eadf30bea588b3aa
parenta16fe83c866b75654dce93138eb96a319a1a864a
rtl8139: check TCP Data Offset field

The TCP Data Offset field contains the length of the header.  Make sure
it is valid and does not exceed the IP data length.

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