mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-12-30 19:30:58 +01:00
25859: avoid possible NULL dereferencing if RC_QUOTES is set.
This commit is contained in:
parent
89b7eda334
commit
4de54f5d00
2 changed files with 4 additions and 1 deletions
|
|
@ -1,5 +1,8 @@
|
|||
2008-10-12 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 25859: Src/Zle/zle_tricky.c: avoid possible NULL dereferencing if
|
||||
RC_QUOTES is set.
|
||||
|
||||
* Mikael Magnusson: 25856: Etc/completion-style-guide: typo fixes.
|
||||
|
||||
* Mikael Magnusson: 25855: Etc/zsh-development-guide: typo fixes.
|
||||
|
|
|
|||
|
|
@ -1235,7 +1235,7 @@ get_comp_string(void)
|
|||
/* This is done when the lexer reached the word the cursor is on. */
|
||||
tt = tokstr ? dupstring(tokstr) : NULL;
|
||||
|
||||
if (isset(RCQUOTES)) {
|
||||
if (isset(RCQUOTES) && tt) {
|
||||
char *tt1, *e = tt + zlemetacs - wb;
|
||||
for (tt1 = tt; *tt1; tt1++) {
|
||||
if (*tt1 == Snull) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue