
Loading…
Add noreturn attribute to various *_exit functions #2
Merged
+3
−3
eugmes
commented
|
|
eugmes |
Add noreturn attribute to various *_exit functions
…
This make report generated by llvm static analyzer much more usefull. |
f591ba8
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Commits on Jul 23, 2011
-
Add noreturn attribute to various *_exit functions …
eugmes authoredThis make report generated by llvm static analyzer much more usefull.
This page is out of date. Refresh to see the latest.
6
libdiod/diod_log.h
This make report generated by llvm static analyzer much more usefull.
After applying this patch and running the analyzer:
scan-build ./configure
scan-build -v -V make
There are 4 reports. One is dead assignment (harmless, utils/dtop.c:646), two null pointer deferences in assert statements (liblsd/list.c:684, 719, with complex conditions) and another error in libnpfs/np.c:157 (here if s is 0 and buf_check_size(buf, 2+slen) is true memmove() gets a null argument.