2022-06-25 11:55 ftp://ftp.de.debian.org/debian/pool/main/t/talloc/talloc_2.3.3.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-5.4.0-121-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.24 compiler: g++ (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0 cppcheck: head 2.8 head-info: 63e567e (2022-06-25 08:38:17 +0200) count: 27 27 elapsed-time: 7.3 8.5 head-timing-info: Tokenizer::simplifyTokens1: 1.78157s (avg. 0.111348s - 16 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 0.966214s (avg. 0.0603884s - 16 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.605301s (avg. 0.0378313s - 16 result(s)) Other::runChecks: 0.118992s (avg. 0.007437s - 16 result(s)) Condition::runChecks: 0.095528s (avg. 0.0059705s - 16 result(s)) Overall time: 3.94813s old-timing-info: Tokenizer::simplifyTokens1: 2.0799s (avg. 0.129994s - 16 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 0.962389s (avg. 0.0601493s - 16 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.902057s (avg. 0.0563786s - 16 result(s)) Other::runChecks: 0.133728s (avg. 0.008358s - 16 result(s)) Condition::runChecks: 0.109607s (avg. 0.00685044s - 16 result(s)) Overall time: 4.60634s head results: talloc-2.3.3/lib/replace/replace.h:45:0: error: #error -D__STDC_WANT_LIB_EXT1__=1 required [preprocessorErrorDirective] talloc-2.3.3/lib/replace/tests/incoherent_mmap.c:16:26: style: Parameter 'argv' can be declared as const array [constParameter] talloc-2.3.3/lib/replace/tests/os2_delete.c:115:2: warning: Return value of function strcmp() is not used. [ignoredReturnValue] talloc-2.3.3/lib/replace/tests/os2_delete.c:117:2: warning: Return value of function strcmp() is not used. [ignoredReturnValue] talloc-2.3.3/lib/replace/tests/os2_delete.c:69:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] talloc-2.3.3/lib/replace/tests/os2_delete.c:71:10: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] talloc-2.3.3/lib/replace/tests/os2_delete.c:114:7: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] talloc-2.3.3/lib/replace/tests/os2_delete.c:116:7: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] talloc-2.3.3/lib/replace/tests/os2_delete.c:55:13: warning: Either the condition 'fd<0' is redundant or close() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] talloc-2.3.3/lib/replace/tests/os2_delete.c:52:10: note: Assuming that condition 'fd<0' is not redundant talloc-2.3.3/lib/replace/tests/os2_delete.c:55:13: note: Invalid argument talloc-2.3.3/lib/replace/tests/os2_delete.c:50:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] talloc-2.3.3/lib/replace/tests/snprintf.c:22:6: warning: %zu in format string (no. 1) requires 'size_t' but the argument type is 'signed int'. [invalidPrintfArgType_uint] talloc-2.3.3/lib/replace/tests/snprintf.c:24:6: warning: %s in format string (no. 1) requires 'char *' but the argument type is 'signed int'. [invalidPrintfArgType_s] talloc-2.3.3/lib/replace/tests/snprintf.c:24:30: error: Null pointer dereference [nullPointer] talloc-2.3.3/lib/replace/tests/testsuite.c:929:6: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] talloc-2.3.3/lib/replace/tests/testsuite.c:945:6: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] talloc-2.3.3/lib/replace/tests/testsuite.c:1019:6: style: Obsolescent function 'utimes' called. It is recommended to use 'utimensat' instead. [prohibitedutimesCalled] talloc-2.3.3/pytalloc_util.c:327:51: style:inconclusive: Function '_pytalloc_get_name' argument 1 names different: declaration 'py_obj' definition 'obj'. [funcArgNamesDifferent] talloc-2.3.3/pytalloc.h:61:51: note: Function '_pytalloc_get_name' argument 1 names different: declaration 'py_obj' definition 'obj'. talloc-2.3.3/pytalloc_util.c:327:51: note: Function '_pytalloc_get_name' argument 1 names different: declaration 'py_obj' definition 'obj'. talloc-2.3.3/talloc.c:41:0: error: #error "TALLOC_VERSION_MAJOR != TALLOC_BUILD_VERSION_MAJOR" [preprocessorErrorDirective] talloc-2.3.3/testsuite.c:1408:7: style: Variable 'p1_2' is reassigned a value before the old one has been used. [redundantAssignment] talloc-2.3.3/testsuite.c:1406:7: note: p1_2 is assigned talloc-2.3.3/testsuite.c:1408:7: note: p1_2 is overwritten talloc-2.3.3/testsuite.c:1425:7: style: Variable 'p2_2' is reassigned a value before the old one has been used. [redundantAssignment] talloc-2.3.3/testsuite.c:1422:7: note: p2_2 is assigned talloc-2.3.3/testsuite.c:1425:7: note: p2_2 is overwritten talloc-2.3.3/testsuite.c:429:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] talloc-2.3.3/testsuite.c:437:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] talloc-2.3.3/testsuite.c:492:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] talloc-2.3.3/testsuite.c:813:5: style: Variable 'p1' is assigned a value that is never used. [unreadVariable] talloc-2.3.3/testsuite.c:912:9: style: Variable 'p1' is allocated memory that is never used. [unusedAllocatedMemory] talloc-2.3.3/testsuite.c:913:9: style: Variable 'p2' is allocated memory that is never used. [unusedAllocatedMemory] talloc-2.3.3/testsuite.c:914:9: style: Variable 'p3' is allocated memory that is never used. [unusedAllocatedMemory] diff: head talloc-2.3.3/lib/replace/tests/incoherent_mmap.c:16:26: style: Parameter 'argv' can be declared as const array [constParameter] 2.8 talloc-2.3.3/lib/replace/tests/incoherent_mmap.c:16:26: style: Parameter 'argv' can be declared with const [constParameter] DONE