From b86c191af5689229c398ecdc0684f3ccbf8a108d Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 14 May 2008 10:48:26 +0000 Subject: 25025: check radix for integer constants is between 2 and 36 inclusive --- Src/math.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Src/math.c') diff --git a/Src/math.c b/Src/math.c index e1cde5f03..3374efddd 100644 --- a/Src/math.c +++ b/Src/math.c @@ -460,6 +460,10 @@ zzlex(void) } if(*ptr != ']') goto bofs; + if (outputradix < 2 || outputradix > 36) { + zerr("invalid base: %d", outputradix); + return EOI; + } ptr++; break; } -- cgit 1.4.1