https://github.com/torvalds/linux
Revision 49688c843101ba6275756505e81af45ef50f87d7 authored by David S. Miller on 13 April 2007, 23:37:54 UTC, committed by David S. Miller on 13 April 2007, 23:37:54 UTC
There are two device string comparison loops in arp_packet_match().
The first one goes byte-by-byte but the second one tries to be
clever and cast the string to a long and compare by longs.

The device name strings in the arp table entries are not guarenteed
to be aligned enough to make this value, so just use byte-by-byte
for both cases.

Based upon a report by <drraid@gmail.com>.

Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 612f09e
History
Tip revision: 49688c843101ba6275756505e81af45ef50f87d7 authored by David S. Miller on 13 April 2007, 23:37:54 UTC
[NETFILTER] arp_tables: Fix unaligned accesses.
Tip revision: 49688c8
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 572 bytes
.mailmap -rw-r--r-- 3.5 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 88.9 KB
Kbuild -rw-r--r-- 1.2 KB
MAINTAINERS -rw-r--r-- 82.3 KB
Makefile -rw-r--r-- 49.1 KB
README -rw-r--r-- 16.5 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top