summaryrefslogtreecommitdiff
path: root/include/linux/asn1_ber_bytecode.h
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2016-04-01 14:17:28 +0200
committerBen Hutchings <ben@decadent.org.uk>2016-08-22 22:38:30 +0100
commit35ea6762cc084057963af3833c77cf2906461b75 (patch)
tree0050809a71931bcaaccd3c70317171550710ac2d /include/linux/asn1_ber_bytecode.h
parent523e5f8924172c7b2f3217e832137076aebc20ee (diff)
netfilter: x_tables: check for bogus target offset
commit ce683e5f9d045e5d67d1312a42b359cb2ab2a13c upstream. We're currently asserting that targetoff + targetsize <= nextoff. Extend it to also check that targetoff is >= sizeof(xt_entry). Since this is generic code, add an argument pointing to the start of the match/target, we can then derive the base structure size from the delta. We also need the e->elems pointer in a followup change to validate matches. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include/linux/asn1_ber_bytecode.h')
0 files changed, 0 insertions, 0 deletions