]> git.ipfire.org Git - thirdparty/ipset.git/commit
netfilter: ipset: small potential read beyond the end of buffer
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 18 Nov 2014 08:55:17 +0000 (09:55 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Tue, 18 Nov 2014 08:55:17 +0000 (09:55 +0100)
commitaeb28678e69ab156800bc8b6be47a29896396e84
tree06414055fbbd832be314905b325396932ed83c28
parent14268dd62ed9067b687543d586d82501aa3e6fb7
netfilter: ipset: small potential read beyond the end of buffer

We could be reading 8 bytes into a 4 byte buffer here.  It seems
harmless but adding a check is the right thing to do and it silences a
static checker warning.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
kernel/net/netfilter/ipset/ip_set_core.c