summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-09-21 15:22:08 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-09-23 12:40:33 +0200
commit3a29d83d78af4c580d02bae6ae7a81127005a8b6 (patch)
treee90a6afdb9a0a620373650f1321c9edf2b9ebf19
parent9a443ad598736a9faac39abc9bdceb0507fb05f8 (diff)
downloadmupdf-3a29d83d78af4c580d02bae6ae7a81127005a8b6.tar.xz
Check for buffer overflow in strtod ascii division.
-rw-r--r--source/fitz/strtod.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/fitz/strtod.c b/source/fitz/strtod.c
index 4f0675fe..35ddd6ed 100644
--- a/source/fitz/strtod.c
+++ b/source/fitz/strtod.c
@@ -429,6 +429,7 @@ xx:
n -= c<<b;
*p++ = c + '0';
(*na)++;
+ if (*na >= Ndig) break; /* abort if overflowing */
}
*p = 0;
}