diff options
author | Eldad Zack <eldad@fogrefinery.com> | 2012-05-20 03:59:33 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-20 22:58:39 +0200 |
commit | 9b905fe68433378032b851c4d81a59187689fa52 (patch) | |
tree | 307801197cf9ce8b520a026962bf1e73f0019f9f /virt | |
parent | USB: qmi_wwan: Add ZTE (Vodafone) K3520-Z (diff) | |
download | linux-9b905fe68433378032b851c4d81a59187689fa52.tar.xz linux-9b905fe68433378032b851c4d81a59187689fa52.zip |
ipv6/exthdrs: strict Pad1 and PadN check
The following tightens the padding check from commit
c1412fce7eccae62b4de22494f6ab3ff8a90c0c6 :
* Take into account combinations of consecutive Pad1 and PadN.
* Catch the corner case of when only padding is present in the
header, when the extention header length is 0 (i.e., 8 bytes).
In this case, the header would have exactly 6 bytes of padding:
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
: Next Header : Hdr Ext Len=0 : :
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +
: Padding (Pad1 or PadN) :
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Signed-off-by: Eldad Zack <eldad@fogrefinery.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions