lkml.org 
[lkml]   [2005]   [Mar]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: drivers/net/at1700.c: at1700_probe1: array overflow
    From
    Date
        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.
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-04-06 13:30    [W:0.019 / U:0.028 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site