]> Savannah Git Hosting - gnulib.git/commit
glob: Fix use-after-free bug.
authorBruno Haible <bruno@clisp.org>
Fri, 17 Jan 2020 20:56:01 +0000 (21:56 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 17 Jan 2020 20:56:01 +0000 (21:56 +0100)
commit717766da8926e36cf86015c4a49554baa854e8e6
tree9e2b35c4f78edd673ca687fe876d348942df8aca
parent020f5190955808cafb670d2be6afb7d5faf69621
glob: Fix use-after-free bug.

Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.

* lib/glob.c (__glob): Delay freeing dirname until after the use of
end_name.
ChangeLog
lib/glob.c