]> 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)
committerTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Fri, 20 Mar 2020 20:49:04 +0000 (17:49 -0300)
commit263e6175999bc7f5adb8b32fd12fcfae3f0bb05a
tree954b33c666228286f914d6835a4168e79b21f0d5
parent37db4539dd8b5c098d9235249c5d2aedaa67d7d1
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 with
 changes from commit d711a00f93fa964f41a53839228598fbf1a6b482)
NEWS
posix/glob.c