2022-06-25 12:31 ftp://ftp.de.debian.org/debian/pool/main/t/tdom/tdom_0.9.2.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: 63e567e (2022-06-25 08:38:17 +0200) count: 115 115 elapsed-time: 52.1 85.5 head-timing-info: Overall time: 0s old-timing-info: Overall time: 0s head results: tdom-0.9.2-src/expat/xmlparse.c:98:0: error: #error You do not have support for any sources of high quality entropy \ [preprocessorErrorDirective] tdom-0.9.2-src/expat/xmltok.c:1268:23: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] tdom-0.9.2-src/expat/xmltok.c:1257:19: style:inconclusive: Function 'XmlUtf8Encode' argument 1 names different: declaration 'charNumber' definition 'c'. [funcArgNamesDifferent] tdom-0.9.2-src/expat/xmltok.h:291:32: note: Function 'XmlUtf8Encode' argument 1 names different: declaration 'charNumber' definition 'c'. tdom-0.9.2-src/expat/xmltok.c:1257:19: note: Function 'XmlUtf8Encode' argument 1 names different: declaration 'charNumber' definition 'c'. tdom-0.9.2-src/expat/xmltok.c:1293:20: style:inconclusive: Function 'XmlUtf16Encode' argument 1 names different: declaration 'charNumber' definition 'charNum'. [funcArgNamesDifferent] tdom-0.9.2-src/expat/xmltok.h:292:33: note: Function 'XmlUtf16Encode' argument 1 names different: declaration 'charNumber' definition 'charNum'. tdom-0.9.2-src/expat/xmltok.c:1293:20: note: Function 'XmlUtf16Encode' argument 1 names different: declaration 'charNumber' definition 'charNum'. tdom-0.9.2-src/expat/xmltok_ns.c:111:34: style:inconclusive: Function 'XmlParseXmlDecl' argument 8 names different: declaration 'encodingNamePtr' definition 'encodingName'. [funcArgNamesDifferent] tdom-0.9.2-src/expat/xmltok.h:285:34: note: Function 'XmlParseXmlDecl' argument 8 names different: declaration 'encodingNamePtr' definition 'encodingName'. tdom-0.9.2-src/expat/xmltok_ns.c:111:34: note: Function 'XmlParseXmlDecl' argument 8 names different: declaration 'encodingNamePtr' definition 'encodingName'. tdom-0.9.2-src/expat/xmltok_ns.c:111:65: style:inconclusive: Function 'XmlParseXmlDecl' argument 9 names different: declaration 'namedEncodingPtr' definition 'encoding'. [funcArgNamesDifferent] tdom-0.9.2-src/expat/xmltok.h:286:38: note: Function 'XmlParseXmlDecl' argument 9 names different: declaration 'namedEncodingPtr' definition 'encoding'. tdom-0.9.2-src/expat/xmltok_ns.c:111:65: note: Function 'XmlParseXmlDecl' argument 9 names different: declaration 'namedEncodingPtr' definition 'encoding'. tdom-0.9.2-src/expat/xmltok_ns.c:112:26: style:inconclusive: Function 'XmlParseXmlDecl' argument 10 names different: declaration 'standalonePtr' definition 'standalone'. [funcArgNamesDifferent] tdom-0.9.2-src/expat/xmltok.h:286:61: note: Function 'XmlParseXmlDecl' argument 10 names different: declaration 'standalonePtr' definition 'standalone'. tdom-0.9.2-src/expat/xmltok_ns.c:112:26: note: Function 'XmlParseXmlDecl' argument 10 names different: declaration 'standalonePtr' definition 'standalone'. tdom-0.9.2-src/expat/xmltok.c:1401:40: style: Parameter 'table' can be declared as pointer to const [constParameter] tdom-0.9.2-src/extensions/tnc/win/nmakehlp.c:644:13: warning: Either the condition 've' is redundant or there is possible null pointer dereference: ve. [nullPointerRedundantCheck] tdom-0.9.2-src/extensions/tnc/win/nmakehlp.c:643:10: note: Assuming that condition 've' is not redundant tdom-0.9.2-src/extensions/tnc/win/nmakehlp.c:644:13: note: Null pointer dereference tdom-0.9.2-src/extensions/tnc/win/nmakehlp.c:687:12: warning: Either the condition 'fp!=NULL' is redundant or there is possible null pointer dereference: fp. [nullPointerRedundantCheck] tdom-0.9.2-src/extensions/tnc/win/nmakehlp.c:626:12: note: Assuming that condition 'fp!=NULL' is not redundant tdom-0.9.2-src/extensions/tnc/win/nmakehlp.c:687:12: note: Null pointer dereference tdom-0.9.2-src/extensions/tnc/win/nmakehlp.c:475:17: style: Same expression on both sides of '-'. [duplicateExpression] tdom-0.9.2-src/extensions/tnc/win/nmakehlp.c:470:23: note: 'lastBuf' is assigned value 'pi->buffer' here. tdom-0.9.2-src/extensions/tnc/win/nmakehlp.c:475:17: note: Same expression on both sides of '-'. tdom-0.9.2-src/extensions/tnc/win/nmakehlp.c:487:5: style:inconclusive: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] tdom-0.9.2-src/extensions/tnc/win/nmakehlp.c:616:17: style:inconclusive: Function 'SubstituteFile' argument 1 names different: declaration 'substs' definition 'substitutions'. [funcArgNamesDifferent] tdom-0.9.2-src/extensions/tnc/win/nmakehlp.c:47:39: note: Function 'SubstituteFile' argument 1 names different: declaration 'substs' definition 'substitutions'. tdom-0.9.2-src/extensions/tnc/win/nmakehlp.c:616:17: note: Function 'SubstituteFile' argument 1 names different: declaration 'substs' definition 'substitutions'. tdom-0.9.2-src/extensions/tnc/win/nmakehlp.c:701:17: style:inconclusive: Function 'QualifyPath' argument 1 names different: declaration 'path' definition 'szPath'. [funcArgNamesDifferent] tdom-0.9.2-src/extensions/tnc/win/nmakehlp.c:48:36: note: Function 'QualifyPath' argument 1 names different: declaration 'path' definition 'szPath'. tdom-0.9.2-src/extensions/tnc/win/nmakehlp.c:701:17: note: Function 'QualifyPath' argument 1 names different: declaration 'path' definition 'szPath'. tdom-0.9.2-src/extensions/tnc/win/nmakehlp.c:792:41: style:inconclusive: Function 'LocateDependency' argument 1 names different: declaration 'keyfile' definition 'keypath'. [funcArgNamesDifferent] tdom-0.9.2-src/extensions/tnc/win/nmakehlp.c:49:41: note: Function 'LocateDependency' argument 1 names different: declaration 'keyfile' definition 'keypath'. tdom-0.9.2-src/extensions/tnc/win/nmakehlp.c:792:41: note: Function 'LocateDependency' argument 1 names different: declaration 'keyfile' definition 'keypath'. tdom-0.9.2-src/extensions/tnc/win/nmakehlp.c:670:23: style: Local variable 'sp' shadows outer variable [shadowVariable] tdom-0.9.2-src/extensions/tnc/win/nmakehlp.c:623:16: note: Shadowed declaration tdom-0.9.2-src/extensions/tnc/win/nmakehlp.c:670:23: note: Shadow variable tdom-0.9.2-src/extensions/tnc/win/nmakehlp.c:621:11: style: Variable 'szResult' is assigned a value that is never used. [unreadVariable] tdom-0.9.2-src/extensions/tnc/tnc.c:1335:21: style: The if condition is the same as the previous if condition [duplicateCondition] tdom-0.9.2-src/extensions/tnc/tnc.c:1314:21: note: First condition tdom-0.9.2-src/extensions/tnc/tnc.c:1335:21: note: Second condition tdom-0.9.2-src/extensions/tnc/tnc.c:2012:13: style: The if condition is the same as the previous if condition [duplicateCondition] tdom-0.9.2-src/extensions/tnc/tnc.c:2006:13: note: First condition tdom-0.9.2-src/extensions/tnc/tnc.c:2012:13: note: Second condition tdom-0.9.2-src/extensions/tnc/tnc.c:1477:28: style: Condition 'result==0' is always true [knownConditionTrueFalse] tdom-0.9.2-src/extensions/tnc/tnc.c:1471:21: note: Assuming that condition 'result' is not redundant tdom-0.9.2-src/extensions/tnc/tnc.c:1477:28: note: Condition 'result==0' is always true tdom-0.9.2-src/extensions/tnc/tnc.c:1854:17: style: Condition '!result' is always true [knownConditionTrueFalse] tdom-0.9.2-src/extensions/tnc/tnc.c:1851:17: note: Assuming that condition 'result' is not redundant tdom-0.9.2-src/extensions/tnc/tnc.c:1854:17: note: Condition '!result' is always true tdom-0.9.2-src/extensions/tnc/tnc.c:238:5: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] tdom-0.9.2-src/extensions/tnc/tnc.c:1450:39: style: Variable 'zeroMatchPossible' is assigned a value that is never used. [unreadVariable] tdom-0.9.2-src/extensions/tnc/tnc.c:1596:18: style: Variable 'entryPtr' is assigned a value that is never used. [unreadVariable] tdom-0.9.2-src/extensions/tnc/tnc.c:1620:18: style: Variable 'entryPtr' is assigned a value that is never used. [unreadVariable] tdom-0.9.2-src/generic/domalloc.c:339:7: error: Null pointer dereference: (char*)0 [nullPointer] tdom-0.9.2-src/generic/dom.c:206:36: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] tdom-0.9.2-src/generic/dom.c:204:32: note: outer condition: domModuleIsInitialized==0 tdom-0.9.2-src/generic/dom.c:206:36: note: identical inner condition: domModuleIsInitialized==0 tdom-0.9.2-src/generic/dom.c:1407:39: style: Condition 'prefix[0]=='\0'' is always false [knownConditionTrueFalse] tdom-0.9.2-src/generic/dom.c:1409:42: style: Condition 'prefix[0]!='\0'' is always true [knownConditionTrueFalse] tdom-0.9.2-src/generic/dom.c:1987:12: style: Variable 'result' is reassigned a value before the old one has been used. [redundantAssignment] tdom-0.9.2-src/generic/dom.c:1964:16: note: result is assigned tdom-0.9.2-src/generic/dom.c:1987:12: note: result is overwritten tdom-0.9.2-src/generic/dom.c:622:5: style:inconclusive: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] tdom-0.9.2-src/generic/dom.c:1096:14: style:inconclusive: Function 'domPreviousSibling' argument 1 names different: declaration 'attr' definition 'node'. [funcArgNamesDifferent] tdom-0.9.2-src/generic/dom.h:784:45: note: Function 'domPreviousSibling' argument 1 names different: declaration 'attr' definition 'node'. tdom-0.9.2-src/generic/dom.c:1096:14: note: Function 'domPreviousSibling' argument 1 names different: declaration 'attr' definition 'node'. tdom-0.9.2-src/generic/dom.c:2182:17: style:inconclusive: Function 'domReadDocument' argument 7 names different: declaration 'ignoreXMLNS' definition 'ignorexmlns'. [funcArgNamesDifferent] tdom-0.9.2-src/generic/dom.h:729:41: note: Function 'domReadDocument' argument 7 names different: declaration 'ignoreXMLNS' definition 'ignorexmlns'. tdom-0.9.2-src/generic/dom.c:2182:17: note: Function 'domReadDocument' argument 7 names different: declaration 'ignoreXMLNS' definition 'ignorexmlns'. tdom-0.9.2-src/generic/dom.c:2194:17: style:inconclusive: Function 'domReadDocument' argument 17 names different: declaration 'status' definition 'resultcode'. [funcArgNamesDifferent] tdom-0.9.2-src/generic/dom.h:741:41: note: Function 'domReadDocument' argument 17 names different: declaration 'status' definition 'resultcode'. tdom-0.9.2-src/generic/dom.c:2194:17: note: Function 'domReadDocument' argument 17 names different: declaration 'status' definition 'resultcode'. tdom-0.9.2-src/generic/dom.c:3463:14: style:inconclusive: Function 'domRemoveChild' argument 2 names different: declaration 'childToRemove' definition 'child'. [funcArgNamesDifferent] tdom-0.9.2-src/generic/dom.h:786:57: note: Function 'domRemoveChild' argument 2 names different: declaration 'childToRemove' definition 'child'. tdom-0.9.2-src/generic/dom.c:3463:14: note: Function 'domRemoveChild' argument 2 names different: declaration 'childToRemove' definition 'child'. tdom-0.9.2-src/generic/dom.c:3682:14: style:inconclusive: Function 'domInsertBefore' argument 3 names different: declaration 'refChild' definition 'referenceChild'. [funcArgNamesDifferent] tdom-0.9.2-src/generic/dom.h:788:81: note: Function 'domInsertBefore' argument 3 names different: declaration 'refChild' definition 'referenceChild'. tdom-0.9.2-src/generic/dom.c:3682:14: note: Function 'domInsertBefore' argument 3 names different: declaration 'refChild' definition 'referenceChild'. tdom-0.9.2-src/generic/dom.c:4466:18: style:inconclusive: Function 'domAppendLiteralNode' argument 2 names different: declaration 'node' definition 'literalNode'. [funcArgNamesDifferent] tdom-0.9.2-src/generic/dom.h:797:64: note: Function 'domAppendLiteralNode' argument 2 names different: declaration 'node' definition 'literalNode'. tdom-0.9.2-src/generic/dom.c:4466:18: note: Function 'domAppendLiteralNode' argument 2 names different: declaration 'node' definition 'literalNode'. tdom-0.9.2-src/generic/dom.c:4326:24: style: Variable 'merge' is assigned a value that is never used. [unreadVariable] tdom-0.9.2-src/generic/dom.c:5051:23: style: Variable 'found' is assigned a value that is never used. [unreadVariable] tdom-0.9.2-src/generic/domjson.c:196:23: style: Assignment 'c='\\'' is redundant with condition 'c=='\\''. [duplicateConditionalAssign] tdom-0.9.2-src/generic/domjson.c:195:23: note: Condition 'c=='\\'' tdom-0.9.2-src/generic/domjson.c:196:23: note: Assignment 'c='\\'' is redundant tdom-0.9.2-src/generic/domjson.c:198:23: style: Assignment 'c='"'' is redundant with condition 'c=='"''. [duplicateConditionalAssign] tdom-0.9.2-src/generic/domjson.c:197:30: note: Condition 'c=='"'' tdom-0.9.2-src/generic/domjson.c:198:23: note: Assignment 'c='"'' is redundant tdom-0.9.2-src/generic/domjson.c:200:23: style: Assignment 'c='/'' is redundant with condition 'c=='/''. [duplicateConditionalAssign] tdom-0.9.2-src/generic/domjson.c:199:30: note: Condition 'c=='/'' tdom-0.9.2-src/generic/domjson.c:200:23: note: Assignment 'c='/'' is redundant tdom-0.9.2-src/generic/domhtml.c:467:13: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] tdom-0.9.2-src/generic/domhtml.c:465:9: note: outer condition: bErNeedsInit tdom-0.9.2-src/generic/domhtml.c:467:13: note: identical inner condition: bErNeedsInit tdom-0.9.2-src/generic/domhtml.c:647:28: style: Condition 'c=='<'' is always true [knownConditionTrueFalse] tdom-0.9.2-src/generic/domhtml.c:647:15: note: Assuming that condition 'c!='<'' is not redundant tdom-0.9.2-src/generic/domhtml.c:647:28: note: Condition 'c=='<'' is always true tdom-0.9.2-src/generic/domxslt.c:5987:9: error: Address of local auto-variable assigned to a function parameter. [autoVariables] tdom-0.9.2-src/generic/domxslt.c:1053:19: style: Condition 'value==0' is always false [knownConditionTrueFalse] tdom-0.9.2-src/generic/domxslt.c:1048:35: note: Assuming that condition 'value<=0' is not redundant tdom-0.9.2-src/generic/domxslt.c:1053:19: note: Condition 'value==0' is always false tdom-0.9.2-src/generic/domxslt.c:2483:10: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] tdom-0.9.2-src/generic/domxslt.c:3401:18: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] tdom-0.9.2-src/generic/domxslt.c:5760:12: style: Variable 'result' is reassigned a value before the old one has been used. [redundantAssignment] tdom-0.9.2-src/generic/domxslt.c:5738:16: note: result is assigned tdom-0.9.2-src/generic/domxslt.c:5760:12: note: result is overwritten tdom-0.9.2-src/generic/domxslt.c:2428:16: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] tdom-0.9.2-src/generic/domxslt.c:4085:25: style: Variable 'currentPrec' is assigned a value that is never used. [unreadVariable] tdom-0.9.2-src/generic/domxslt.c:4264:19: style: Variable 'n' is assigned a value that is never used. [unreadVariable] tdom-0.9.2-src/generic/domxslt.c:4310:19: style: Variable 'n' is assigned a value that is never used. [unreadVariable] tdom-0.9.2-src/generic/domxslt.c:5760:12: style: Variable 'result' is assigned a value that is never used. [unreadVariable] tdom-0.9.2-src/generic/nodecmd.c:283:21: style:inconclusive: Function 'NodeObjCmd' argument 4 names different: declaration 'o' definition 'objv'. [funcArgNamesDifferent] tdom-0.9.2-src/generic/nodecmd.c:108:69: note: Function 'NodeObjCmd' argument 4 names different: declaration 'o' definition 'objv'. tdom-0.9.2-src/generic/nodecmd.c:283:21: note: Function 'NodeObjCmd' argument 4 names different: declaration 'o' definition 'objv'. tdom-0.9.2-src/generic/schema.c:4341:22: warning: Logical conjunction always evaluates to false: objc < 2 && objc > 4. [incorrectLogicOperator] tdom-0.9.2-src/generic/schema.c:4383:22: warning: Logical conjunction always evaluates to false: objc < 3 && objc > 4. [incorrectLogicOperator] tdom-0.9.2-src/generic/schema.c:4417:22: warning: Logical conjunction always evaluates to false: objc < 3 && objc > 4. [incorrectLogicOperator] tdom-0.9.2-src/generic/schema.c:4451:22: warning: Logical conjunction always evaluates to false: objc < 3 && objc > 4. [incorrectLogicOperator] tdom-0.9.2-src/generic/schema.c:4879:26: warning: Logical conjunction always evaluates to false: objc < 4 && objc > 6. [incorrectLogicOperator] tdom-0.9.2-src/generic/schema.c:6714:15: style: Redundant condition: If 'EXPR == ' '', the comparison 'EXPR' is always true. [redundantCondition] tdom-0.9.2-src/generic/schema.c:6731:15: style: Redundant condition: If 'EXPR == ' '', the comparison 'EXPR' is always true. [redundantCondition] tdom-0.9.2-src/generic/schema.c:6775:15: style: Redundant condition: If 'EXPR == ' '', the comparison 'EXPR' is always true. [redundantCondition] tdom-0.9.2-src/generic/schema.c:7885:23: style: Condition '*text='+'' is always true [knownConditionTrueFalse] tdom-0.9.2-src/generic/schema.c:7886:23: style: Condition '*text='/'' is always true [knownConditionTrueFalse] tdom-0.9.2-src/generic/schema.c:5415:13: style: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] tdom-0.9.2-src/generic/schema.c:1326:15: style: Parameter 'pattern' can be declared as pointer to const [constParameter] tdom-0.9.2-src/generic/schema.c:2841:10: style: Parameter 'only_whites' can be declared as pointer to const [constParameter] tdom-0.9.2-src/generic/schema.c:6980:11: style: Parameter 'constraintData' can be declared as pointer to const [constParameter] tdom-0.9.2-src/generic/schema.c:8058:9: style: Variable 'nrDigits' can be declared as const array [constVariable] tdom-0.9.2-src/generic/schema.c:8363:10: style: Variable 'des' can be declared as const array [constVariable] tdom-0.9.2-src/generic/schema.c:7434:26: style: Variable 'saved' is assigned a value that is never used. [unreadVariable] tdom-0.9.2-src/generic/tcldom.c:496:9: style: Condition 'deleted' is always true [knownConditionTrueFalse] tdom-0.9.2-src/generic/tcldom.c:493:19: note: Assignment 'deleted=1', assigned value is 1 tdom-0.9.2-src/generic/tcldom.c:496:9: note: Condition 'deleted' is always true tdom-0.9.2-src/generic/tcldom.c:1492:16: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] tdom-0.9.2-src/generic/tcldom.c:1491:16: note: rc is assigned tdom-0.9.2-src/generic/tcldom.c:1492:16: note: rc is overwritten tdom-0.9.2-src/generic/tcldom.c:1495:20: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] tdom-0.9.2-src/generic/tcldom.c:1503:24: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] tdom-0.9.2-src/generic/tcldom.c:3071:16: style: Variable 'clen' is assigned a value that is never used. [unreadVariable] tdom-0.9.2-src/generic/tclexpat.c:1451:9: style:inconclusive: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] tdom-0.9.2-src/generic/tclexpat.c:696:16: style:inconclusive: Function 'TclExpatInstanceCmd' argument 1 names different: declaration 'dummy' definition 'clientData'. [funcArgNamesDifferent] tdom-0.9.2-src/generic/tclexpat.c:119:49: note: Function 'TclExpatInstanceCmd' argument 1 names different: declaration 'dummy' definition 'clientData'. tdom-0.9.2-src/generic/tclexpat.c:696:16: note: Function 'TclExpatInstanceCmd' argument 1 names different: declaration 'dummy' definition 'clientData'. tdom-0.9.2-src/generic/tclexpat.c:2312:11: style:inconclusive: Function 'TclGenExpatElementStartHandler' argument 1 names different: declaration 'userdata' definition 'userData'. [funcArgNamesDifferent] tdom-0.9.2-src/generic/tclexpat.c:140:51: note: Function 'TclGenExpatElementStartHandler' argument 1 names different: declaration 'userdata' definition 'userData'. tdom-0.9.2-src/generic/tclexpat.c:2312:11: note: Function 'TclGenExpatElementStartHandler' argument 1 names different: declaration 'userdata' definition 'userData'. tdom-0.9.2-src/generic/tclexpat.c:2584:17: style:inconclusive: Function 'TclGenExpatStartNamespaceDeclHandler' argument 1 names different: declaration 'userdata' definition 'userData'. [funcArgNamesDifferent] tdom-0.9.2-src/generic/tclexpat.c:165:58: note: Function 'TclGenExpatStartNamespaceDeclHandler' argument 1 names different: declaration 'userdata' definition 'userData'. tdom-0.9.2-src/generic/tclexpat.c:2584:17: note: Function 'TclGenExpatStartNamespaceDeclHandler' argument 1 names different: declaration 'userdata' definition 'userData'. tdom-0.9.2-src/generic/xmlsimple.c:223:13: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] tdom-0.9.2-src/generic/xmlsimple.c:221:9: note: outer condition: bErNeedsInit tdom-0.9.2-src/generic/xmlsimple.c:223:13: note: identical inner condition: bErNeedsInit tdom-0.9.2-src/generic/xmlsimple.c:270:27: style: Redundant condition: If '!EXPR', the comparison 'EXPR != ';'' is always true. [redundantCondition] tdom-0.9.2-src/generic/xmlsimple.c:292:27: style: Redundant condition: If '!EXPR', the comparison 'EXPR != ';'' is always true. [redundantCondition] tdom-0.9.2-src/generic/xmlsimple.c:971:43: style: Condition 'prefix[0]=='\0'' is always false [knownConditionTrueFalse] tdom-0.9.2-src/generic/xmlsimple.c:972:46: style: Condition 'prefix[0]!='\0'' is always true [knownConditionTrueFalse] tdom-0.9.2-src/generic/xmlsimple.c:879:29: error: Common realloc mistake: 'activeNS' nulled but not freed upon failure [memleakOnRealloc] tdom-0.9.2-src/generic/xmlsimple.c:740:33: style: Variable 'node->ownerDocument' is reassigned a value before the old one has been used. [redundantAssignment] tdom-0.9.2-src/generic/xmlsimple.c:738:33: note: node->ownerDocument is assigned tdom-0.9.2-src/generic/xmlsimple.c:740:33: note: node->ownerDocument is overwritten tdom-0.9.2-src/win/nmakehlp.c:644:13: warning: Either the condition 've' is redundant or there is possible null pointer dereference: ve. [nullPointerRedundantCheck] tdom-0.9.2-src/win/nmakehlp.c:643:10: note: Assuming that condition 've' is not redundant tdom-0.9.2-src/win/nmakehlp.c:644:13: note: Null pointer dereference tdom-0.9.2-src/win/nmakehlp.c:687:12: warning: Either the condition 'fp!=NULL' is redundant or there is possible null pointer dereference: fp. [nullPointerRedundantCheck] tdom-0.9.2-src/win/nmakehlp.c:626:12: note: Assuming that condition 'fp!=NULL' is not redundant tdom-0.9.2-src/win/nmakehlp.c:687:12: note: Null pointer dereference tdom-0.9.2-src/win/nmakehlp.c:475:17: style: Same expression on both sides of '-'. [duplicateExpression] tdom-0.9.2-src/win/nmakehlp.c:470:23: note: 'lastBuf' is assigned value 'pi->buffer' here. tdom-0.9.2-src/win/nmakehlp.c:475:17: note: Same expression on both sides of '-'. tdom-0.9.2-src/win/nmakehlp.c:487:5: style:inconclusive: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] tdom-0.9.2-src/win/nmakehlp.c:616:17: style:inconclusive: Function 'SubstituteFile' argument 1 names different: declaration 'substs' definition 'substitutions'. [funcArgNamesDifferent] tdom-0.9.2-src/win/nmakehlp.c:47:39: note: Function 'SubstituteFile' argument 1 names different: declaration 'substs' definition 'substitutions'. tdom-0.9.2-src/win/nmakehlp.c:616:17: note: Function 'SubstituteFile' argument 1 names different: declaration 'substs' definition 'substitutions'. tdom-0.9.2-src/win/nmakehlp.c:701:17: style:inconclusive: Function 'QualifyPath' argument 1 names different: declaration 'path' definition 'szPath'. [funcArgNamesDifferent] tdom-0.9.2-src/win/nmakehlp.c:48:36: note: Function 'QualifyPath' argument 1 names different: declaration 'path' definition 'szPath'. tdom-0.9.2-src/win/nmakehlp.c:701:17: note: Function 'QualifyPath' argument 1 names different: declaration 'path' definition 'szPath'. tdom-0.9.2-src/win/nmakehlp.c:792:41: style:inconclusive: Function 'LocateDependency' argument 1 names different: declaration 'keyfile' definition 'keypath'. [funcArgNamesDifferent] tdom-0.9.2-src/win/nmakehlp.c:49:41: note: Function 'LocateDependency' argument 1 names different: declaration 'keyfile' definition 'keypath'. tdom-0.9.2-src/win/nmakehlp.c:792:41: note: Function 'LocateDependency' argument 1 names different: declaration 'keyfile' definition 'keypath'. tdom-0.9.2-src/win/nmakehlp.c:670:23: style: Local variable 'sp' shadows outer variable [shadowVariable] tdom-0.9.2-src/win/nmakehlp.c:623:16: note: Shadowed declaration tdom-0.9.2-src/win/nmakehlp.c:670:23: note: Shadow variable tdom-0.9.2-src/win/nmakehlp.c:621:11: style: Variable 'szResult' is assigned a value that is never used. [unreadVariable] tdom-0.9.2-src/generic/domxpath.c:2437:13: style: Condition 'nodeUri' is always true [knownConditionTrueFalse] tdom-0.9.2-src/generic/domxpath.c:752:32: error: Common realloc mistake: 'tokens' nulled but not freed upon failure [memleakOnRealloc] tdom-0.9.2-src/generic/domxpath.c:893:36: error: Common realloc mistake: 'tokens' nulled but not freed upon failure [memleakOnRealloc] tdom-0.9.2-src/generic/domxpath.c:991:36: error: Common realloc mistake: 'tokens' nulled but not freed upon failure [memleakOnRealloc] tdom-0.9.2-src/generic/domxpath.c:1150:9: error: Common realloc mistake: 'tokens' nulled but not freed upon failure [memleakOnRealloc] tdom-0.9.2-src/generic/domxpath.c:1153:5: error: Common realloc mistake: 'tokens' nulled but not freed upon failure [memleakOnRealloc] tdom-0.9.2-src/generic/domxpath.c:2643:13: error: Common realloc mistake: 'pc' nulled but not freed upon failure [memleakOnRealloc] tdom-0.9.2-src/generic/domxpath.c:2681:13: error: Common realloc mistake: 'pc' nulled but not freed upon failure [memleakOnRealloc] tdom-0.9.2-src/generic/domxpath.c:3195:30: style: Variable 'rightResult.type' is reassigned a value before the old one has been used. [redundantAssignment] tdom-0.9.2-src/generic/domxpath.c:3193:9: note: rightResult.type is assigned tdom-0.9.2-src/generic/domxpath.c:3195:30: note: rightResult.type is overwritten tdom-0.9.2-src/generic/domxpath.c:2605:13: style:inconclusive: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] tdom-0.9.2-src/generic/domxpath.c:268:14: style:inconclusive: Function 'xpathRSReset' argument 2 names different: declaration 'ode' definition 'node'. [funcArgNamesDifferent] tdom-0.9.2-src/generic/domxpath.h:191:51: note: Function 'xpathRSReset' argument 2 names different: declaration 'ode' definition 'node'. tdom-0.9.2-src/generic/domxpath.c:268:14: note: Function 'xpathRSReset' argument 2 names different: declaration 'ode' definition 'node'. tdom-0.9.2-src/generic/domxpath.c:2667:14: style:inconclusive: Function 'xpathGetStringValue' argument 2 names different: declaration 'strLen' definition 'len'. [funcArgNamesDifferent] tdom-0.9.2-src/generic/domxpath.h:199:49: note: Function 'xpathGetStringValue' argument 2 names different: declaration 'strLen' definition 'len'. tdom-0.9.2-src/generic/domxpath.c:2667:14: note: Function 'xpathGetStringValue' argument 2 names different: declaration 'strLen' definition 'len'. tdom-0.9.2-src/generic/domxpath.c:4999:24: style:inconclusive: Function 'xpathEvalPredicate' argument 1 names different: declaration 'steps' definition 'step'. [funcArgNamesDifferent] tdom-0.9.2-src/generic/domxpath.c:241:36: note: Function 'xpathEvalPredicate' argument 1 names different: declaration 'steps' definition 'step'. tdom-0.9.2-src/generic/domxpath.c:4999:24: note: Function 'xpathEvalPredicate' argument 1 names different: declaration 'steps' definition 'step'. tdom-0.9.2-src/generic/domxpath.c:5215:24: style:inconclusive: Function 'xpathEval' argument 7 names different: declaration 'catch' definition 'cache'. [funcArgNamesDifferent] tdom-0.9.2-src/generic/domxpath.h:173:66: note: Function 'xpathEval' argument 7 names different: declaration 'catch' definition 'cache'. tdom-0.9.2-src/generic/domxpath.c:5215:24: note: Function 'xpathEval' argument 7 names different: declaration 'catch' definition 'cache'. tdom-0.9.2-src/generic/domxpath.c:5217:24: style:inconclusive: Function 'xpathEval' argument 9 names different: declaration 'rs' definition 'result'. [funcArgNamesDifferent] tdom-0.9.2-src/generic/domxpath.h:174:53: note: Function 'xpathEval' argument 9 names different: declaration 'rs' definition 'result'. tdom-0.9.2-src/generic/domxpath.c:5217:24: note: Function 'xpathEval' argument 9 names different: declaration 'rs' definition 'result'. tdom-0.9.2-src/generic/domxpath.c:5328:25: style:inconclusive: Function 'xpathMatches' argument 1 names different: declaration 'steps' definition 'step'. [funcArgNamesDifferent] tdom-0.9.2-src/generic/domxpath.h:177:26: note: Function 'xpathMatches' argument 1 names different: declaration 'steps' definition 'step'. tdom-0.9.2-src/generic/domxpath.c:5328:25: note: Function 'xpathMatches' argument 1 names different: declaration 'steps' definition 'step'. tdom-0.9.2-src/generic/domxpath.c:5773:9: style:inconclusive: Function 'xpathGetPrio' argument 1 names different: declaration 't' definition 'steps'. [funcArgNamesDifferent] tdom-0.9.2-src/generic/domxpath.h:170:26: note: Function 'xpathGetPrio' argument 1 names different: declaration 't' definition 'steps'. tdom-0.9.2-src/generic/domxpath.c:5773:9: note: Function 'xpathGetPrio' argument 1 names different: declaration 't' definition 'steps'. tdom-0.9.2-src/generic/domxpath.c:1153:5: style: Variable 'allocated' is assigned a value that is never used. [unreadVariable] diff: head tdom-0.9.2-src/expat/xmltok.c:1268:23: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head tdom-0.9.2-src/expat/xmltok.c:1401:40: style: Parameter 'table' can be declared as pointer to const [constParameter] 2.8 tdom-0.9.2-src/expat/xmltok.c:1401:40: style: Parameter 'table' can be declared with const [constParameter] head tdom-0.9.2-src/extensions/tnc/tnc.c:1854:17: style: Condition '!result' is always true [knownConditionTrueFalse] tdom-0.9.2-src/extensions/tnc/tnc.c:1851:17: note: Assuming that condition 'result' is not redundant tdom-0.9.2-src/extensions/tnc/tnc.c:1854:17: note: Condition '!result' is always true head tdom-0.9.2-src/generic/schema.c:1326:15: style: Parameter 'pattern' can be declared as pointer to const [constParameter] 2.8 tdom-0.9.2-src/generic/schema.c:1326:15: style: Parameter 'pattern' can be declared with const [constParameter] head tdom-0.9.2-src/generic/schema.c:2841:10: style: Parameter 'only_whites' can be declared as pointer to const [constParameter] 2.8 tdom-0.9.2-src/generic/schema.c:2841:10: style: Parameter 'only_whites' can be declared with const [constParameter] 2.8 tdom-0.9.2-src/generic/schema.c:6234:20: style: Parameter 'objv' can be declared with const [constParameter] 2.8 tdom-0.9.2-src/generic/schema.c:6456:20: style: Parameter 'objv' can be declared with const [constParameter] head tdom-0.9.2-src/generic/schema.c:6980:11: style: Parameter 'constraintData' can be declared as pointer to const [constParameter] 2.8 tdom-0.9.2-src/generic/schema.c:6980:11: style: Parameter 'constraintData' can be declared with const [constParameter] head tdom-0.9.2-src/generic/schema.c:8058:9: style: Variable 'nrDigits' can be declared as const array [constVariable] 2.8 tdom-0.9.2-src/generic/schema.c:8058:9: style: Variable 'nrDigits' can be declared with const [constVariable] head tdom-0.9.2-src/generic/schema.c:8363:10: style: Variable 'des' can be declared as const array [constVariable] 2.8 tdom-0.9.2-src/generic/schema.c:8363:10: style: Variable 'des' can be declared with const [constVariable] DONE