aboutsummaryrefslogtreecommitdiffstats
path: root/mpfr.c
diff options
context:
space:
mode:
authorAndrew J. Schorr <aschorr@telemetry-investments.com>2017-01-26 20:17:22 -0500
committerAndrew J. Schorr <aschorr@telemetry-investments.com>2017-01-26 20:17:22 -0500
commite1bfc3a49d45024f84f489ac6a7ebcd505ec203a (patch)
treed867f14cbca1f6771e4ab7b203ea7f5e60a83080 /mpfr.c
parent820db14f26ad8d203f6c3de6b51ff7bc2ec3476f (diff)
downloadegawk-e1bfc3a49d45024f84f489ac6a7ebcd505ec203a.tar.gz
egawk-e1bfc3a49d45024f84f489ac6a7ebcd505ec203a.tar.bz2
egawk-e1bfc3a49d45024f84f489ac6a7ebcd505ec203a.zip
Fix possible string overrun in strtonum function.
Diffstat (limited to 'mpfr.c')
-rw-r--r--mpfr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpfr.c b/mpfr.c
index 8a5e9a69..ec8d5561 100644
--- a/mpfr.c
+++ b/mpfr.c
@@ -303,7 +303,7 @@ force_mpnum(NODE *n, int do_nondec, int use_locale)
cp1 = cp;
if (do_nondec)
- base = get_numbase(cp1, use_locale);
+ base = get_numbase(cp1, cpend - cp1, use_locale);
if (! mpg_maybe_float(cp1, use_locale)) {
mpg_zero(n);