diff options
| author | Barton E. Schaefer <schaefer@zsh.org> | 2016-04-23 14:20:16 -0700 |
|---|---|---|
| committer | Barton E. Schaefer <schaefer@zsh.org> | 2016-04-23 14:20:16 -0700 |
| commit | 222dea055c622822ff24a2fa14564231bf3323d0 (patch) | |
| tree | cbf00fab95aaa766805ea39be6742f7d4bbc8646 /Test | |
| parent | 38306: in printf formats, treat a missing precision as zero rather than as un... (diff) | |
| download | zsh-222dea055c622822ff24a2fa14564231bf3323d0.tar zsh-222dea055c622822ff24a2fa14564231bf3323d0.tar.gz zsh-222dea055c622822ff24a2fa14564231bf3323d0.tar.bz2 zsh-222dea055c622822ff24a2fa14564231bf3323d0.tar.lz zsh-222dea055c622822ff24a2fa14564231bf3323d0.tar.xz zsh-222dea055c622822ff24a2fa14564231bf3323d0.tar.zst zsh-222dea055c622822ff24a2fa14564231bf3323d0.zip | |
Mikael Berthe: 38307: PCRE segfault when parenthesized group matches nothing
unposted: regression test for 38307
Diffstat (limited to 'Test')
| -rw-r--r-- | Test/V07pcre.ztst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Test/V07pcre.ztst b/Test/V07pcre.ztst index 39077564c..ad1770712 100644 --- a/Test/V07pcre.ztst +++ b/Test/V07pcre.ztst @@ -130,3 +130,10 @@ 0:pcre_match -b and pcre_match -n >78884; ZPCRE_OP: 25 30 >90210; ZPCRE_OP: 31 36 + +# Subshell because crash on failure + ( setopt re_match_pcre + [[ test.txt =~ '^(.*_)?(test)' ]] + echo $match[2] ) +0:regression for segmentation fault, workers/38307 +>test |
