]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: clamp I/O sizes to INT_MAX when we can't return larger values 20373/head
authorJeff Layton <jlayton@redhat.com>
Fri, 9 Feb 2018 12:39:56 +0000 (07:39 -0500)
committerJeff Layton <jlayton@redhat.com>
Mon, 12 Feb 2018 12:17:56 +0000 (07:17 -0500)
commit4143c6e9720b81bd928ee7f0d8055445cec4951b
tree8aab6473f2357f53c3f62101621c657890a45f85
parentb431d2879abdaad768df2b09b08cfc085825af80
client: clamp I/O sizes to INT_MAX when we can't return larger values

We have several API functions that allow the caller to request I/Os
larger than INT_MAX bytes, but that return an int. Ensure that we don't
try to do more I/O than we can represent in the return value.

Tracker: http://tracker.ceph.com/issues/22948
Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/client/Client.cc
src/client/Client.h