diff options
author | 2012-05-18 10:36:47 +0300 | |
---|---|---|
committer | 2012-05-25 11:16:16 -0400 | |
commit | 885ba1da689299ec52e646ca1a2429b8de55f364 (patch) | |
tree | 14cda3eb36796e77510994306c73197f47a5ff16 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | wl1251: fix oops on early interrupt (diff) | |
download | linux-dev-885ba1da689299ec52e646ca1a2429b8de55f364.tar.xz linux-dev-885ba1da689299ec52e646ca1a2429b8de55f364.zip |
NFC: potential integer overflow problem in check_crc()
If "buf[0]" is 255 then "len" gets set to 0. The call to
"crc_ccitt(0xffff, buf, len - 2);" casts the "len - 2" to a high
positive number which is ugly.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions