]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
netfilter: ipset: small potential read beyond the end of buffer
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 10 Nov 2014 16:11:21 +0000 (17:11 +0100)
committerJiri Slaby <jslaby@suse.cz>
Mon, 26 Jan 2015 13:39:20 +0000 (14:39 +0100)
commit4d871c60d93292ab4a3b22192430de0c574e82e9
tree7bda1aab216338a3c4f1da5259fa3c12ff784524
parente5924c9528cbe4baa4b13230addac2a7b52f4fe6
netfilter: ipset: small potential read beyond the end of buffer

commit 2196937e12b1b4ba139806d132647e1651d655df upstream.

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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
net/netfilter/ipset/ip_set_core.c