2022-06-27 03:33 ftp://ftp.de.debian.org/debian/pool/main/d/dircproxy/dircproxy_1.0.5.orig.tar.gz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --template=daca2 -D__GNUC__ --platform=unix64 -rp=temp -j2 platform: Linux-5.4.0-110-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.24 compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 cppcheck: head 2.8 head-info: 242afc3 (2022-06-25 21:42:55 +0200) count: 61 61 elapsed-time: 543.5 1030.4 head-timing-info: Overall time: 0s old-timing-info: Overall time: 0s head results: dircproxy-1.0.5/crypt/main.c:143:9: portability: Non reentrant function 'crypt' called. For threadsafe applications it is recommended to use the reentrant replacement function 'crypt_r'. [prohibitedcryptCalled] dircproxy-1.0.5/src/dcc_net.c:199:40: style: Parameter 'range' can be declared as pointer to const [constParameter] dircproxy-1.0.5/src/dns.c:78:12: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] dircproxy-1.0.5/src/dns.c:81:12: style: Obsolescent function 'gethostbyaddr' called. It is recommended to use 'getnameinfo' instead. [prohibitedgethostbyaddrCalled] dircproxy-1.0.5/src/dns.c:380:11: portability: Non reentrant function 'getservbyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservbyname_r'. [prohibitedgetservbynameCalled] dircproxy-1.0.5/src/dns.c:389:11: portability: Non reentrant function 'getservbyport' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservbyport_r'. [prohibitedgetservbyportCalled] dircproxy-1.0.5/src/dns.c:277:22: style: Parameter 'b' can be declared as pointer to const [constParameter] dircproxy-1.0.5/src/irc_client.c:1221:11: portability: Non reentrant function 'crypt' called. For threadsafe applications it is recommended to use the reentrant replacement function 'crypt_r'. [prohibitedcryptCalled] dircproxy-1.0.5/src/irc_client.c:1821:55: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] dircproxy-1.0.5/src/irc_client.c:428:17: style: Local variable 'str' shadows outer argument [shadowArgument] dircproxy-1.0.5/src/irc_client.c:308:62: note: Shadowed declaration dircproxy-1.0.5/src/irc_client.c:428:17: note: Shadow variable dircproxy-1.0.5/src/irc_client.c:619:17: style: Local variable 'str' shadows outer argument [shadowArgument] dircproxy-1.0.5/src/irc_client.c:308:62: note: Shadowed declaration dircproxy-1.0.5/src/irc_client.c:619:17: note: Shadow variable dircproxy-1.0.5/src/irc_client.c:1549:9: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] dircproxy-1.0.5/src/irc_log.c:72:8: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] dircproxy-1.0.5/src/irc_log.c:222:55: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] dircproxy-1.0.5/src/irc_log.c:245:55: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] dircproxy-1.0.5/src/irc_log.c:569:53: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] dircproxy-1.0.5/src/irc_log.c:793:53: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] dircproxy-1.0.5/src/irc_log.c:796:56: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] dircproxy-1.0.5/src/irc_log.c:799:53: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] dircproxy-1.0.5/src/irc_log.c:802:56: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] dircproxy-1.0.5/src/irc_log.c:805:59: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] dircproxy-1.0.5/src/irc_log.c:629:14: style: Condition 'recall==-1' is always false [knownConditionTrueFalse] dircproxy-1.0.5/src/irc_log.c:625:7: note: Assuming that condition '!recall' is not redundant dircproxy-1.0.5/src/irc_log.c:629:14: note: Condition 'recall==-1' is always false dircproxy-1.0.5/src/irc_net.c:181:57: style: Parameter 'class' can be declared as pointer to const [constParameter] dircproxy-1.0.5/src/irc_prot.c:212:14: style: Redundant condition: If 'EXPR == ' '', the comparison 'EXPR' is always true. [redundantCondition] dircproxy-1.0.5/src/irc_server.c:1290:62: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] dircproxy-1.0.5/src/irc_server.c:917:17: style: Local variable 'msg' shadows outer variable [shadowVariable] dircproxy-1.0.5/src/irc_server.c:458:21: note: Shadowed declaration dircproxy-1.0.5/src/irc_server.c:917:17: note: Shadow variable dircproxy-1.0.5/src/irc_server.c:1047:13: style: Local variable 'str' shadows outer argument [shadowArgument] dircproxy-1.0.5/src/irc_server.c:457:62: note: Shadowed declaration dircproxy-1.0.5/src/irc_server.c:1047:13: note: Shadow variable dircproxy-1.0.5/src/irc_server.c:1121:25: style: Local variable 'ptr' shadows outer variable [shadowVariable] dircproxy-1.0.5/src/irc_server.c:1095:25: note: Shadowed declaration dircproxy-1.0.5/src/irc_server.c:1121:25: note: Shadow variable dircproxy-1.0.5/src/irc_server.c:1365:13: style: Local variable 'str' shadows outer argument [shadowArgument] dircproxy-1.0.5/src/irc_server.c:457:62: note: Shadowed declaration dircproxy-1.0.5/src/irc_server.c:1365:13: note: Shadow variable dircproxy-1.0.5/src/irc_server.c:703:17: style: Variable 's' is assigned a value that is never used. [unreadVariable] dircproxy-1.0.5/src/irc_server.c:744:17: style: Variable 's' is assigned a value that is never used. [unreadVariable] dircproxy-1.0.5/src/main.c:187:10: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] dircproxy-1.0.5/src/net.c:50:0: error: #error "unable to compile, no poll() or select() function" [preprocessorErrorDirective] dircproxy-1.0.5/src/sprintf.c:132:5: error: Common realloc mistake: 'newstr' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:141:7: error: Common realloc mistake: 'newstr' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:156:7: error: Common realloc mistake: 'newstr' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:167:5: error: Common realloc mistake: 'newstr' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:181:7: error: Common realloc mistake: 'newstr' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:197:5: error: Common realloc mistake: 'newstr' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:234:5: error: Common realloc mistake: 'tmpstr' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:339:13: error: Common realloc mistake: 'newdest' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:350:9: error: Common realloc mistake: 'newdest' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:361:13: error: Common realloc mistake: 'newdest' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:382:13: error: Common realloc mistake: 'newdest' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:393:9: error: Common realloc mistake: 'newdest' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:409:13: error: Common realloc mistake: 'newdest' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:428:13: error: Common realloc mistake: 'newdest' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:443:13: error: Common realloc mistake: 'newdest' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:457:13: error: Common realloc mistake: 'newdest' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:499:9: error: Common realloc mistake: 'newdest' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:512:9: error: Common realloc mistake: 'newdest' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:522:7: error: Common realloc mistake: 'newdest' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:201:14: style: Variable 'newstrlen' is assigned a value that is never used. [unreadVariable] dircproxy-1.0.5/src/timers.c:44:24: style: Parameter 'b' can be declared as pointer to const [constParameter] dircproxy-1.0.5/src/timers.c:85:21: style: Parameter 'b' can be declared as pointer to const [constParameter] dircproxy-1.0.5/src/timers.c:113:24: style: Parameter 'b' can be declared as pointer to const [constParameter] dircproxy-1.0.5/src/cfgfile.c:63:31: warning: Conversion of string literal "6667" to bool always evaluates to true. [incorrectStringBooleanError] dircproxy-1.0.5/src/cfgfile.c:81:25: warning: Conversion of string literal "i" to bool always evaluates to true. [incorrectStringBooleanError] dircproxy-1.0.5/src/cfgfile.c:83:22: warning: Conversion of string literal "oOws" to bool always evaluates to true. [incorrectStringBooleanError] dircproxy-1.0.5/src/cfgfile.c:88:24: warning: Conversion of string literal "Not available, messages are logged" to bool always evaluates to true. [incorrectStringBooleanError] dircproxy-1.0.5/src/cfgfile.c:1344:11: style: Variable 'class' is assigned a value that is never used. [unreadVariable] diff: head dircproxy-1.0.5/src/dcc_net.c:199:40: style: Parameter 'range' can be declared as pointer to const [constParameter] 2.8 dircproxy-1.0.5/src/dcc_net.c:199:40: style: Parameter 'range' can be declared with const [constParameter] head dircproxy-1.0.5/src/dns.c:277:22: style: Parameter 'b' can be declared as pointer to const [constParameter] 2.8 dircproxy-1.0.5/src/dns.c:277:22: style: Parameter 'b' can be declared with const [constParameter] head dircproxy-1.0.5/src/irc_net.c:181:57: style: Parameter 'class' can be declared as pointer to const [constParameter] 2.8 dircproxy-1.0.5/src/irc_net.c:181:57: style: Parameter 'class' can be declared with const [constParameter] head dircproxy-1.0.5/src/timers.c:113:24: style: Parameter 'b' can be declared as pointer to const [constParameter] 2.8 dircproxy-1.0.5/src/timers.c:113:24: style: Parameter 'b' can be declared with const [constParameter] head dircproxy-1.0.5/src/timers.c:44:24: style: Parameter 'b' can be declared as pointer to const [constParameter] 2.8 dircproxy-1.0.5/src/timers.c:44:24: style: Parameter 'b' can be declared with const [constParameter] head dircproxy-1.0.5/src/timers.c:85:21: style: Parameter 'b' can be declared as pointer to const [constParameter] 2.8 dircproxy-1.0.5/src/timers.c:85:21: style: Parameter 'b' can be declared with const [constParameter] DONE