From 8c37b9ca13211c197f3452356b73114c39f549fd Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 2 Nov 2016 16:31:04 +0100 Subject: idevicebackup2: Fix heap buffer out-of-bounds write caused by wrong buffer size --- tools/idevicebackup2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') 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)); -- cgit v1.1-32-gdbae