From: John Darrington Date: Mon, 18 Feb 2013 12:46:41 +0000 (+0100) Subject: Fix buffer overflow X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db9c51348cdd8483469315a2fde5f486884e1321;p=pspp Fix buffer overflow --- 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