commit | 80834312a4da1405a9bc788313c67643de6fcb4c | [log] [tgz] |
---|---|---|
author | Xi Wang <xi.wang@gmail.com> | Thu Feb 16 11:56:29 2012 -0500 |
committer | Alex Elder <elder@dreamhost.com> | Thu Mar 22 10:47:45 2012 -0500 |
tree | 46fdff81b144f9307a4361f943b7f0fa4d7f1341 | |
parent | 64486697771cbe219fffcb5c8e2ed9ca4fdf086c [diff] |
ceph: fix overflow check in build_snap_context() The overflow check for a + n * b should be (n > (ULONG_MAX - a) / b), rather than (n > ULONG_MAX / b - a). Signed-off-by: Xi Wang <xi.wang@gmail.com> Signed-off-by: Sage Weil <sage@newdream.net>