-
Notifications
You must be signed in to change notification settings - Fork 15.3k
Closed
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:static analyzerinvalidResolved as invalid, i.e. not a bugResolved as invalid, i.e. not a bug
Description
| Bugzilla Link | 8689 |
| Resolution | INVALID |
| Resolved on | Nov 29, 2010 17:19 |
| Version | trunk |
| OS | Linux |
| Reporter | LLVM Bugzilla Contributor |
| CC | @tkremenek |
Extended Description
Static analyzer for the attached file reports that:
/tmp/test.c:17:28: warning: Access to field 'a' results in a dereference of a null pointer (loaded from variable 'X')
return error ? NULL : X->a;
~ ^
But clearly when X is dereferenced it cannot be NULL.
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:static analyzerinvalidResolved as invalid, i.e. not a bugResolved as invalid, i.e. not a bug