diff options
author | 2013-02-06 13:11:38 -0600 | |
---|---|---|
committer | 2013-02-19 19:14:04 -0600 | |
commit | 1ceae7ef0fd00c965a2257c6e9eb497ca91f01c7 (patch) | |
tree | 092a10e88f4503fb41495157d8ea0ad70760bdf8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | libceph: use void pointers in page vector functions (diff) | |
download | linux-dev-1ceae7ef0fd00c965a2257c6e9eb497ca91f01c7.tar.xz linux-dev-1ceae7ef0fd00c965a2257c6e9eb497ca91f01c7.zip |
rbd: prevent bytes transferred overflow
In rbd_obj_read_sync(), verify the number of bytes transferred won't
exceed what can be represented by a size_t before using it to
indicate the number of bytes to copy to the result buffer.
(The real motivation for this is to prepare for the next patch.)
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions