diff options
| author | Serge Pavlov <sepavloff@gmail.com> | 2018-03-19 16:13:43 +0000 |
|---|---|---|
| committer | Serge Pavlov <sepavloff@gmail.com> | 2018-03-19 16:13:43 +0000 |
| commit | 826e833121d0f84a4ddf5f089e61bb8d3d79ef0e (patch) | |
| tree | 2f7600f1dfd6a74a8ac860c4fa9bcf0d6d62a4b6 /llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp | |
| parent | 4b54e5fc386e5aa62725efe893d8ac9b9ee1dd01 (diff) | |
| download | bcm5719-llvm-826e833121d0f84a4ddf5f089e61bb8d3d79ef0e.tar.gz bcm5719-llvm-826e833121d0f84a4ddf5f089e61bb8d3d79ef0e.zip | |
[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
Diffstat (limited to 'llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp')
0 files changed, 0 insertions, 0 deletions

