[llvm-bugs] [Bug 36824] New: Merge r327863 into the 6.0 branch : [Driver] Avoid invalidated iterator in insertTargetAndModeArgs
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Mar 20 13:08:34 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=36824
Bug ID: 36824
Summary: Merge r327863 into the 6.0 branch : [Driver] Avoid
invalidated iterator in insertTargetAndModeArgs
Product: clang
Version: 6.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: mgorny at gentoo.org
CC: llvm-bugs at lists.llvm.org
Blocks: 36649
commit 3bd89a4b0543a84457046c08b80149b1c8d358f5
Author: Serge Pavlov <sepavloff at gmail.com>
Date: Mon Mar 19 17:13:43 2018
[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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@327863
91177308-0d34-0410-b5e6-96231b3b80d8
Referenced Bugs:
https://bugs.llvm.org/show_bug.cgi?id=36649
[Bug 36649] [meta] 6.0.1 Release Blockers
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180320/8bea35e9/attachment.html>
More information about the llvm-bugs
mailing list