2025-07-10 22:03 ftp://ftp.de.debian.org/debian/pool/main/p/ploticus/ploticus_2.42.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=motif --library=zlib --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 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: 8f3d36a (2025-07-08 11:07:56 +0200) count: 541 539 elapsed-time: 15.9 14.7 head-timing-info: old-timing-info: head results: ploticus-2.42/src/apitest.c:11:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ploticus-2.42/src/apitest.c:19:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ploticus-2.42/src/api.c:18:16: style: Parameter 'outfilename' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/api.c:76:26: style: Variable 'prefabs_dir' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/clickmap.c:157:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ploticus-2.42/src/condex.c:284:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ploticus-2.42/src/autorange.c:245:30: style: Variable 'b' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/datasets.c:178:55: error: Memory leak: r [memleak] ploticus-2.42/src/datasets.c:148:7: style: Parameter 'item' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/cats.c:145:13: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] ploticus-2.42/src/cats.c:143:24: note: Assuming allocation function fails ploticus-2.42/src/cats.c:143:9: note: Assignment 's=(char*)malloc(tlen+1)', assigned value is 0 ploticus-2.42/src/cats.c:145:13: note: Null pointer dereference ploticus-2.42/src/cats.c:177:12: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] ploticus-2.42/src/cats.c:175:23: note: Assuming allocation function fails ploticus-2.42/src/cats.c:175:8: note: Assignment 's=(char*)malloc(buflen+1)', assigned value is 0 ploticus-2.42/src/cats.c:177:12: note: Null pointer dereference ploticus-2.42/src/cats.c:227:9: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] ploticus-2.42/src/cats.c:225:20: note: Assuming allocation function fails ploticus-2.42/src/cats.c:225:5: note: Assignment 's=(char*)malloc(buflen+1)', assigned value is 0 ploticus-2.42/src/cats.c:227:9: note: Null pointer dereference ploticus-2.42/src/cats.c:73:11: style: Variable 't' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/cats.c:203:7: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/cats.c:204:7: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/cats.c:334:7: style: Parameter 'what' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/custom.c:35:7: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/custom.c:69:8: style: Variable 'colorname' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/dbinterface.c:58:1: style:inconclusive: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ploticus-2.42/src/dbinterface.c:41:7: style: Parameter 'sql' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/dbinterface.c:73:7: style: Parameter 'fields' can be declared as const array [constParameter] ploticus-2.42/src/dbinterface.c:74:6: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/dbinterface.c:117:7: style: Parameter 'fields' can be declared as const array [constParameter] ploticus-2.42/src/dbinterface.c:118:6: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/dbinterface.c:134:7: style: Parameter 'table' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/dbinterface.c:135:7: style: Parameter 'fields' can be declared as const array [constParameter] ploticus-2.42/src/dbinterface.c:136:6: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/dbinterface.c:58:9: error: Uninitialized variable: stat [uninitvar] ploticus-2.42/src/dbinterface.c:87:9: error: Uninitialized variable: stat [uninitvar] ploticus-2.42/src/err.c:59:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ploticus-2.42/src/err.c:37:13: style: Parameter 'parm' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/err.c:77:8: style: Variable 'qs' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/err.c:77:13: style: Variable 'ref' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/err.c:77:19: style: Variable 'host' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/err.c:77:26: style: Variable 'ip' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/err.c:108:7: style: Parameter 'prog' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/err.c:120:7: style: Parameter 'prog' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/err.c:139:7: style: Parameter 'mode' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/err.c:167:7: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/devstuff.c:123:4: style: Variable 'c' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/execline.c:97:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ploticus-2.42/src/execscriptfile.c:86:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/functions.c:430:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ploticus-2.42/src/functions.c:208:65: style: Expression 'exp(x) - 1' can be replaced by 'expm1(x)' to avoid loss of precision. [unpreciseMathCall] ploticus-2.42/src/functions.c:537:11: style: The if condition is the same as the previous if condition [duplicateCondition] ploticus-2.42/src/functions.c:528:11: note: First condition ploticus-2.42/src/functions.c:537:11: note: Second condition ploticus-2.42/src/functions.c:650:16: style: Variable 'stat' is reassigned a value before the old one has been used. [redundantAssignment] ploticus-2.42/src/functions.c:648:16: note: stat is assigned ploticus-2.42/src/functions.c:650:16: note: stat is overwritten ploticus-2.42/src/functions.c:758:16: style: Variable 'stat' is reassigned a value before the old one has been used. [redundantAssignment] ploticus-2.42/src/functions.c:754:16: note: stat is assigned ploticus-2.42/src/functions.c:758:16: note: stat is overwritten ploticus-2.42/src/functions.c:235:7: style: Local variable 'j' shadows outer variable [shadowVariable] ploticus-2.42/src/functions.c:136:8: note: Shadowed declaration ploticus-2.42/src/functions.c:235:7: note: Shadow variable ploticus-2.42/src/functions.c:302:10: style: Local variable 'j' shadows outer variable [shadowVariable] ploticus-2.42/src/functions.c:136:8: note: Shadowed declaration ploticus-2.42/src/functions.c:302:10: note: Shadow variable ploticus-2.42/src/functions.c:441:20: style: Local variable 's' shadows outer variable [shadowVariable] ploticus-2.42/src/functions.c:138:7: note: Shadowed declaration ploticus-2.42/src/functions.c:441:20: note: Shadow variable ploticus-2.42/src/functions.c:459:7: style: Local variable 'j' shadows outer variable [shadowVariable] ploticus-2.42/src/functions.c:136:8: note: Shadowed declaration ploticus-2.42/src/functions.c:459:7: note: Shadow variable ploticus-2.42/src/functions.c:441:20: style: Variable 's' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/functions.c:884:7: style: Parameter 'what' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/execline.c:160:11: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/execline.c:216:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/execline.c:225:62: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/execline.c:234:10: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/execline.c:376:6: style: Local variable 'clone_name' shadows outer variable [shadowVariable] ploticus-2.42/src/execline.c:23:13: note: Shadowed declaration ploticus-2.42/src/execline.c:376:6: note: Shadow variable ploticus-2.42/src/execline.c:447:7: style: Parameter 'firstline' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/execline.c:448:7: style: Parameter 'mode' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/execline.c:450:7: style: Variable 'line' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/execline.c:509:13: style: Parameter 'lineval' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/execline.c:473:1: warning: Size of pointer 'mem' used instead of size of its data. [pointerSize] ploticus-2.42/src/clickmap.c:457:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/clickmap.c:259:4: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] ploticus-2.42/src/clickmap.c:79:7: style: Parameter 'title' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/clickmap.c:418:7: style: Parameter 'url' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/clickmap.c:438:7: style: Parameter 'url' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/gd13.c:21:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdImage [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd13.c:109:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdMaxColors [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd13.c:143:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdTransparent [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd13.c:419:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdDashSize [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd13.c:673:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdTiled [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd13.c:920:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd13.c:1473:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd13.c:1977:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdMaxColors [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd13.c:2081:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdMaxColors [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd13.c:2136:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdMaxColors [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd13.c:2221:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd13.c:2243:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd13.c:2272:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdMaxColors [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd13.c:2315:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdMaxColors [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd13.c:2395:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd13.c:2445:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd13.c:2599:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable y [valueFlowBailoutIncompleteVar] ploticus-2.42/src/condex.c:177:6: style: Parameter 'args' can be declared as const array [constParameter] ploticus-2.42/src/gd_io.c:77:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd_io.c:88:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd_io.c:105:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd_io_dp.c:245:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd_io_dp.c:265:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd_png.c:50:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd_png.c:127:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PNG_LIBPNG_VER_STRING [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd_png.c:424:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdMaxColors [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd16.c:20:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdImage [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd16.c:118:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdMaxColors [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd16.c:168:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdMaxColors [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd16.c:241:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdTransparent [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd16.c:517:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdDashSize [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd16.c:771:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdTiled [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd16.c:877:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdMaxColors [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd16.c:933:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdMaxColors [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd16.c:992:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdMaxColors [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd16.c:1049:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdMaxColors [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd16.c:1197:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd16.c:1247:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd16.c:1288:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable y [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd16.c:1422:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GD_CMP_INTERLACE [valueFlowBailoutIncompleteVar] ploticus-2.42/src/gd_png.c:555:18: warning: If memory allocation fails, then there is a possible null pointer dereference: row_pointers [nullPointerOutOfMemory] ploticus-2.42/src/gd_png.c:550:23: note: Assuming allocation function fails ploticus-2.42/src/gd_png.c:550:23: note: Assignment 'row_pointers=malloc(sizeof(png_bytep)*height)', assigned value is 0 ploticus-2.42/src/gd_png.c:555:18: note: Null pointer dereference ploticus-2.42/src/gd_png.c:475:12: style: Redundant initialization for 'colors'. The initialized value is overwritten before it is read. [redundantInitialization] ploticus-2.42/src/gd_png.c:422:16: note: colors is initialized ploticus-2.42/src/gd_png.c:475:12: note: colors is overwritten ploticus-2.42/src/gd_png.c:423:10: style: Variable 'open' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/gd_png.c:116:12: warning: Size of pointer 'infile' used instead of size of its data. [pointerSize] ploticus-2.42/src/gd16.c:1216:3: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] ploticus-2.42/src/gd16.c:1063:3: warning: If memory allocation fails, then there is a possible null pointer dereference: stx [nullPointerOutOfMemory] ploticus-2.42/src/gd16.c:1056:22: note: Assuming allocation function fails ploticus-2.42/src/gd16.c:1056:8: note: Assignment 'stx=(int*)malloc(sizeof(int)*srcW)', assigned value is 0 ploticus-2.42/src/gd16.c:1063:3: note: Null pointer dereference ploticus-2.42/src/gd16.c:1071:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sty [nullPointerOutOfMemory] ploticus-2.42/src/gd16.c:1057:22: note: Assuming allocation function fails ploticus-2.42/src/gd16.c:1057:8: note: Assignment 'sty=(int*)malloc(sizeof(int)*srcH)', assigned value is 0 ploticus-2.42/src/gd16.c:1071:3: note: Null pointer dereference ploticus-2.42/src/gd16.c:1192:8: style: Local variable 'h' shadows outer variable [shadowVariable] ploticus-2.42/src/gd16.c:1135:9: note: Shadowed declaration ploticus-2.42/src/gd16.c:1192:8: note: Shadow variable ploticus-2.42/src/gd16.c:583:77: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/gd16.c:595:79: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/gd16.c:633:37: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/gd16.c:1139:8: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/gd16.c:1345:42: style: Parameter 'style' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/gd16.c:1432:7: style: Variable 'sx' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/gd16.c:1434:7: style: Variable 'sx' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/gd16.c:1437:6: style: Variable 'sx' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/gd16.c:1443:7: style: Variable 'sy' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/gd16.c:1445:7: style: Variable 'sy' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/gd13.c:2414:3: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] ploticus-2.42/src/gd13.c:2150:3: warning: If memory allocation fails, then there is a possible null pointer dereference: stx [nullPointerOutOfMemory] ploticus-2.42/src/gd13.c:2143:22: note: Assuming allocation function fails ploticus-2.42/src/gd13.c:2143:8: note: Assignment 'stx=(int*)malloc(sizeof(int)*srcW)', assigned value is 0 ploticus-2.42/src/gd13.c:2150:3: note: Null pointer dereference ploticus-2.42/src/gd13.c:2158:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sty [nullPointerOutOfMemory] ploticus-2.42/src/gd13.c:2144:22: note: Assuming allocation function fails ploticus-2.42/src/gd13.c:2144:8: note: Assignment 'sty=(int*)malloc(sizeof(int)*srcH)', assigned value is 0 ploticus-2.42/src/gd13.c:2158:3: note: Null pointer dereference ploticus-2.42/src/gd13.c:1231:24: style:inconclusive: Function 'output' argument 1 names different: declaration 'code' definition 'val'. [funcArgNamesDifferent] ploticus-2.42/src/gd13.c:792:30: note: Function 'output' argument 1 names different: declaration 'code' definition 'val'. ploticus-2.42/src/gd13.c:1231:24: note: Function 'output' argument 1 names different: declaration 'code' definition 'val'. ploticus-2.42/src/gd13.c:1295:15: style: Local variable 'cost' shadows outer variable [shadowVariable] ploticus-2.42/src/gd13.c:9:12: note: Shadowed declaration ploticus-2.42/src/gd13.c:1295:15: note: Shadow variable ploticus-2.42/src/gd13.c:2142:9: style: Local variable 'accum' shadows outer variable [shadowVariable] ploticus-2.42/src/gd13.c:1517:13: note: Shadowed declaration ploticus-2.42/src/gd13.c:2142:9: note: Shadow variable ploticus-2.42/src/gd13.c:2390:8: style: Local variable 'h' shadows outer variable [shadowVariable] ploticus-2.42/src/gd13.c:2333:9: note: Shadowed declaration ploticus-2.42/src/gd13.c:2390:8: note: Shadow variable ploticus-2.42/src/gd13.c:485:77: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/gd13.c:497:79: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/gd13.c:535:37: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/gd13.c:934:118: style: Parameter 'Red' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/gd13.c:934:128: style: Parameter 'Green' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/gd13.c:934:140: style: Parameter 'Blue' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/gd13.c:2337:8: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/gd13.c:2656:42: style: Parameter 'style' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/gd13.c:1418:6: style: Unused variable: table_reps [unusedVariable] ploticus-2.42/src/gd13.c:1419:6: style: Unused variable: table_extra [unusedVariable] ploticus-2.42/src/glroutines.c:416:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] ploticus-2.42/src/glroutines.c:557:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ploticus-2.42/src/glroutines.c:983:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ploticus-2.42/src/init.c:146:5: style: Condition 'initialized' is always true [knownConditionTrueFalse] ploticus-2.42/src/init.c:193:7: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/init.c:212:7: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/interact.c:64:2: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] ploticus-2.42/src/localef.c:7:21: style: Parameter 's1' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/localef.c:7:31: style: Parameter 's2' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/localef.c:31:20: style: Parameter 's1' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/localef.c:31:30: style: Parameter 's2' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/grgd.c:213:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdPoint [valueFlowBailoutIncompleteVar] ploticus-2.42/src/grgd.c:235:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdStyledBrushed [valueFlowBailoutIncompleteVar] ploticus-2.42/src/grgd.c:246:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdStyledBrushed [valueFlowBailoutIncompleteVar] ploticus-2.42/src/grgd.c:312:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] ploticus-2.42/src/grgd.c:329:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] ploticus-2.42/src/grgd.c:424:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdStyledBrushed [valueFlowBailoutIncompleteVar] ploticus-2.42/src/grgd.c:479:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdStyledBrushed [valueFlowBailoutIncompleteVar] ploticus-2.42/src/grgd.c:572:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdStyledBrushed [valueFlowBailoutIncompleteVar] ploticus-2.42/src/grgd.c:752:101: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdStyledBrushed [valueFlowBailoutIncompleteVar] ploticus-2.42/src/grgd.c:871:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ploticus-2.42/src/grgd.c:954:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ploticus-2.42/src/lib.c:79:6: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/lib.c:99:6: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/lib.c:121:6: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/lib.c:334:1: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/lib.c:31:7: style: Parameter 'val' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/lib.c:55:6: style: Parameter 's' can be declared as const array [constParameter] ploticus-2.42/src/lib.c:72:18: style: Parameter 'val' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/lib.c:92:18: style: Parameter 'val' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/lib.c:114:7: style: Parameter 'lineval' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/lib.c:180:17: style: Parameter 'fmt' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/lib.c:223:7: style: Parameter 'aname' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/lib.c:387:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/parse.c:113:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/parse.c:45:7: style: Parameter 'comsym' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/glroutines.c:54:9: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] ploticus-2.42/src/glroutines.c:71:9: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] ploticus-2.42/src/glroutines.c:1148:3: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] ploticus-2.42/src/glroutines.c:979:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/glroutines.c:52:12: style: Variable 'ltime' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/glroutines.c:69:12: style: Variable 'ltime' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/glroutines.c:84:10: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/glroutines.c:106:9: style: Parameter 's' can be declared as const array [constParameter] ploticus-2.42/src/glroutines.c:119:6: style: Parameter 's' can be declared as const array [constParameter] ploticus-2.42/src/glroutines.c:140:6: style: Parameter 's' can be declared as const array [constParameter] ploticus-2.42/src/glroutines.c:164:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/glroutines.c:182:7: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/glroutines.c:238:6: style: Parameter 'inbuf' can be declared as const array [constParameter] ploticus-2.42/src/glroutines.c:275:6: style: Parameter 'line' can be declared as const array [constParameter] ploticus-2.42/src/glroutines.c:350:6: style: Parameter 'in' can be declared as const array [constParameter] ploticus-2.42/src/glroutines.c:566:13: style: Parameter 's1' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/glroutines.c:566:23: style: Parameter 's2' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/glroutines.c:603:7: style: Parameter 'newmem' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/glroutines.c:654:15: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/glroutines.c:673:7: style: Parameter 's1' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/glroutines.c:673:12: style: Parameter 's2' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/glroutines.c:709:19: style: Parameter 'newchar' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/glroutines.c:772:7: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/glroutines.c:804:11: style: Parameter 'symbol' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/glroutines.c:804:20: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/glroutines.c:929:7: style: Parameter 'mode' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/glroutines.c:1052:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/glroutines.c:1082:13: style: Parameter 'uri' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/glroutines.c:1120:7: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/glroutines.c:1141:7: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/glroutines.c:1165:6: style: Parameter 'line' can be declared as const array [constParameter] ploticus-2.42/src/glroutines.c:1063:8: style: Variable 'lastix' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/pcode.c:194:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ploticus-2.42/src/pcode.c:991:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ploticus-2.42/src/pl.c:225:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] ploticus-2.42/src/pl.c:100:13: style: Variable 'PLS.device' is reassigned a value before the old one has been used. [redundantAssignment] ploticus-2.42/src/pl.c:98:13: note: PLS.device is assigned ploticus-2.42/src/pl.c:100:13: note: PLS.device is overwritten ploticus-2.42/src/pcode.c:415:16: style: Condition 'vertchar' is always true [knownConditionTrueFalse] ploticus-2.42/src/pcode.c:418:16: style: Condition 'vertchar' is always true [knownConditionTrueFalse] ploticus-2.42/src/pcode.c:474:17: style: Condition 'vertchar' is always true [knownConditionTrueFalse] ploticus-2.42/src/pcode.c:477:17: style: Condition 'vertchar' is always true [knownConditionTrueFalse] ploticus-2.42/src/pcode.c:535:16: style: Condition 'vertchar' is always true [knownConditionTrueFalse] ploticus-2.42/src/pcode.c:538:16: style: Condition 'vertchar' is always true [knownConditionTrueFalse] ploticus-2.42/src/pcode.c:715:10: style: Parameter 's' can be declared as const array [constParameter] ploticus-2.42/src/pcode.c:988:7: style: Parameter 'filemode' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/pcode.c:744:1: error: Uninitialized variable: y1 [legacyUninitvar] ploticus-2.42/src/pcode.c:730:5: error: Uninitialized variable: y2 [legacyUninitvar] ploticus-2.42/src/plg.c:126:27: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] ploticus-2.42/src/plg.c:126:47: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] ploticus-2.42/src/plg.c:163:27: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] ploticus-2.42/src/plg.c:163:47: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] ploticus-2.42/src/plg.c:206:44: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] ploticus-2.42/src/plg.c:207:25: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] ploticus-2.42/src/plg.c:226:44: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] ploticus-2.42/src/plg.c:227:25: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] ploticus-2.42/src/plg.c:53:6: style: Parameter 'typ' can be declared as const array [constParameter] ploticus-2.42/src/grgd.c:390:12: style: Condition 'p>=7' is always true [knownConditionTrueFalse] ploticus-2.42/src/grgd.c:389:7: note: Assuming that condition 'p<=6' is not redundant ploticus-2.42/src/grgd.c:390:12: note: Condition 'p>=7' is always true ploticus-2.42/src/grgd.c:422:5: style: Variable 'a' is reassigned a value before the old one has been used. [redundantAssignment] ploticus-2.42/src/grgd.c:418:3: note: a is assigned ploticus-2.42/src/grgd.c:422:5: note: a is overwritten ploticus-2.42/src/grgd.c:422:21: style: Variable 'b' is reassigned a value before the old one has been used. [redundantAssignment] ploticus-2.42/src/grgd.c:418:23: note: b is assigned ploticus-2.42/src/grgd.c:422:21: note: b is overwritten ploticus-2.42/src/grgd.c:55:7: style: Parameter 'fmt' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/grgd.c:253:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/grgd.c:357:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/grgd.c:826:7: style: Parameter 'imgname' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/grgd.c:865:7: style: Parameter 'align' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/preliminaries.c:89:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ploticus-2.42/src/grgd.c:456:9: warning: Uninitialized variable: x [uninitvar] ploticus-2.42/src/grgd.c:419:5: note: Assuming condition is false ploticus-2.42/src/grgd.c:456:9: note: Uninitialized variable: x ploticus-2.42/src/grgd.c:457:9: warning: Uninitialized variable: y [uninitvar] ploticus-2.42/src/grgd.c:419:5: note: Assuming condition is true ploticus-2.42/src/grgd.c:457:9: note: Uninitialized variable: y ploticus-2.42/src/grgd.c:526:9: error: Uninitialized variable: x [legacyUninitvar] ploticus-2.42/src/grgd.c:527:9: error: Uninitialized variable: y [legacyUninitvar] ploticus-2.42/src/grgd.c:593:9: error: Uninitialized variable: x [legacyUninitvar] ploticus-2.42/src/grgd.c:594:9: error: Uninitialized variable: y [legacyUninitvar] ploticus-2.42/src/grgd.c:545:5: style: Variable 'a' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/grgd.c:545:19: style: Variable 'b' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/grgd.c:546:5: style: Variable 'c' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/grgd.c:546:19: style: Variable 'd' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/plvalue_subst.c:65:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/dates.c:1000:20: style: Expression is always false because 'else if' condition matches previous condition at line 999. [multiCondition] ploticus-2.42/src/dates.c:404:13: style: The if condition is the same as the previous if condition [duplicateCondition] ploticus-2.42/src/dates.c:395:13: note: First condition ploticus-2.42/src/dates.c:404:13: note: Second condition ploticus-2.42/src/dates.c:354:13: style: Condition 'y=Pivotyear' is not redundant ploticus-2.42/src/dates.c:354:13: note: Condition 'y=Pivotyear' is not redundant ploticus-2.42/src/dates.c:573:22: note: Condition 'yr=11' is always true [knownConditionTrueFalse] ploticus-2.42/src/x11.c:578:22: note: Assuming that condition 'p==10' is not redundant ploticus-2.42/src/x11.c:579:12: note: Condition 'p>=11' is always true ploticus-2.42/src/x11.c:117:10: style: Parameter 'display' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/x11.c:118:9: style: Parameter 'window' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/x11.c:119:5: style: Parameter 'gc' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/x11.c:602:7: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/x11.c:698:6: style: Parameter 't' can be declared as const array [constParameter] ploticus-2.42/src/x11.c:1035:7: style: Parameter 'what' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/x11.c:121:9: style: Variable 'display' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/x11.c:122:8: style: Variable 'window' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/x11.c:123:4: style: Variable 'gc' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/value_subst.c:114:12: style: Condition 'instring' is always true [knownConditionTrueFalse] ploticus-2.42/src/value_subst.c:131:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/value_subst.c:67:7: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/value_subst.c:283:7: style: Parameter 'tag' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/value_subst.c:314:7: style: Parameter 'prefix' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/proc_tabulate.c:198:15: style: Condition 'nt==2' is always true [knownConditionTrueFalse] ploticus-2.42/src/proc_tabulate.c:190:10: note: Assuming that condition 'nt<2' is not redundant ploticus-2.42/src/proc_tabulate.c:193:7: note: Assuming condition is false ploticus-2.42/src/proc_tabulate.c:194:10: note: Assuming that condition 'nt==3' is not redundant ploticus-2.42/src/proc_tabulate.c:198:15: note: Condition 'nt==2' is always true ploticus-2.42/src/proc_tabulate.c:301:34: style: Condition 'doranges[i]' is always true [knownConditionTrueFalse] ploticus-2.42/src/proc_tabulate.c:189:8: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/proc_tabulate.c:339:8: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] ploticus-2.42/src/proc_tabulate.c:154:10: style: Local variable 'ix' shadows outer variable [shadowVariable] ploticus-2.42/src/proc_tabulate.c:52:8: note: Shadowed declaration ploticus-2.42/src/proc_tabulate.c:154:10: note: Shadow variable ploticus-2.42/src/proc_tabulate.c:48:63: style: Variable 'showrange' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_tabulate.c:507:8: style: Parameter 'counts' can be declared as const array [constParameter] ploticus-2.42/src/proc_tabulate.c:113:55: error: Uninitialized variable: val[0] [legacyUninitvar] ploticus-2.42/src/proc_axis.c:632:32: style: Expression 'exp(x) - 1' can be replaced by 'expm1(x)' to avoid loss of precision. [unpreciseMathCall] ploticus-2.42/src/proc_axis.c:707:17: style: Expression is always true because 'else if' condition is opposite to previous condition at line 706. [multiCondition] ploticus-2.42/src/proc_axis.c:706:17: note: first condition ploticus-2.42/src/proc_axis.c:707:17: note: else if condition is opposite to first condition ploticus-2.42/src/proc_axis.c:627:11: style: The if condition is the same as the previous if condition [duplicateCondition] ploticus-2.42/src/proc_axis.c:620:11: note: First condition ploticus-2.42/src/proc_axis.c:627:11: note: Second condition ploticus-2.42/src/proc_axis.c:122:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/proc_axis.c:145:14: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/proc_axis.c:187:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/proc_axis.c:199:8: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/proc_axis.c:209:63: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/proc_axis.c:211:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/proc_axis.c:251:63: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/proc_axis.c:32:18: style: Variable 'firststub' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_axis.c:32:30: style: Variable 'laststub' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_axis.c:32:54: style: Variable 'stubsubnew' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_axis.c:720:13: style: Variable 'timepart' is assigned a value that is never used. [unreadVariable] diff: head ploticus-2.42/src/plg.c:126:47: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] head ploticus-2.42/src/plg.c:163:47: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] DONE