2022-06-20 20:14 ftp://ftp.de.debian.org/debian/pool/main/a/asmail/asmail_2.1.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 -j1 platform: Linux-4.19.0-18-amd64-x86_64-with-debian-10.12 python: 3.7.3 client-version: 1.3.24 compiler: g++ (Debian 8.3.0-6) 8.3.0 cppcheck: head 2.8 head-info: 5b9fa96 (2022-06-20 20:02:22 +0200) count: 70 70 elapsed-time: 2.5 4.0 head-timing-info: Tokenizer::simplifyTokens1: 2.34884s (avg. 0.213531s - 11 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 2.08867s (avg. 0.189879s - 11 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.170013s (avg. 0.0154557s - 11 result(s)) Tokenizer::createTokens: 0.036638s (avg. 0.00333073s - 11 result(s)) Tokenizer::simplifyTokens1::setValueType: 0.035745s (avg. 0.00324955s - 11 result(s)) Overall time: 4.77381s old-timing-info: Tokenizer::simplifyTokens1: 3.82525s (avg. 0.34775s - 11 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 3.56333s (avg. 0.323939s - 11 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.171368s (avg. 0.0155789s - 11 result(s)) Tokenizer::createTokens: 0.037176s (avg. 0.00337964s - 11 result(s)) Tokenizer::simplifyTokens1::setValueType: 0.034667s (avg. 0.00315155s - 11 result(s)) Overall time: 7.72456s head results: asmail-2.1/asmail.c:592:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] asmail-2.1/asmail.c:604:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] asmail-2.1/asmail.c:241:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] asmail-2.1/asmail.c:855:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] asmail-2.1/asmail.c:269:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:271:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:366:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:368:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:371:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:374:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:377:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:380:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:383:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:385:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:392:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:434:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:436:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:439:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:462:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:469:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:554:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:556:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:574:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:576:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:578:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:580:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:582:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:594:6: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:608:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:610:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:612:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:614:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:621:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:628:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:711:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:713:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/asmail.c:720:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] asmail-2.1/gui.c:712:9: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] asmail-2.1/gui.c:711:9: note: status is assigned asmail-2.1/gui.c:712:9: note: status is overwritten asmail-2.1/gui.c:715:9: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] asmail-2.1/gui.c:712:9: note: status is assigned asmail-2.1/gui.c:715:9: note: status is overwritten asmail-2.1/gui.c:726:9: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] asmail-2.1/gui.c:715:9: note: status is assigned asmail-2.1/gui.c:726:9: note: status is overwritten asmail-2.1/gui.c:731:9: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] asmail-2.1/gui.c:726:9: note: status is assigned asmail-2.1/gui.c:731:9: note: status is overwritten asmail-2.1/gui.c:738:9: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] asmail-2.1/gui.c:731:9: note: status is assigned asmail-2.1/gui.c:738:9: note: status is overwritten asmail-2.1/gui.c:750:9: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] asmail-2.1/gui.c:738:9: note: status is assigned asmail-2.1/gui.c:750:9: note: status is overwritten asmail-2.1/gui.c:755:9: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] asmail-2.1/gui.c:750:9: note: status is assigned asmail-2.1/gui.c:755:9: note: status is overwritten asmail-2.1/gui.c:783:9: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] asmail-2.1/gui.c:755:9: note: status is assigned asmail-2.1/gui.c:783:9: note: status is overwritten asmail-2.1/gui.c:520:20: style: Variable 'x_size_forced' is assigned a value that is never used. [unreadVariable] asmail-2.1/gui.c:521:20: style: Variable 'y_size_forced' is assigned a value that is never used. [unreadVariable] asmail-2.1/gui.c:639:18: style: Variable 'x_size_forced' is assigned a value that is never used. [unreadVariable] asmail-2.1/gui.c:643:18: style: Variable 'y_size_forced' is assigned a value that is never used. [unreadVariable] asmail-2.1/gui.c:783:9: style: Variable 'status' is assigned a value that is never used. [unreadVariable] asmail-2.1/maildir.c:20:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] asmail-2.1/md5c.c:280:8: style: Parameter 'input' can be declared as pointer to const [constParameter] asmail-2.1/mh.c:297:16: portability: Assigning an integer to a pointer is not portable. [AssignmentIntegerToAddress] asmail-2.1/mh.c:313:15: portability: Assigning an integer to a pointer is not portable. [AssignmentIntegerToAddress] asmail-2.1/mh.c:83:22: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] asmail-2.1/mh.c:179:22: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] asmail-2.1/mh.c:211:26: warning: Char literal compared with pointer 'tokens[i]'. Did you intend to dereference it? [charLiteralWithCharPtrCompare] asmail-2.1/mh.c:224:32: warning: Char literal compared with pointer 'tokens[i]'. Did you intend to dereference it? [charLiteralWithCharPtrCompare] asmail-2.1/mh.c:16:15: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] asmail-2.1/mh.c:35:13: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] asmail-2.1/mh.c:146:28: style: Variable 'i' is assigned a value that is never used. [unreadVariable] asmail-2.1/mh.c:252:6: style: Variable 'pos' is assigned a value that is never used. [unreadVariable] asmail-2.1/pop3.c:73:2: warning:inconclusive: Width 5 given in format string (no. 1) is smaller than destination buffer 'key[256]'. [invalidScanfFormatWidth_smaller] asmail-2.1/pop3.c:110:3: warning:inconclusive: Width 5 given in format string (no. 1) is smaller than destination buffer 'key[256]'. [invalidScanfFormatWidth_smaller] asmail-2.1/pop3.c:120:3: warning:inconclusive: Width 5 given in format string (no. 1) is smaller than destination buffer 'key[256]'. [invalidScanfFormatWidth_smaller] asmail-2.1/pop3.c:128:3: warning:inconclusive: Width 5 given in format string (no. 1) is smaller than destination buffer 'key[256]'. [invalidScanfFormatWidth_smaller] asmail-2.1/pop3.c:144:2: warning:inconclusive: Width 5 given in format string (no. 1) is smaller than destination buffer 'key[256]'. [invalidScanfFormatWidth_smaller] asmail-2.1/pop3.c:153:2: warning:inconclusive: Width 5 given in format string (no. 1) is smaller than destination buffer 'key[256]'. [invalidScanfFormatWidth_smaller] asmail-2.1/socklib.c:115:24: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] asmail-2.1/socklib.c:154:19: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] diff: head asmail-2.1/md5c.c:280:8: style: Parameter 'input' can be declared as pointer to const [constParameter] 2.8 asmail-2.1/md5c.c:280:8: style: Parameter 'input' can be declared with const [constParameter] DONE