mirror of
git://git.gnu.org.ua/wordsplit.git
synced 2025-04-25 16:19:54 +03:00
Bugfix
* wordsplit.c (wordsplit_pathexpand): Fix use after free.
This commit is contained in:
parent
e2f0c64db9
commit
bef6cffeed
2 changed files with 5 additions and 1 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,2 +1,6 @@
|
|||
*~
|
||||
.emacs*
|
||||
*.o
|
||||
.deps/
|
||||
.dirstamp
|
||||
module.spec
|
||||
|
|
|
@ -2149,7 +2149,7 @@ wordsplit_pathexpand (struct wordsplit *wsp)
|
|||
|
||||
default:
|
||||
free (pattern);
|
||||
return _wsplt_setctxerr (wsp, WRDSE_GLOBERR, pattern, slen);
|
||||
return _wsplt_setctxerr (wsp, WRDSE_GLOBERR, str, slen);
|
||||
}
|
||||
|
||||
prev = p;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue