about summary refs log tree commit diff
path: root/Src/utils.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-05-14 10:48:26 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-05-14 10:48:26 +0000
commitb86c191af5689229c398ecdc0684f3ccbf8a108d (patch)
tree2fa298bc06a0a99cb1970dbe804a734b964702b1 /Src/utils.c
parent547adf2021e2e57e421d27e5620170a8751d4274 (diff)
downloadzsh-b86c191af5689229c398ecdc0684f3ccbf8a108d.tar.gz
zsh-b86c191af5689229c398ecdc0684f3ccbf8a108d.tar.xz
zsh-b86c191af5689229c398ecdc0684f3ccbf8a108d.zip
25025: check radix for integer constants is between 2 and 36 inclusive
Diffstat (limited to 'Src/utils.c')
-rw-r--r--Src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/utils.c b/Src/utils.c
index d3319f0a9..4992680fe 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -1834,7 +1834,7 @@ zstrtol(const char *s, char **t, int base)
 	    base = 8;
     }
     inp = s;
-    if (base > 36) {
+    if (base < 2 || base > 36) {
 	zerr("invalid base: %d", base);
 	return (zlong)0;
     } else if (base <= 10)