From db9c51348cdd8483469315a2fde5f486884e1321 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Mon, 18 Feb 2013 13:46:41 +0100 Subject: [PATCH] Fix buffer overflow --- src/data/spreadsheet-reader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/spreadsheet-reader.c b/src/data/spreadsheet-reader.c index efaafa30c5..882cfac9cc 100644 --- a/src/data/spreadsheet-reader.c +++ b/src/data/spreadsheet-reader.c @@ -112,7 +112,7 @@ int_to_ps26 (int i) i -= lower; i += base; - ret = xmalloc (exp); + ret = xmalloc (exp + 1); exp = 0; do -- 2.30.2