Frederic Riss 856a0143b0 [dsymutil] Prevent use-after-free
The BinaryHolder would query the archive member MemoryBuffer name
to check if the current open archive also contains the next requested
objectfile. This comparison was using a StringRef to a temporary
buffer. It only happened with fat archives. This commit adds long-lived
storage along with the MemoryBuffers for the fat archive filename.

The added test would fail during an ASAN build without the fix.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268924 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-09 14:44:14 +00:00
..
2016-01-26 21:29:08 +00:00
2016-04-18 09:17:29 +00:00
2016-04-18 09:17:29 +00:00
2016-04-18 09:17:29 +00:00
2016-01-26 21:29:08 +00:00
2016-04-18 09:17:29 +00:00
2016-01-26 21:29:08 +00:00
2016-05-03 05:05:38 +00:00
2016-04-18 09:17:29 +00:00
2016-01-26 21:29:08 +00:00
2016-04-18 09:17:29 +00:00
2016-04-29 15:08:05 +00:00
2015-12-01 00:48:34 +00:00