<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:jbc.engelen@gmail.com" title="Johan Engelen <jbc.engelen@gmail.com>"> <span class="fn">Johan Engelen</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - ASan: posix_memalign returns invalid value when allocation fails (macOS)"
   href="https://bugs.llvm.org/show_bug.cgi?id=36510">bug 36510</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;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - ASan: posix_memalign returns invalid value when allocation fails (macOS)"
   href="https://bugs.llvm.org/show_bug.cgi?id=36510#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - ASan: posix_memalign returns invalid value when allocation fails (macOS)"
   href="https://bugs.llvm.org/show_bug.cgi?id=36510">bug 36510</a>
              from <span class="vcard"><a class="email" href="mailto:jbc.engelen@gmail.com" title="Johan Engelen <jbc.engelen@gmail.com>"> <span class="fn">Johan Engelen</span></a>
</span></b>
        <pre>Fixed in trunk.

Tested with LDC+LVMtrunk and D code:
```
import std.stdio;
import core.sys.posix.stdlib;

void main()
{
    void* result;
    writeln( posix_memalign(&result, 1, size_t.max), " (expected 22)");
    writeln( posix_memalign(&result, 32, size_t.max), " (expected 12)");
}
```</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>