<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Merge r327863 into the 6.0 branch : [Driver] Avoid invalidated iterator in insertTargetAndModeArgs"
   href="https://bugs.llvm.org/show_bug.cgi?id=36824">36824</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Merge r327863 into the 6.0 branch : [Driver] Avoid invalidated iterator in insertTargetAndModeArgs
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mgorny@gentoo.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>36649
          </td>
        </tr></table>
      <p>
        <div>
        <pre>commit 3bd89a4b0543a84457046c08b80149b1c8d358f5
Author: Serge Pavlov <<a href="mailto:sepavloff@gmail.com">sepavloff@gmail.com</a>>
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):
<a href="https://bugs.gentoo.org/650082">https://bugs.gentoo.org/650082</a>.

    Patch by Hector Martin!

    Differential Revision: <a href="https://reviews.llvm.org/D44607">https://reviews.llvm.org/D44607</a>


    git-svn-id: <a href="https://llvm.org/svn/llvm-project/cfe/trunk@327863">https://llvm.org/svn/llvm-project/cfe/trunk@327863</a>
91177308-0d34-0410-b5e6-96231b3b80d8</pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [meta] 6.0.1 Release Blockers"
   href="https://bugs.llvm.org/show_bug.cgi?id=36649">Bug 36649</a>] [meta] 6.0.1 Release Blockers
              </li>
          </ul>
        </div>
        <br>

      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>