summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-03-18 16:54:48 +0100
committerGravatar Martin Szulecki2013-03-18 16:54:48 +0100
commit71a43f63e31c873f708b1cb9db40180a07ecfada (patch)
tree900acdce91f993f33829294987f105b9614b72d2 /tools
parent825a3ac8c91b8ba9eee15b96b9d86bc89aff0b97 (diff)
downloadlibimobiledevice-71a43f63e31c873f708b1cb9db40180a07ecfada.tar.gz
libimobiledevice-71a43f63e31c873f708b1cb9db40180a07ecfada.tar.bz2
idevicebackup2: Fix integer overflow bug on 32-bit architectures
Diffstat (limited to 'tools')
-rw-r--r--tools/idevicebackup2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c
index d70a7ae..a0ffc9b 100644
--- a/tools/idevicebackup2.c
+++ b/tools/idevicebackup2.c
@@ -1934,7 +1934,7 @@ checkpoint:
memset(&fs, '\0', sizeof(fs));
res = statvfs(backup_directory, &fs);
if (res == 0) {
- freespace = fs.f_bavail * fs.f_bsize;
+ freespace = (uint64_t)fs.f_bavail * (uint64_t)fs.f_bsize;
}
#endif
mobilebackup2_send_status_response(mobilebackup2, res, NULL, plist_new_uint(freespace));