]> git.ipfire.org Git - thirdparty/glibc.git/commit
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)
committerPatsy Franklin <patsy@redhat.com>
Wed, 18 Mar 2020 00:31:16 +0000 (20:31 -0400)
commitda97c6b88eb03fb834e92964b0895c2ac8d61f63
tree1fb5b87450a83646aa773854a776cc2cc4949d43
parentdd34bce38c822b67fcc42e73969bf6699d6874b6
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.

(cherry picked from commit ddc650e9b3dc916eab417ce9f79e67337b05035c)
posix/glob.c