netfilter: ip6t_eui: fix read outside array bounds
authorPatrick McHardy <kaber@trash.net>
Mon, 31 Aug 2009 13:30:31 +0000 (15:30 +0200)
committerPatrick McHardy <kaber@trash.net>
Mon, 31 Aug 2009 13:30:31 +0000 (15:30 +0200)
commit488908696971c5ea1dcc5d13f29c158ba4f6ae7d
treee457b2e6bd0f6d91e894bf2936c8cca9e3b4ed3c
parentee254fa44d902ab89fd0d66851701098f07872a7
netfilter: ip6t_eui: fix read outside array bounds

Use memcmp() instead of open coded comparison that reads one byte past
the intended end.

Based on patch from Roel Kluin <roel.kluin@gmail.com>

Signed-off-by: Patrick McHardy <kaber@trash.net>
net/ipv6/netfilter/ip6t_eui64.c