* wordsplit.c (wordsplit_pathexpand): Fix use after free.
This commit is contained in:
Sergey Poznyakoff 2024-10-22 08:58:36 +03:00
parent e2f0c64db9
commit bef6cffeed
2 changed files with 5 additions and 1 deletions

4
.gitignore vendored
View file

@ -1,2 +1,6 @@
*~ *~
.emacs* .emacs*
*.o
.deps/
.dirstamp
module.spec

View file

@ -2149,7 +2149,7 @@ wordsplit_pathexpand (struct wordsplit *wsp)
default: default:
free (pattern); free (pattern);
return _wsplt_setctxerr (wsp, WRDSE_GLOBERR, pattern, slen); return _wsplt_setctxerr (wsp, WRDSE_GLOBERR, str, slen);
} }
prev = p; prev = p;