]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librados: cap the rados_aio_*{write,append} buffer length
authorLoic Dachary <loic-201408@dachary.org>
Sun, 28 Sep 2014 08:26:23 +0000 (10:26 +0200)
committerLoic Dachary <loic-201408@dachary.org>
Sun, 28 Sep 2014 08:26:23 +0000 (10:26 +0200)
commit32195f948d28f52f37d0bbbdcd324abc47cc6a4e
tree9658f98e5ef90ff2fc1604e786720934505dd387
parent8badd5a4dccf350b57a5ad95f9f203dc9a8bfc37
librados: cap the rados_aio_*{write,append} buffer length

If the value of the len parameter is greater than UINT_MAX/2,
rados_aio_write, rados_aio_write_full and rados_aio_append will fail
with E2BIG.

For more information see 33501d242661a545211df43bf645398b492398ae

http://tracker.ceph.com/issues/9592 Fixes: #9592

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
src/librados/librados.cc
src/test/librados/aio.cc