]> xenbits.xensource.com Git - qemu-xen-unstable.git/commit
rtl8139: check TCP Data Offset field
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 15 Jul 2015 17:17:04 +0000 (18:17 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 10 May 2016 18:11:56 +0000 (19:11 +0100)
commite4ceb77cf88bc44f0b7fe39225c49d660735f327
tree872e481809c5a9d98be20ef0f9f64de2072af503
parentb8021777c8274658c44634423b5d794190419d82
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>
[Backport to qemu-xen-tradition]
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
hw/rtl8139.c