]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
erasure-code: fix assert overflow 2534/head
authorLoic Dachary <loic-201408@dachary.org>
Fri, 19 Sep 2014 14:13:53 +0000 (16:13 +0200)
committerLoic Dachary <loic-201408@dachary.org>
Fri, 19 Sep 2014 14:16:44 +0000 (16:16 +0200)
commitf51e368f98fb17b2460dcab717424194d7100432
tree7d1ccd97a281d9328b2b52ce260b1ec4e55d3cb1
parent0519225beb3f904b6a68490bcca2b10e43cb9e66
erasure-code: fix assert overflow

If the file size does not fit in 32 bits the (unsigned) cast will
overflow. Cast to uint64_t which is the type of the value returned by
get_total_chunk_size.

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

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
src/osd/ECBackend.cc