OSDN Git Service

[gold-plugin] Avoid race condition when creating temporary files.
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 10 Aug 2017 17:38:41 +0000 (17:38 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 10 Aug 2017 17:38:41 +0000 (17:38 +0000)
commit01823a62a4a150698e097483d1a465812c937279
tree18ac90eecfe65e54321f5ae5186b6a5c2af84740
parent93a9cc077ccf6182ca31cbc272f4c8cd1f3f2109
[gold-plugin] Avoid race condition when creating temporary files.

This is both a potential security issue and a potential functionality
issue because we create temporary files from multiple threads. Use
the safe version of createTemporaryFile instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310636 91177308-0d34-0410-b5e6-96231b3b80d8
tools/gold/gold-plugin.cpp