2026-05-04 17:47 ftp://ftp.de.debian.org/debian/pool/main/r/r-cran-maps/r-cran-maps_3.4.3.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 -j1 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: 519958a (2026-05-04 15:03:10 +0200) count: 98 100 elapsed-time: 1.0 0.9 head-timing-info: old-timing-info: head results: maps/src/Gmake.c:31:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] maps/src/Gmake.c:38:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] maps/src/Gmake.c:84:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLT_MAX [valueFlowBailoutIncompleteVar] maps/src/Gmake.c:31:2: warning: fprintf format string requires 1 parameter but 2 are given. [wrongPrintfScanfArgNum] maps/src/Gmake.c:38:2: warning: fprintf format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] maps/src/Gmake.c:85:8: style:inconclusive: Same expression used in consecutive assignments of 'xmax' and 'ymax'. [duplicateAssignExpression] maps/src/Gmake.c:85:25: note: Same expression used in consecutive assignments of 'xmax' and 'ymax'. maps/src/Gmake.c:85:8: note: Same expression used in consecutive assignments of 'xmax' and 'ymax'. maps/src/Gmake.c:137:24: style: Checking if unsigned expression 'm=rh[i].nline' is less than zero. [unsignedLessThanZero] maps/src/Gmake.c:82:6: style: Local variable 'n' shadows outer variable [shadowVariable] maps/src/Gmake.c:19:8: note: Shadowed declaration maps/src/Gmake.c:82:6: note: Shadow variable maps/src/Gmake.c:117:9: style: Local variable 'n' shadows outer variable [shadowVariable] maps/src/Gmake.c:19:8: note: Shadowed declaration maps/src/Gmake.c:117:9: note: Shadow variable maps/src/Gmake.c:29:17: style: Parameter 's' can be declared as pointer to const [constParameterPointer] maps/src/Gmake.c:29:26: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] maps/src/Gmake.c:36:18: style: Parameter 's' can be declared as pointer to const [constParameterPointer] maps/src/Gmake.c:50:8: style: Variable 'w' can be declared as pointer to const [constVariablePointer] maps/src/Gmake.c:107:44: warning: Expression 'r-1' can have a negative value. That is converted to an unsigned value and used in an unsigned calculation. [signConversionCond] maps/src/Gmake.c:88:15: note: Assuming that condition '(*r)<0' is not redundant maps/src/Gmake.c:88:15: note: Calling function 'get_lh', 1st argument '(*r)<0?-(*r):(*r)' value is 0 maps/src/Gmake.c:107:44: note: Negative value is converted to an unsigned value maps/src/Lmake.c:28:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] maps/src/Lmake.c:35:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] maps/src/Lmake.c:88:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLT_MAX [valueFlowBailoutIncompleteVar] maps/src/Lmake.c:28:2: warning: fprintf format string requires 1 parameter but 2 are given. [wrongPrintfScanfArgNum] maps/src/Lmake.c:35:2: warning: fprintf format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] maps/src/Lmake.c:89:8: style:inconclusive: Same expression used in consecutive assignments of 'xmax' and 'ymax'. [duplicateAssignExpression] maps/src/Lmake.c:89:25: note: Same expression used in consecutive assignments of 'xmax' and 'ymax'. maps/src/Lmake.c:89:8: note: Same expression used in consecutive assignments of 'xmax' and 'ymax'. maps/src/Lmake.c:129:24: style: Checking if unsigned expression 'm=lh[i].npair' is less than zero. [unsignedLessThanZero] maps/src/Lmake.c:87:6: style: Local variable 'n' shadows outer variable [shadowVariable] maps/src/Lmake.c:19:10: note: Shadowed declaration maps/src/Lmake.c:87:6: note: Shadow variable maps/src/Lmake.c:107:11: style: Local variable 'n' shadows outer variable [shadowVariable] maps/src/Lmake.c:19:10: note: Shadowed declaration maps/src/Lmake.c:107:11: note: Shadow variable maps/src/Lmake.c:26:17: style: Parameter 's' can be declared as pointer to const [constParameterPointer] maps/src/Lmake.c:26:26: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] maps/src/Lmake.c:33:18: style: Parameter 's' can be declared as pointer to const [constParameterPointer] maps/src/Lmake.c:47:8: style: Variable 'w' can be declared as pointer to const [constVariablePointer] maps/src/init.c:41:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] maps/src/mapclip.c:78:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_REAL [valueFlowBailoutIncompleteVar] maps/src/mapclip.c:274:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_REAL [valueFlowBailoutIncompleteVar] maps/src/mapclip.c:310:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_REAL [valueFlowBailoutIncompleteVar] maps/src/mapclip.c:459:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_REAL [valueFlowBailoutIncompleteVar] maps/src/mapclip.c:226:31: warning: Either the condition 'sorted_start_list[i]<0' is redundant or the array 'ordered_finish_list[50]' is accessed at index -1, which is out of bounds. [negativeIndex] maps/src/mapclip.c:224:32: note: Assuming that condition 'sorted_start_list[i]<0' is not redundant maps/src/mapclip.c:226:31: note: Negative array index maps/src/mapclip.c:45:42: style: Parameter 'yin' can be declared as pointer to const [constParameterPointer] maps/src/mapclip.c:45:52: style: Parameter 'nin' can be declared as pointer to const [constParameterPointer] maps/src/mapclip.c:47:29: style: Parameter 'xlim' can be declared as pointer to const [constParameterPointer] maps/src/mapclip.c:47:40: style: Parameter 'inside' can be declared as pointer to const [constParameterPointer] maps/src/mapclip.c:47:53: style: Parameter 'poly' can be declared as pointer to const [constParameterPointer] maps/src/mapclip.c:160:26: style: Parameter 'segment_start_list' can be declared as pointer to const [constParameterPointer] maps/src/mapclip.c:160:51: style: Parameter 'segment_finish_list' can be declared as pointer to const [constParameterPointer] maps/src/mapclip.c:295:41: style: Parameter 'yin' can be declared as pointer to const [constParameterPointer] maps/src/mapclip.c:295:51: style: Parameter 'nin' can be declared as pointer to const [constParameterPointer] maps/src/mapclip.c:298:25: style: Parameter 'poly' can be declared as pointer to const [constParameterPointer] maps/src/mapget.c:393:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_REAL [valueFlowBailoutIncompleteVar] maps/src/mapget.c:514:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_EPSILON [valueFlowBailoutIncompleteVar] maps/src/mapget.c:568:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_INTEGER [valueFlowBailoutIncompleteVar] maps/src/mapget.c:553:6: error: Dereferencing 'rf' after it is deallocated / released [deallocuse] maps/src/mapget.c:554:5: error: Resource handle 'rf' freed twice. [doubleFree] maps/src/mapget.c:548:5: note: Resource handle 'rf' freed twice. maps/src/mapget.c:554:5: note: Resource handle 'rf' freed twice. maps/src/mapget.c:558:3: error: Resource handle 'rf' freed twice. [doubleFree] maps/src/mapget.c:548:5: note: Resource handle 'rf' freed twice. maps/src/mapget.c:558:3: note: Resource handle 'rf' freed twice. maps/src/mapget.c:249:6: error: Common realloc mistake: 'line' nulled but not freed upon failure [memleakOnRealloc] maps/src/mapget.c:352:5: error: Common realloc mistake: 'xy' nulled but not freed upon failure [memleakOnRealloc] maps/src/mapget.c:547:6: warning: Either the condition '(rf=fopen(Gname,"rb"))==NULL' is redundant or there is possible null pointer dereference: rf. [nullPointerRedundantCheck] maps/src/mapget.c:545:32: note: Assuming that condition '(rf=fopen(Gname,"rb"))==NULL' is not redundant maps/src/mapget.c:547:6: note: Null pointer dereference maps/src/mapget.c:218:13: style: Checking if unsigned expression 'region' is less than zero. [unsignedLessThanZero] maps/src/mapget.c:94:25: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] maps/src/mapget.c:102:21: style: Parameter 'ntable' can be declared as pointer to const [constParameterPointer] maps/src/mapget.c:102:48: style: Parameter 'nx' can be declared as pointer to const [constParameterPointer] maps/src/mapget.c:102:80: style: Parameter 'exact' can be declared as pointer to const [constParameterPointer] maps/src/mapget.c:129:33: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] maps/src/mapget.c:129:45: style: Parameter 'suffix' can be declared as pointer to const [constParameterPointer] maps/src/mapget.c:188:49: style: Parameter 'nwhich' can be declared as pointer to const [constParameterPointer] maps/src/mapget.c:188:89: style: Parameter 'range' can be declared as pointer to const [constParameterPointer] maps/src/mapget.c:289:20: style: Parameter 'getcoords' can be declared as pointer to const [constParameterPointer] maps/src/mapget.c:289:73: style: Parameter 'fill' can be declared as pointer to const [constParameterPointer] maps/src/mapget.c:504:33: style: Parameter 'X' can be declared as pointer to const [constParameterPointer] maps/src/mapget.c:504:44: style: Parameter 'Y' can be declared as pointer to const [constParameterPointer] maps/src/mapget.c:532:55: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] maps/src/mapget.c:590:49: style: Parameter 'np' can be declared as pointer to const [constParameterPointer] maps/src/mapget.c:591:14: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] maps/src/mapget.c:591:25: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] maps/src/mapget.c:591:33: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] maps/src/mapget.c:591:54: style: Parameter 'hit' can be declared as pointer to const [constParameterPointer] maps/src/mapget.c:615:45: style: Parameter 'np' can be declared as pointer to const [constParameterPointer] maps/src/smooth.c:5:20: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] maps/src/smooth.c:5:28: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] maps/src/smooth.c:5:50: style: Parameter 'zr' can be declared as pointer to const [constParameterPointer] maps/src/smooth.c:6:13: style: Parameter 'region' can be declared as pointer to const [constParameterPointer] maps/src/smooth.c:7:13: style: Parameter 'no' can be declared as pointer to const [constParameterPointer] maps/src/smooth.c:8:16: style: Parameter 'lambda' can be declared as pointer to const [constParameterPointer] maps/src/smooth.c:8:29: style: Parameter 'normalize' can be declared as pointer to const [constParameterPointer] maps/src/smooth.c:17:13: style: Variable 'xp' can be declared as pointer to const [constVariablePointer] maps/src/smooth.c:43:27: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] maps/src/smooth.c:43:35: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] maps/src/smooth.c:43:54: style: Parameter 'region' can be declared as pointer to const [constParameterPointer] maps/src/smooth.c:44:16: style: Parameter 'lambda' can be declared as pointer to const [constParameterPointer] maps/src/smooth.c:44:29: style: Parameter 'nr' can be declared as pointer to const [constParameterPointer] maps/src/smooth.c:52:13: style: Variable 'xp2' can be declared as pointer to const [constVariablePointer] maps/src/smooth.c:75:22: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] maps/src/smooth.c:75:30: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] maps/src/smooth.c:75:49: style: Parameter 'region' can be declared as pointer to const [constParameterPointer] maps/src/smooth.c:76:8: style: Parameter 'no' can be declared as pointer to const [constParameterPointer] maps/src/smooth.c:76:32: style: Parameter 'lambda' can be declared as pointer to const [constParameterPointer] maps/src/smooth.c:76:45: style: Parameter 'nr' can be declared as pointer to const [constParameterPointer] maps/src/smooth.c:84:13: style: Variable 'xop' can be declared as pointer to const [constVariablePointer] maps/src/thin.c:186:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_REAL [valueFlowBailoutIncompleteVar] maps/src/thin.c:139:2: style: Variable 'wedge.begin' is reassigned a value before the old one has been used. [redundantAssignment] maps/src/thin.c:134:2: note: wedge.begin is assigned maps/src/thin.c:139:2: note: wedge.begin is overwritten maps/src/thin.c:139:2: style: Variable 'wedge.end' is reassigned a value before the old one has been used. [redundantAssignment] maps/src/thin.c:134:2: note: wedge.end is assigned maps/src/thin.c:139:2: note: wedge.end is overwritten maps/src/thin.c:175:53: style: Parameter 'delta' can be declared as pointer to const [constParameterPointer] maps/src/thin.c:175:65: style: Parameter 'symmetric' can be declared as pointer to const [constParameterPointer] diff: 2.20.0 maps/src/mapclip.c:351:53: style: Variable 'segment_finish_list[count_segments-1]' is assigned a value that is never used. [unreadVariable] 2.20.0 maps/src/mapclip.c:372:53: style: Variable 'segment_finish_list[count_segments-1]' is assigned a value that is never used. [unreadVariable] DONE