Fix use-after-free in glob when expanding ~user (bug 25414)
authorAndreas Schwab <schwab@suse.de>
Wed, 19 Feb 2020 16:21:46 +0000 (17:21 +0100)
committerAndreas Schwab <schwab@suse.de>
Thu, 20 Feb 2020 09:48:26 +0000 (10:48 +0100)
commitddc650e9b3dc916eab417ce9f79e67337b05035c
tree99410da53e16d49a13a725bc71c06ae79884808b
parentf2323817dde1e87d44e058af5954c25d72fbdb11
Fix use-after-free in glob when expanding ~user (bug 25414)

The value of `end_name' points into the value of `dirname', thus don't
deallocate the latter before the last use of the former.
posix/glob.c