summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2016-11-02 16:31:04 +0100
committerGravatar Nikias Bassen2016-11-02 16:31:04 +0100
commit8c37b9ca13211c197f3452356b73114c39f549fd (patch)
tree3813312a372c33dac169a6e156bbd20b903b15f5 /tools
parent2c16751bafb41a049e30f211c2a21c3b8c68259e (diff)
downloadlibimobiledevice-8c37b9ca13211c197f3452356b73114c39f549fd.tar.gz
libimobiledevice-8c37b9ca13211c197f3452356b73114c39f549fd.tar.bz2
idevicebackup2: Fix heap buffer out-of-bounds write caused by wrong buffer size
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 d355200..bb7f5c3 100644
--- a/tools/idevicebackup2.c
+++ b/tools/idevicebackup2.c
@@ -280,7 +280,7 @@ static char* get_uuid()
{
const char *chars = "ABCDEF0123456789";
int i = 0;
- char *uuid = (char*)malloc(sizeof(char) * 32);
+ char *uuid = (char*)malloc(sizeof(char) * 33);
srand(time(NULL));