mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-04 10:41:11 +02:00
20592: Debian bug#283358: $((##)) failed erratically
This commit is contained in:
parent
9a68e6425b
commit
cebe5f1d10
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-11-29 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 20592: Src/math.c: $((##)) caused mayhem by passing null
|
||||
string to getkeystring(). Report error instead.
|
||||
|
||||
2004-11-24 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 20583: Completion/Unix/Command/_ssh: complete "modern" options
|
||||
|
|
|
@ -451,6 +451,10 @@ zzlex(void)
|
|||
int v;
|
||||
|
||||
ptr++;
|
||||
if (!*ptr) {
|
||||
zerr("character missing after ##", NULL, 0);
|
||||
return EOI;
|
||||
}
|
||||
ptr = getkeystring(ptr, NULL, 6, &v);
|
||||
yyval.u.l = v;
|
||||
return NUM;
|
||||
|
|
Loading…
Reference in a new issue