llvm-project/clang/tools/driver
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
..
CMakeLists.txt [clang] Use PRIVATE in target_link_libraries 2017-12-06 20:05:42 +00:00
Info.plist.in [CMake] Fixing typo in Info.plist generation 2016-08-16 20:49:49 +00:00
cc1_main.cpp Disable a silly GCC diagnostic for combining a scanf length specifier with the 2016-10-15 01:59:52 +00:00
cc1as_main.cpp [Driver] Add "did you mean?" suggestions to -cc1as 2018-01-13 17:09:11 +00:00
driver.cpp [Driver] Avoid invalidated iterator in insertTargetAndModeArgs 2018-03-19 16:13:43 +00:00