diff options
author | Roel Kluin <[email protected]> | 2009-10-01 15:44:25 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2009-10-01 16:11:16 -0700 |
commit | f23fc156fb4294f678f1913a56da633fa57edb2d (patch) | |
tree | bc560880e9cf83542a3368963b429912ab218043 /scripts/basic/docproc.c | |
parent | 196b3167efd13a02cdd34acc1a12316b9f45f41d (diff) |
serial167: fix read buffer overflow
Check whether index is within bounds before grabbing the element.
Also, since NR_PORTS is defined ARRAY_SIZE(cy_port), cy_port[NR_PORTS] is
out of bounds as well.
[[email protected]: cleanup, remove (long) casts]
Signed-off-by: Roel Kluin <[email protected]>
Cc: Alan Cox <[email protected]>
Cc: Jiri Slaby <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/basic/docproc.c')
0 files changed, 0 insertions, 0 deletions