Re: drivers/net/at1700.c: at1700_probe1: array overflow

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



    Adrian> This can result in indexing in an array with 8 entries the
    Adrian> 10th entry.

Well, not really, since the first 8 entries of the array have every
3-bit pattern.  So pos3 & 0x07 will always match one of them.

I agree it would be cleaner to make the loop only go up to 7 though.

 - R.
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux