mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 04:40:59 +01:00
49166: fix coredump in ${name:offset:length} with ill-formatted length
This commit is contained in:
parent
6e10067ffd
commit
9b3a292410
3 changed files with 15 additions and 9 deletions
|
|
@ -2664,10 +2664,9 @@ F:behavior, see http://austingroupbugs.net/view.php?id=888
|
|||
>3: pw
|
||||
>4: pw
|
||||
|
||||
# Using a subshell because it segfaults.
|
||||
("${: :${{{\"{{lorem ipsum dolor sit amet}}")
|
||||
-f:regression test for workers/45843#1
|
||||
?(eval):1: bad substitution
|
||||
: "${foo:0:${\"}}"
|
||||
1:broken length in ${name:offset:length} (workers/45843#1)
|
||||
?(eval):1: unrecognized modifier `$'
|
||||
|
||||
$ZTST_testdir/../Src/zsh -fc $'$\\\n('
|
||||
1:regression test for workers/45843#2: escaped newline in command substitution start token
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue