dwarf2out.c (comp_dir_string): cached_wd could be set to both a heap string and a...
authorThomas Otto <thomas.otto@pdv-fs.de>
Mon, 25 Mar 2019 13:50:46 +0000 (13:50 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 25 Mar 2019 13:50:46 +0000 (13:50 +0000)
commitbe5ce04a6135e0aee4187ec1a1f167f403e0f856
tree4b095e26986c7cb2a68e1c7f2f9da479827bc8ba
parentd03f6e7bf321767f80c8474fb5aa8c60226bf445
dwarf2out.c (comp_dir_string): cached_wd could be set to both a heap string and a gc string...

2019-03-25  Thomas Otto  <thomas.otto@pdv-fs.de>

* dwarf2out.c (comp_dir_string): cached_wd could be set to both a
heap string and a gc string, but since this variable is unknown to
ggc the gc string might get reused and corrupted. Fixed by always
using a heap string.

From-SVN: r269916
gcc/ChangeLog
gcc/dwarf2out.c