Logical vs. bitwise AND in sbin/routed/parms.c
Artem Belevich
fbsdlist at src.cx
Mon Nov 22 19:11:38 UTC 2010
There's another case of '&' used improperly.
http://svn.freebsd.org/viewvc/base?view=revision&revision=90385
if (hdr.elf.e_ident[EI_OSABI] & ELFOSABI_FREEBSD) {
is_shlib = 1;
} else {
hdr.elf.e_ident[EI_OSABI] is not a bitmask and '==' should've been used instead.
Now ldd.c has two instances of this bug due to copy/pasting of orignal code.
--Artem
More information about the freebsd-hackers
mailing list