Fix buffer overflow
authorJohn Darrington <john@darrington.wattle.id.au>
Mon, 18 Feb 2013 12:46:41 +0000 (13:46 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Mon, 18 Feb 2013 20:59:07 +0000 (21:59 +0100)
src/data/spreadsheet-reader.c

index efaafa30c597cd3a6c3528c96e9df995d8313914..882cfac9cc02f501e02dfa8d5f7555da0fc8b7ae 100644 (file)
@@ -112,7 +112,7 @@ int_to_ps26 (int i)
   i -= lower;
   i += base;
 
-  ret = xmalloc (exp);
+  ret = xmalloc (exp + 1);
 
   exp = 0;
   do