<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 - Change b13d9878b8dc causes crash in VLASizeChecker"
   href="https://bugs.llvm.org/show_bug.cgi?id=47272">47272</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Change b13d9878b8dc causes crash in VLASizeChecker
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>normal
          </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>chris.hamilton@ericsson.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dcoughlin@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=23874" name="attach_23874" title="Simplified reproducer">attachment 23874</a> <a href="attachment.cgi?id=23874&action=edit" title="Simplified reproducer">[details]</a></span>
Simplified reproducer

Change b13d9878b8dc was identified through bisection as the cause of this
VLASizeChecker assertion failure:

 clang-tidy:
/repo/eahcmrh/upstream-llvm-project/clang/lib/StaticAnalyzer/Checkers/VLASizeChecker.cpp:302:
void 
 {anonymous}::VLASizeChecker::checkPreStmt(const clang::DeclStmt*,
clang::ento::CheckerContext&) const: Assertion `State' failed.
 PLEASE submit a bug report to <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash
backtrace.
 Stack dump:
 0.     Program arguments: clang-tidy -checks=-*,clang-analyzer-* reduced.c 
 1.     <eof> parser at end of file
 2.     While analyzing stack: 
        #0 Calling c
 3.     /repo/eahcmrh/upstream-llvm-project/reduced.c:6:5: Error evaluating
statement
 4.     /repo/eahcmrh/upstream-llvm-project/reduced.c:6:5: Error evaluating
statement
 ./run.sh: line 5: 57723 Aborted                 clang-tidy
-checks=-*,clang-analyzer-* reduced.c

Simple reproducer is attached.  Crash can be reproduced by running 'clang-tidy
-checks=-*,clang-analyzer-* reduced.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>