diff options
author | Peter Stephenson <pws@zsh.org> | 2017-05-09 17:49:18 +0100 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2017-05-09 17:49:18 +0100 |
commit | c7a9cf465dd620ef48d586026944d9bd7a0d5d6d (patch) | |
tree | 167d94dfe05252fd7db0cb573a58b4f0d76565f4 /Test | |
parent | 263a0c247620f86532424727f7ed07ca7540fbf3 (diff) | |
download | zsh-c7a9cf465dd620ef48d586026944d9bd7a0d5d6d.tar.gz zsh-c7a9cf465dd620ef48d586026944d9bd7a0d5d6d.tar.xz zsh-c7a9cf465dd620ef48d586026944d9bd7a0d5d6d.zip |
40181: Fix buffer overrun in xsymlinks.
There was no check for copying to the internal xbuf2 for a preliminary test.
Diffstat (limited to 'Test')
-rw-r--r-- | Test/D02glob.ztst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Test/D02glob.ztst b/Test/D02glob.ztst index 413381f92..0ff696807 100644 --- a/Test/D02glob.ztst +++ b/Test/D02glob.ztst @@ -687,6 +687,14 @@ 0:modifier ':P' resolves symlinks before '..' components *>*glob.tmp/hello/world + # This is a bit brittle as it depends on PATH_MAX. + # We could use sysconf.. + bad_pwd="/${(l:16000:: :):-}" + print ${bad_pwd:P} +0:modifier ':P' with path too long +?(eval):2: path expansion failed, using root directory +>/ + foo=a value="ac" print ${value//[${foo}b-z]/x} |