<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 --- - exit isn't taken into evaluation for null-pointer dereference warning"
   href="http://llvm.org/bugs/show_bug.cgi?id=15227">15227</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>exit isn't taken into evaluation for null-pointer dereference warning
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.0
          </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>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>dothebart@citadel.org
          </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>Hi, 
the condition appears here in line 234 :
<a href="http://code.citadel.org/?p=citadel.git;a=blob;f=citadel/utils/citmail.c;h=a7a4c9006e69b6d083f673b929437ed8616aa090;hb=refs/heads/stable-81x">http://code.citadel.org/?p=citadel.git;a=blob;f=citadel/utils/citmail.c;h=a7a4c9006e69b6d083f673b929437ed8616aa090;hb=refs/heads/stable-81x</a>

The code can be concluded like the following:

void do_exit(void)
{
    exit (-1);
}

int main(int argc, char **argv)
{
   char *foo = NULL;
   if (foo == NULL)
   {
       do_exit();
   }
   *p = '\0';
}


the setting of *p is reported as error; while the program flow can never reach
this point.</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>