diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2008-05-14 10:48:26 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-05-14 10:48:26 +0000 |
| commit | b86c191af5689229c398ecdc0684f3ccbf8a108d (patch) | |
| tree | 2fa298bc06a0a99cb1970dbe804a734b964702b1 /Src/math.c | |
| parent | 25018: Omari Norman: completion for awk, join, sort (diff) | |
| download | zsh-b86c191af5689229c398ecdc0684f3ccbf8a108d.tar zsh-b86c191af5689229c398ecdc0684f3ccbf8a108d.tar.gz zsh-b86c191af5689229c398ecdc0684f3ccbf8a108d.tar.bz2 zsh-b86c191af5689229c398ecdc0684f3ccbf8a108d.tar.lz zsh-b86c191af5689229c398ecdc0684f3ccbf8a108d.tar.xz zsh-b86c191af5689229c398ecdc0684f3ccbf8a108d.tar.zst zsh-b86c191af5689229c398ecdc0684f3ccbf8a108d.zip | |
25025: check radix for integer constants is between 2 and 36 inclusive
Diffstat (limited to 'Src/math.c')
| -rw-r--r-- | Src/math.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |
