diff options
author | 2014-07-21 19:07:12 -0700 | |
---|---|---|
committer | 2014-08-19 11:53:08 -0700 | |
commit | 1001ff7a4f64f3f4264e69d3ed70ff428f627e01 (patch) | |
tree | 9b673e00fda7873a9958cf5d60f66a49cf2e020c /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | mtd: mtdswap: fix integer overflow (diff) | |
download | linux-dev-1001ff7a4f64f3f4264e69d3ed70ff428f627e01.tar.xz linux-dev-1001ff7a4f64f3f4264e69d3ed70ff428f627e01.zip |
mtd: tests: fix integer overflow issues
These multiplications are done with 32-bit arithmetic, then converted to
64-bit. We should widen the integers first to prevent overflow. This
could be a problem for large (>4GB) MTD's.
Detected by Coverity.
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Akinobu Mita <akinobu.mita@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions