Summary: public This cleans up the output of infer. Before: $ touch empty.c $ infer -- gcc -c empty.c Starting analysis (Infer version git-436690cf022a16313dda8447121a5934529e6e5c) Analysis done No issues found $ infer -- javac Hello.java Starting analysis (Infer version git-436690cf022a16313dda8447121a5934529e6e5c) Analysis done Hello.java:4: error: NULL_DEREFERENCE object s last assigned on line 3 could be null and is dereferenced at line 4 2. int test() { 3. String s = null; 4. > return s.length(); 5. } 6. } Analyzed 2 procedures in 1 file $ After: $ infer -- gcc -c empty.c Starting analysis (Infer version git-434faa7f70f6b9498615d3ead8c12bcfec6fc553) Analyzing 0 clusters Analysis done No issues found $ infer -- javac Hello.java Starting analysis (Infer version git-434faa7f70f6b9498615d3ead8c12bcfec6fc553) Computing dependencies... 100% Analyzing 1 cluster. 100% Analysis done Found 1 issue Hello.java:4: error: NULL_DEREFERENCE object s last assigned on line 3 could be null and is dereferenced at line 4 2. int test() { 3. String s = null; 4. > return s.length(); 5. } 6. } Analyzed 2 procedures in 1 file $ Also tested with buck, gradle. Reviewed By: cristianoc Differential Revision: D2636969 fb-gh-sync-id: 52f06f0master
parent
d03dcb6961
commit
02b9bec78e
Loading…
Reference in new issue