2026-02-19 02:16 ftp://ftp.de.debian.org/debian/pool/main/r/r-cran-readstata13/r-cran-readstata13_0.11.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --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 -j4 platform: Linux-6.18.9+deb14-amd64-x86_64-with-glibc2.42 python: 3.13.12 client-version: 1.3.69 compiler: g++ (Debian 15.2.0-13) 15.2.0 cppcheck: head 2.19.0 head-info: 85583d95 (2026-02-18 09:18:11 +0100) count: 64 64 elapsed-time: 0.8 0.3 head-timing-info: old-timing-info: head results: readstata13/src/RcppExports.cpp:28:1: error: There is an unknown macro here somewhere. Configuration is required. If END_RCPP is a macro then please configure it. [unknownMacro] readstata13/src/read_data.cpp:81:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NegInf [valueFlowBailoutIncompleteVar] readstata13/src/read_dta.cpp:104:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sbyteorder [valueFlowBailoutIncompleteVar] readstata13/src/read_pre13_dta.cpp:103:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SBYTEORDER [valueFlowBailoutIncompleteVar] readstata13/src/read_data.cpp:73:25: style:inconclusive: Boolean expression 'type>0' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] readstata13/src/read_data.cpp:64:12: style: The scope of the variable 'ii' can be reduced. [variableScope] readstata13/src/read_data.cpp:28:34: performance: Function parameter 'byteorder' should be passed by const reference. [passedByValue] readstata13/src/read_data.cpp:64:15: style: Variable 'ii' is assigned a value that is never used. [unreadVariable] readstata13/src/save_dta.cpp:141:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable out [valueFlowBailoutIncompleteVar] readstata13/src/save_pre13_dta.cpp:34:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SBYTEORDER [valueFlowBailoutIncompleteVar] readstata13/src/read_pre13_dta.cpp:486:20: style: Variable 'tag' is assigned a value that is never used. [unreadVariable] readstata13/src/read_dta.cpp:379:21: style: Local variable 'chs' shadows outer variable [shadowVariable] readstata13/src/read_dta.cpp:363:19: note: Shadowed declaration readstata13/src/read_dta.cpp:379:21: note: Shadow variable readstata13/src/save_pre13_dta.cpp:413:31: style:inconclusive: Boolean expression 'labeltable.size()>0' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] readstata13/src/save_pre13_dta.cpp:451:18: style: C-style pointer casting [cstyleCast] readstata13/src/save_pre13_dta.cpp:104:19: style: Variable 'nformatslen' is reassigned a value before the old one has been used. 'break;' missing? [redundantAssignInSwitch] readstata13/src/save_pre13_dta.cpp:98:19: note: $symbol is assigned readstata13/src/save_pre13_dta.cpp:104:19: note: $symbol is overwritten readstata13/src/save_pre13_dta.cpp:63:14: style: The scope of the variable 'maxlabelsize' can be reduced. [variableScope] readstata13/src/save_pre13_dta.cpp:136:14: style: The scope of the variable 'nvartype' can be reduced. [variableScope] readstata13/src/save_pre13_dta.cpp:433:22: style: Local variable 'i' shadows outer variable [shadowVariable] readstata13/src/save_pre13_dta.cpp:419:20: note: Shadowed declaration readstata13/src/save_pre13_dta.cpp:433:22: note: Shadow variable readstata13/src/save_pre13_dta.cpp:455:22: style: Local variable 'i' shadows outer variable [shadowVariable] readstata13/src/save_pre13_dta.cpp:419:20: note: Shadowed declaration readstata13/src/save_pre13_dta.cpp:455:22: note: Shadow variable readstata13/src/save_pre13_dta.cpp:461:22: style: Local variable 'i' shadows outer variable [shadowVariable] readstata13/src/save_pre13_dta.cpp:419:20: note: Shadowed declaration readstata13/src/save_pre13_dta.cpp:461:22: note: Shadow variable readstata13/src/save_pre13_dta.cpp:467:22: style: Local variable 'i' shadows outer variable [shadowVariable] readstata13/src/save_pre13_dta.cpp:419:20: note: Shadowed declaration readstata13/src/save_pre13_dta.cpp:467:22: note: Shadow variable readstata13/src/save_pre13_dta.cpp:39:3: error: Out of bounds access of datalabel, index 'datalabel.size()' is out of bounds. [containerOutOfBoundsIndexExpression] readstata13/src/save_pre13_dta.cpp:255:11: error: Out of bounds access of ch1, index 'ch1.size()' is out of bounds. [containerOutOfBoundsIndexExpression] readstata13/src/save_pre13_dta.cpp:257:11: error: Out of bounds access of ch2, index 'ch2.size()' is out of bounds. [containerOutOfBoundsIndexExpression] readstata13/src/save_pre13_dta.cpp:259:11: error: Out of bounds access of ch3, index 'ch3.size()' is out of bounds. [containerOutOfBoundsIndexExpression] readstata13/src/save_dta.cpp:164:26: style:inconclusive: Boolean expression 'release==118' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] readstata13/src/save_dta.cpp:164:64: style:inconclusive: Boolean expression 'release==121' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] readstata13/src/save_dta.cpp:183:28: style:inconclusive: Boolean expression 'release==118' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] readstata13/src/save_dta.cpp:183:66: style:inconclusive: Boolean expression 'release==121' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] readstata13/src/save_dta.cpp:194:28: style:inconclusive: Boolean expression 'release==118' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] readstata13/src/save_dta.cpp:194:66: style:inconclusive: Boolean expression 'release==121' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] readstata13/src/save_dta.cpp:262:28: style:inconclusive: Boolean expression 'release==117' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] readstata13/src/save_dta.cpp:262:47: style:inconclusive: Boolean expression 'release==120' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] readstata13/src/save_dta.cpp:265:28: style:inconclusive: Boolean expression 'release==119' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] readstata13/src/save_dta.cpp:582:28: style:inconclusive: Boolean expression 'release==118' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] readstata13/src/save_dta.cpp:582:66: style:inconclusive: Boolean expression 'release==121' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] readstata13/src/save_dta.cpp:519:23: style: C-style pointer casting [cstyleCast] readstata13/src/save_dta.cpp:546:23: style: C-style pointer casting [cstyleCast] readstata13/src/save_dta.cpp:634:18: style: C-style pointer casting [cstyleCast] readstata13/src/save_dta.cpp:554:22: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] readstata13/src/save_dta.cpp:708:5: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] readstata13/src/save_dta.cpp:61:28: style: The scope of the variable 'ntimestamp' can be reduced. [variableScope] readstata13/src/save_dta.cpp:62:68: style: The scope of the variable 'ndlabel' can be reduced. [variableScope] readstata13/src/save_dta.cpp:64:45: style: The scope of the variable 'maxlabelsize' can be reduced. [variableScope] readstata13/src/save_dta.cpp:225:14: style: The scope of the variable 'nvartype' can be reduced. [variableScope] readstata13/src/save_dta.cpp:505:21: style: Local variable 'z' shadows outer variable [shadowVariable] readstata13/src/save_dta.cpp:474:19: note: Shadowed declaration readstata13/src/save_dta.cpp:505:21: note: Shadow variable readstata13/src/save_dta.cpp:529:21: style: Local variable 'z' shadows outer variable [shadowVariable] readstata13/src/save_dta.cpp:474:19: note: Shadowed declaration readstata13/src/save_dta.cpp:529:21: note: Shadow variable readstata13/src/save_dta.cpp:615:22: style: Local variable 'i' shadows outer variable [shadowVariable] readstata13/src/save_dta.cpp:601:20: note: Shadowed declaration readstata13/src/save_dta.cpp:615:22: note: Shadow variable readstata13/src/save_dta.cpp:638:22: style: Local variable 'i' shadows outer variable [shadowVariable] readstata13/src/save_dta.cpp:601:20: note: Shadowed declaration readstata13/src/save_dta.cpp:638:22: note: Shadow variable readstata13/src/save_dta.cpp:644:22: style: Local variable 'i' shadows outer variable [shadowVariable] readstata13/src/save_dta.cpp:601:20: note: Shadowed declaration readstata13/src/save_dta.cpp:644:22: note: Shadow variable readstata13/src/save_dta.cpp:650:22: style: Local variable 'i' shadows outer variable [shadowVariable] readstata13/src/save_dta.cpp:601:20: note: Shadowed declaration readstata13/src/save_dta.cpp:650:22: note: Shadow variable readstata13/src/save_dta.cpp:46:12: warning: Either the condition 'datalabel.empty()' is redundant or expression 'datalabel[datalabel.size()]' causes access out of bounds. [containerOutOfBounds] readstata13/src/save_dta.cpp:170:25: note: Assuming that condition 'datalabel.empty()' is not redundant readstata13/src/save_dta.cpp:46:12: note: Access out of bounds readstata13/src/save_dta.cpp:139:6: error: Out of bounds access in 'end[end.size()]', if 'end' size is 12 and 'end.size()' is 12 [containerOutOfBounds] readstata13/src/save_dta.cpp:321:19: error: Out of bounds access in expression 'nvarLabels[nvarLabels.size()]' because 'nvarLabels' is empty. [containerOutOfBounds] readstata13/src/save_dta.cpp:46:3: error: Out of bounds access of datalabel, index 'datalabel.size()' is out of bounds. [containerOutOfBoundsIndexExpression] readstata13/src/save_dta.cpp:139:3: error: Out of bounds access of end, index 'end.size()' is out of bounds. [containerOutOfBoundsIndexExpression] readstata13/src/save_dta.cpp:177:9: error: Out of bounds access of datalabel, index 'datalabel.size()' is out of bounds. [containerOutOfBoundsIndexExpression] readstata13/src/save_dta.cpp:241:7: error: Out of bounds access of nvarname, index 'nvarname.size()' is out of bounds. [containerOutOfBoundsIndexExpression] readstata13/src/save_dta.cpp:294:7: error: Out of bounds access of nvalLabels, index 'nvalLabels.size()' is out of bounds. [containerOutOfBoundsIndexExpression] readstata13/src/save_dta.cpp:317:9: error: Out of bounds access of nvarLabels, index 'nvarLabels.size()' is out of bounds. [containerOutOfBoundsIndexExpression] readstata13/src/save_dta.cpp:321:9: error: Out of bounds access of nvarLabels, index 'nvarLabels.size()' is out of bounds. [containerOutOfBoundsIndexExpression] readstata13/src/save_dta.cpp:341:9: error: Out of bounds access of ch1, index 'ch1.size()' is out of bounds. [containerOutOfBoundsIndexExpression] readstata13/src/save_dta.cpp:343:9: error: Out of bounds access of ch2, index 'ch2.size()' is out of bounds. [containerOutOfBoundsIndexExpression] readstata13/src/save_dta.cpp:345:9: error: Out of bounds access of ch3, index 'ch3.size()' is out of bounds. [containerOutOfBoundsIndexExpression] diff: DONE