2025-05-09 10:14 ftp://ftp.de.debian.org/debian/pool/main/b/bibtexconv/bibtexconv_1.4.4.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=libcurl --library=openssl --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: 7761784 (2025-05-09 12:05:29 +0200) count: 115 112 elapsed-time: 2.2 2.2 head-timing-info: old-timing-info: head results: bibtexconv-1.4.4/src/node.cc:172:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bibtexconv-1.4.4/src/node.cc:284:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bibtexconv-1.4.4/src/node.cc:356:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bibtexconv-1.4.4/src/bibtexconv.cc:76:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLOPT_URL [valueFlowBailoutIncompleteVar] bibtexconv-1.4.4/src/bibtexconv.cc:152:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bibtexconv-1.4.4/src/bibtexconv.cc:188:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] bibtexconv-1.4.4/src/bibtexconv.cc:540:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bibtexconv-1.4.4/src/bibtexconv.cc:749:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bibtexconv-1.4.4/src/node.cc:48:4: warning: Either the condition 'node==NULL' is redundant or there is possible null pointer dereference: node. [nullPointerRedundantCheck] bibtexconv-1.4.4/src/node.cc:45:12: note: Assuming that condition 'node==NULL' is not redundant bibtexconv-1.4.4/src/node.cc:48:4: note: Null pointer dereference bibtexconv-1.4.4/src/node.cc:49:4: warning: Either the condition 'node==NULL' is redundant or there is possible null pointer dereference: node. [nullPointerRedundantCheck] bibtexconv-1.4.4/src/node.cc:45:12: note: Assuming that condition 'node==NULL' is not redundant bibtexconv-1.4.4/src/node.cc:49:4: note: Null pointer dereference bibtexconv-1.4.4/src/node.cc:50:4: warning: Either the condition 'node==NULL' is redundant or there is possible null pointer dereference: node. [nullPointerRedundantCheck] bibtexconv-1.4.4/src/node.cc:45:12: note: Assuming that condition 'node==NULL' is not redundant bibtexconv-1.4.4/src/node.cc:50:4: note: Null pointer dereference bibtexconv-1.4.4/src/node.cc:51:4: warning: Either the condition 'node==NULL' is redundant or there is possible null pointer dereference: node. [nullPointerRedundantCheck] bibtexconv-1.4.4/src/node.cc:45:12: note: Assuming that condition 'node==NULL' is not redundant bibtexconv-1.4.4/src/node.cc:51:4: note: Null pointer dereference bibtexconv-1.4.4/src/node.cc:52:4: warning: Either the condition 'node==NULL' is redundant or there is possible null pointer dereference: node. [nullPointerRedundantCheck] bibtexconv-1.4.4/src/node.cc:45:12: note: Assuming that condition 'node==NULL' is not redundant bibtexconv-1.4.4/src/node.cc:52:4: note: Null pointer dereference bibtexconv-1.4.4/src/node.cc:53:4: warning: Either the condition 'node==NULL' is redundant or there is possible null pointer dereference: node. [nullPointerRedundantCheck] bibtexconv-1.4.4/src/node.cc:45:12: note: Assuming that condition 'node==NULL' is not redundant bibtexconv-1.4.4/src/node.cc:53:4: note: Null pointer dereference bibtexconv-1.4.4/src/node.cc:206:26: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/node.cc:207:26: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/node.cc:237:13: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/stringhandling.cc:437:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] bibtexconv-1.4.4/src/stringhandling.cc:336:22: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] bibtexconv-1.4.4/src/stringhandling.cc:252:54: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm] bibtexconv-1.4.4/src/stringhandling.cc:257:54: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm] bibtexconv-1.4.4/src/stringhandling.cc:305:41: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm] bibtexconv-1.4.4/src/unification.cc:101:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] bibtexconv-1.4.4/src/unification.cc:175:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] bibtexconv-1.4.4/src/unification.cc:209:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] bibtexconv-1.4.4/src/unification.cc:233:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bibtexconv-1.4.4/src/unification.cc:306:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bibtexconv-1.4.4/src/unification.cc:345:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bibtexconv-1.4.4/src/unification.cc:441:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] bibtexconv-1.4.4/src/unification.cc:468:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bibtexconv-1.4.4/src/unification.cc:516:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bibtexconv-1.4.4/src/publicationset.cc:195:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bibtexconv-1.4.4/src/publicationset.cc:319:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bibtexconv-1.4.4/src/publicationset.cc:570:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] bibtexconv-1.4.4/src/publicationset.cc:1257:80: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] bibtexconv-1.4.4/src/unification.cc:487:19: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/unification.cc:490:19: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/unification.cc:162:16: style: The scope of the variable 'currentAuthor' can be reduced. [variableScope] bibtexconv-1.4.4/src/publicationset.cc:47:4: warning: Class 'PublicationSet' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] bibtexconv-1.4.4/src/publicationset.cc:47:4: warning: Class 'PublicationSet' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] bibtexconv-1.4.4/src/publicationset.h:43:4: style: Class 'PublicationSet' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] bibtexconv-1.4.4/src/publicationset.cc:241:16: warning: %u in format string (no. 3) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] bibtexconv-1.4.4/src/publicationset.cc:398:16: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] bibtexconv-1.4.4/src/publicationset.cc:407:16: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] bibtexconv-1.4.4/src/publicationset.cc:107:27: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/publicationset.cc:108:27: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/publicationset.cc:111:42: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/publicationset.cc:112:42: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/publicationset.cc:210:22: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/publicationset.cc:337:22: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/publicationset.cc:488:34: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/publicationset.cc:536:26: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/publicationset.cc:580:52: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/publicationset.cc:604:32: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/publicationset.cc:625:32: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/publicationset.cc:827:25: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/publicationset.cc:835:25: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/publicationset.cc:1081:46: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:412:65: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] bibtexconv-1.4.4/src/bibtexconv.cc:334:30: style: Condition '!failed' is always true [knownConditionTrueFalse] bibtexconv-1.4.4/src/bibtexconv.cc:320:39: note: Assignment 'failed=false', assigned value is 0 bibtexconv-1.4.4/src/bibtexconv.cc:334:30: note: Condition '!failed' is always true bibtexconv-1.4.4/src/bibtexconv.cc:348:30: style: Condition '!failed' is always true [knownConditionTrueFalse] bibtexconv-1.4.4/src/bibtexconv.cc:320:39: note: Assignment 'failed=false', assigned value is 0 bibtexconv-1.4.4/src/bibtexconv.cc:348:30: note: Condition '!failed' is always true bibtexconv-1.4.4/src/bibtexconv.cc:872:10: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] bibtexconv-1.4.4/src/bibtexconv.cc:100:23: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:148:24: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:241:22: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:244:22: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:246:19: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:247:19: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:249:34: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:250:34: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:287:40: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:312:56: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:372:46: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:375:108: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:382:68: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:388:65: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:414:37: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:507:16: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:525:38: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:535:28: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:541:28: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:557:38: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:585:34: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:586:34: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:595:34: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:641:49: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:644:37: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:647:38: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:650:21: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:653:26: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:665:39: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:668:40: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:672:47: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:695:31: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:754:28: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:757:37: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:760:25: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:763:34: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:766:28: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:769:31: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:772:18: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:775:23: style: C-style pointer casting [cstyleCast] bibtexconv-1.4.4/src/bibtexconv.cc:366:40: style: Local variable 'command' shadows outer variable [shadowVariable] bibtexconv-1.4.4/src/bibtexconv.cc:282:37: note: Shadowed declaration bibtexconv-1.4.4/src/bibtexconv.cc:366:40: note: Shadow variable bibtexconv-1.4.4/src/bibtexconv.cc:382:58: style: Local variable 'keywords' shadows outer variable [shadowVariable] bibtexconv-1.4.4/src/bibtexconv.cc:378:49: note: Shadowed declaration bibtexconv-1.4.4/src/bibtexconv.cc:382:58: note: Shadow variable bibtexconv-1.4.4/src/bibtexconv.cc:136:48: performance: Function parameter 'url' should be passed by const reference. [passedByValue] bibtexconv-1.4.4/src/bibtexconv.cc:182:43: style: Parameter 'publicationSet' can be declared as pointer to const [constParameterPointer] bibtexconv-1.4.4/src/bibtexconv.cc:378:49: style: Variable 'keywords' can be declared as pointer to const [constVariablePointer] bibtexconv-1.4.4/src/bibtexconv.cc:291:50: performance: Ineffective call of function 'substr' because a prefix of the string is assigned to itself. Use resize() or pop_back() instead. [uselessCallsSubstr] bibtexconv-1.4.4/src/bibtexconv.cc:565:28: performance: Ineffective call of function 'substr' because a prefix of the string is assigned to itself. Use resize() or pop_back() instead. [uselessCallsSubstr] bibtexconv-1.4.4/src/publicationset.cc:244:35: style: The scope of the variable 'bibtexMonthNames' can be reduced. [variableScope] bibtexconv-1.4.4/src/publicationset.cc:401:35: style: The scope of the variable 'xmlMonthNames' can be reduced. [variableScope] bibtexconv-1.4.4/src/publicationset.cc:482:25: style: Local variable 'type' shadows outer variable [shadowVariable] bibtexconv-1.4.4/src/publicationset.cc:355:22: note: Shadowed declaration bibtexconv-1.4.4/src/publicationset.cc:482:25: note: Shadow variable bibtexconv-1.4.4/src/publicationset.cc:184:67: style: Parameter 'publicationSet' can be declared as pointer to const [constParameterPointer] bibtexconv-1.4.4/src/publicationset.cc:311:64: style: Parameter 'publicationSet' can be declared as pointer to const [constParameterPointer] bibtexconv-1.4.4/src/publicationset.cc:1222:83: style: Parameter 'publicationSet' can be declared as pointer to const [constParameterPointer] diff: head bibtexconv-1.4.4/src/stringhandling.cc:252:54: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm] head bibtexconv-1.4.4/src/stringhandling.cc:257:54: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm] head bibtexconv-1.4.4/src/stringhandling.cc:305:41: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm] DONE