diff options
author | Kaushal M <kaushal@redhat.com> | 2013-10-10 17:20:57 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2013-10-14 15:00:25 -0700 |
commit | 793f8491789e58791b090a74472959df117e404b (patch) | |
tree | 127ed665afda0132c766efb2cd74a29948979730 /xlators/protocol/server/src | |
parent | 75caba63714c7f7f9ab810937dae69a1a28ece53 (diff) |
libglusterfs: Account for overflow in gf_string2bytesize
gf_string2bytesize will now return an error when a value is greater than
UINT64_MAX and set errno to EOVERFLOW. This is needed because casting a
double value greater than UINT64_MAX to uint64_t will convert it to 0.
BUG: 1017746
Change-Id: I6f96efc1e3a1c236685593a6fb7f806a87e46019
Signed-off-by: Kaushal M <kaushal@redhat.com>
Reviewed-on: http://review.gluster.org/6068
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/protocol/server/src')
0 files changed, 0 insertions, 0 deletions