<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:mclow.lists@gmail.com" title="Marshall Clow (home) <mclow.lists@gmail.com>"> <span class="fn">Marshall Clow (home)</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - locale scan-build triggers CERT MEM04 zero-length allocation error"
   href="http://llvm.org/bugs/show_bug.cgi?id=21321">bug 21321</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>INVALID
           </td>
           <td>FIXED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - locale scan-build triggers CERT MEM04 zero-length allocation error"
   href="http://llvm.org/bugs/show_bug.cgi?id=21321#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - locale scan-build triggers CERT MEM04 zero-length allocation error"
   href="http://llvm.org/bugs/show_bug.cgi?id=21321">bug 21321</a>
              from <span class="vcard"><a class="email" href="mailto:mclow.lists@gmail.com" title="Marshall Clow (home) <mclow.lists@gmail.com>"> <span class="fn">Marshall Clow (home)</span></a>
</span></b>
        <pre>Ok, I was wrong. Turns out that the part of the standard I quoted is for C++
allocation functions (i.e, replacements for operator new, or method calls in
allocators), not for functions that were hoisted from C.

Committed revision 220702 to fix the problem in <locale> (different from the
suggested fix, though).

Also, while looking at other calls to realloc in ios.cpp, I found some integer
overflows, as well as a bug in register_callback (__event_cap_ was never
getting updated).

Anyway, they're all better now. Sorry for the "invalid" tag.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>