<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 - alpha.unix.cstring.OutOfBounds : Incorrect destination buffer size calculation for strlcat"
   href="https://bugs.llvm.org/show_bug.cgi?id=41729">41729</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>alpha.unix.cstring.OutOfBounds : Incorrect destination buffer size calculation for strlcat
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </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>Static Analyzer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>dcoughlin@apple.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>nerv@dawncrow.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dcoughlin@apple.com, llvm-bugs@lists.llvm.org, noqnoqneo@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>continuation of <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Incorrect destination buffer size calculation for strlcat"
   href="show_bug.cgi?id=37687">bug 37687</a>
This bug is only about the alpha checker, which hasn't received a fix yet, but
FIXMEs were added in r359237

For details see <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Incorrect destination buffer size calculation for strlcat"
   href="show_bug.cgi?id=37687#c8">https://bugs.llvm.org/show_bug.cgi?id=37687#c8</a>

With the test code attached there one can see the problem with:

clang -cc1 -analyze -internal-isystem /usr/lib/llvm-9/lib/clang/9.0.0/include
-internal-externc-isystem /usr/include -analyzer-checker
alpha.unix.cstring.OutOfBounds strlcattest.c</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>