<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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 --- - False positive: garbage array value"
   href="http://llvm.org/bugs/show_bug.cgi?id=19725">19725</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>False positive: garbage array value
          </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>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>kremenek@apple.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>daniel.marjamaki@evidente.se
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Example code:

void f(const unsigned char n) {
    int              buf[2][4]  = {{0,0,0,0},{0,0,0,0}};
    unsigned char    j,k,l,x;

    for (l = n - 1; l >= 1; l--)
        x = 0;

    for (j = n - 1; j >= 1; j--) {
        for (k = 0; k <= j - 1; k++)
            x = buf[k][j];
    }
}

I get this false positive:

clang-uninit-fp.c:12:15: warning: Assigned value is garbage or undefined
            x = buf[k][j];

But as far as I can tell, buf data is completely initialized.</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>