llvm-project/clang/tools
Serge Pavlov 826e833121 [Driver] Avoid invalidated iterator in insertTargetAndModeArgs
Doing an .insert() can potentially invalidate iterators by reallocating the
vector's storage. When all the stars align just right, this causes segfaults
or glibc aborts.

Gentoo Linux bug (crashes while building Chromium): https://bugs.gentoo.org/650082.

Patch by Hector Martin!

Differential Revision: https://reviews.llvm.org/D44607

llvm-svn: 327863
2018-03-19 16:13:43 +00:00
..
arcmt-test [CMake] Use PRIVATE in target_link_libraries for executables 2017-12-05 21:49:56 +00:00
c-arcmt-test [CMake] Use PRIVATE in target_link_libraries for executables 2017-12-05 21:49:56 +00:00
c-index-test Clean up use of C allocation functions 2018-02-21 02:02:39 +00:00
clang-check [CMake] Use PRIVATE in target_link_libraries for executables 2017-12-05 21:49:56 +00:00
clang-diff [CMake] Use PRIVATE in target_link_libraries for executables 2017-12-05 21:49:56 +00:00
clang-format [clang-format] Fix bug where -dump-config failed on ObjC header 2018-01-29 17:36:43 +00:00
clang-format-vs clang-format plugin: Add missing semicolon in list of file extensions (PR36383) 2018-02-20 09:26:38 +00:00
clang-func-mapping [CMake] Use PRIVATE in target_link_libraries for executables 2017-12-05 21:49:56 +00:00
clang-fuzzer [clang-proto-to-cxx] Accept protobufs with missing fields. 2018-02-02 20:22:20 +00:00
clang-import-test clang-import-test: fix build with clang-3.8 2018-03-13 11:28:27 +00:00
clang-offload-bundler Update for llvm change. NFC. 2018-02-14 19:11:37 +00:00
clang-refactor Revert "[Tooling] [0/1] Refactor FrontendActionFactory::create() to return std::unique_ptr<>" 2018-02-27 15:54:55 +00:00
clang-rename [CMake] Use PRIVATE in target_link_libraries for executables 2017-12-05 21:49:56 +00:00
diag-build
diagtool [CMake] Use PRIVATE in target_link_libraries for executables 2017-12-05 21:49:56 +00:00
driver [Driver] Avoid invalidated iterator in insertTargetAndModeArgs 2018-03-19 16:13:43 +00:00
libclang Clean up use of C allocation functions 2018-02-21 02:02:39 +00:00
scan-build [scan-build] Add an option to skip overriding CC and CXX make vars 2018-01-29 16:49:34 +00:00
scan-build-py Resubmit [analyzer] Support for naive cross translation unit analysis 2018-03-01 14:54:16 +00:00
scan-view Add coding and shebang. 2017-03-02 18:47:22 +00:00
CMakeLists.txt Add Cross Translation Unit support library 2017-09-22 11:11:01 +00:00