2025-09-15 08:10 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 -j4 platform: Linux-6.12.43+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 060db6b (2025-09-15 08:38:14 +0200) count: 541 543 elapsed-time: 14.8 14.9 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/autorange.c:245:30: style: Variable 'b' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/condex.c:284:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 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/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/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/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/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/devstuff.c:123:4: style: Variable 'c' is assigned a value that is never used. [unreadVariable] 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/condex.c:177:6: style: Parameter 'args' can be declared as const array [constParameter] 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/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/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/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/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/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/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/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/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/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/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=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/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/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/pl.c:225:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] 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/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/preliminaries.c:89:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [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/plvalue_subst.c:65:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/preliminaries.c:205:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/preliminaries.c:34:7: style: Variable 'filename' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/preliminaries.c:114:8: style: Variable 'cgiprogname' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_areadef.c:100:49: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/proc_areadef.c:101:50: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/proc_areadef.c:107:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/proc_areadef.c:117:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/proc_annotate.c:90:8: style: The if condition is the same as the previous if condition [duplicateCondition] ploticus-2.42/src/proc_annotate.c:89:8: note: First condition ploticus-2.42/src/proc_annotate.c:90:8: note: Second condition ploticus-2.42/src/proc_annotate.c:193:8: style: Local variable 'atx' shadows outer variable [shadowVariable] ploticus-2.42/src/proc_annotate.c:13:25: note: Shadowed declaration ploticus-2.42/src/proc_annotate.c:193:8: note: Shadow variable ploticus-2.42/src/proc_annotate.c:193:13: style: Local variable 'aty' shadows outer variable [shadowVariable] ploticus-2.42/src/proc_annotate.c:13:30: note: Shadowed declaration ploticus-2.42/src/proc_annotate.c:193:13: note: Shadow variable ploticus-2.42/src/proc_annotate.c:227:10: error: Uninitialized variable: atx [legacyUninitvar] ploticus-2.42/src/proc_annotate.c:228:10: error: Uninitialized variable: aty [legacyUninitvar] ploticus-2.42/src/proc_breakaxis.c:17:49: style: Variable 'style' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_bars.c:266:20: style: Expression is always true because 'else if' condition is opposite to previous condition at line 265. [multiCondition] ploticus-2.42/src/proc_bars.c:265:15: note: first condition ploticus-2.42/src/proc_bars.c:266:20: note: else if condition is opposite to first condition ploticus-2.42/src/proc_bars.c:710:28: style: Condition 'align=='R'' is always true [knownConditionTrueFalse] ploticus-2.42/src/proc_bars.c:705:17: note: Assuming that condition 'align!='R'' is not redundant ploticus-2.42/src/proc_bars.c:710:28: note: Condition 'align=='R'' is always true ploticus-2.42/src/proc_bars.c:129:8: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/proc_bars.c:148:8: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/proc_bars.c:179:44: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/proc_bars.c:446:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/proc_bars.c:273:71: style: Variable 'do_outline' is reassigned a value before the old one has been used. [redundantAssignment] ploticus-2.42/src/proc_bars.c:91:12: note: do_outline is assigned ploticus-2.42/src/proc_bars.c:273:71: note: do_outline is overwritten ploticus-2.42/src/proc_bars.c:635:9: style: Variable 'laby' is reassigned a value before the old one has been used. [redundantAssignment] ploticus-2.42/src/proc_bars.c:630:15: note: laby is assigned ploticus-2.42/src/proc_bars.c:635:9: note: laby is overwritten ploticus-2.42/src/proc_bars.c:51:28: style: Variable 'labelword' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_categories.c:19:17: style: Variable 'selectex' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_categories.c:19:28: style: Variable 'datafield' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_categories.c:19:51: style: Variable 'compmethod' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_categories.c:30:40: style: Variable 'datafield' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/proc_curvefit.c:36:21: style: Variable 'curvetype' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_curvefit.c:391:8: style: Parameter 'in' can be declared as const array [constParameter] ploticus-2.42/src/proc_curvefit.c:477:9: style: Variable 'f' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_curvefit.c:477:13: style: Variable 'g' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_curvefit.c:449:24: style: Variable 'tmp3' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/proc_curvefit.c:453:7: style: Variable 'tmp3' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/proc_catlines.c:28:7: style: Variable 'barcolor' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_catlines.c:28:30: style: Variable 'plotwidth' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_drawcommands.c:106:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] ploticus-2.42/src/proc_drawcommands.c:122:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/proc_drawcommands.c:141:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/proc_drawcommands.c:147:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/proc_drawcommands.c:168:8: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/proc_drawcommands.c:186:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/proc_drawcommands.c:22:27: style: Variable 'commands' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_getdata.c:183:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] ploticus-2.42/src/proc_image.c:63:7: style: Variable 'stat' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/proc_image.c:77:7: style: Variable 'stat' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/nearest.c:48:7: style: Variable 'stat' is reassigned a value before the old one has been used. [redundantAssignment] ploticus-2.42/src/nearest.c:32:7: note: stat is assigned ploticus-2.42/src/nearest.c:48:7: note: stat is overwritten ploticus-2.42/src/nearest.c:99:7: style: Variable 'stat' is reassigned a value before the old one has been used. [redundantAssignment] ploticus-2.42/src/nearest.c:88:7: note: stat is assigned ploticus-2.42/src/nearest.c:99:7: note: stat is overwritten ploticus-2.42/src/nearest.c:250:59: warning: Either the condition 'minblock<0' is redundant or there is division by zero at line 250. [zerodivcond] ploticus-2.42/src/nearest.c:250:29: note: Assuming that condition 'minblock<0' is not redundant ploticus-2.42/src/nearest.c:250:59: note: Division by zero ploticus-2.42/src/nearest.c:283:59: warning: Either the condition 'secblock<0' is redundant or there is division by zero at line 283. [zerodivcond] ploticus-2.42/src/nearest.c:283:29: note: Assuming that condition 'secblock<0' is not redundant ploticus-2.42/src/nearest.c:283:59: note: Division by zero ploticus-2.42/src/nearest.c:48:7: style: Variable 'stat' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/nearest.c:99:7: style: Variable 'stat' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/proc_legendentry.c:17:15: style: Variable 'sampletype' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_getdata.c:37:7: style: Variable 'datafile' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_getdata.c:296:9: style: Variable 'dword' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_line.c:71:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/proc_legend.c:123:8: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/proc_legend.c:211:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/proc_legend.c:374:15: style: Parameter 'tag' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/proc_legend.c:374:21: style: Parameter 'parm1' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/proc_legend.c:374:29: style: Parameter 'parm2' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/proc_legend.c:374:37: style: Parameter 'parm3' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/proc_legend.c:423:7: style: Parameter 'tag' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/proc_lineplot.c:84:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/proc_lineplot.c:31:31: style: Variable 'legsamptyp' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_lineplot.c:523:9: style: Variable 'f' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_lineplot.c:523:13: style: Variable 'g' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_page.c:20:21: style: Variable 'mapfilename' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_print.c:17:50: style: Variable 'outmode' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_pvalue.c:50:8: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/proc_pvalue.c:57:8: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/proc_pvalue.c:23:32: style: Variable 'printfmt' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_pie.c:162:17: style: Expression is always true because 'else if' condition is opposite to previous condition at line 158. [multiCondition] ploticus-2.42/src/proc_pie.c:158:17: note: first condition ploticus-2.42/src/proc_pie.c:162:17: note: else if condition is opposite to first condition ploticus-2.42/src/proc_pie.c:24:50: style: Variable 'labelmode' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_pie.c:25:7: style: Variable 'pctfmt' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_pie.c:25:28: style: Variable 'lblfmtstring' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_pie.c:42:7: style: Variable 'theta' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/proc_scatterplot.c:124:8: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/proc_scatterplot.c:180:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/proc_scatterplot.c:187:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/proc_scatterplot.c:37:59: style: Variable 'xrange' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_scatterplot.c:37:68: style: Variable 'yrange' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_scatterplot.c:38:57: style: Variable 'labelword' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_scatterplot.c:492:9: style: Variable 'f2' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_scatterplot.c:492:14: style: Variable 'g2' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_settings.c:54:7: style: Parameter 'attr' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/proc_settings.c:36:22: style: Variable 'stat' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/proc_tree.c:96:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] ploticus-2.42/src/proc_tree.c:216:25: style: Condition 'toklist[i][0]==':'' is always true [knownConditionTrueFalse] ploticus-2.42/src/proc_tree.c:200:25: note: Assuming that condition 'toklist[i][0]!=':'' is not redundant ploticus-2.42/src/proc_tree.c:216:25: note: Condition 'toklist[i][0]==':'' is always true ploticus-2.42/src/proc_processdata.c:790:8: style: Local variable 'out' shadows outer function [shadowFunction] ploticus-2.42/src/proc_processdata.c:20:19: note: Shadowed declaration ploticus-2.42/src/proc_processdata.c:790:8: note: Shadow variable ploticus-2.42/src/proc_processdata.c:921:9: style: Variable 'f' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_processdata.c:921:13: style: Variable 'g' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_venndisk.c:135:7: style: Parameter 'color_in' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/proc_venndisk.c:135:18: style: Parameter 'outline_in' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/process_arg.c:77:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ploticus-2.42/src/proc_vector.c:156:9: style: Variable 'ldet' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/proc_vector.c:158:22: style: Variable 'ldet' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/ps.c:108:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ploticus-2.42/src/ps.c:90:7: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/ps.c:92:7: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/ps.c:365:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/ps.c:433:7: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/ps.c:459:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/ps.c:633:7: style: Parameter 'basename' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/ps.c:677:7: style: Parameter 'attr' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/ps.c:677:14: style: Parameter 'val' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/reslimits.c:29:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RLIM_INFINITY [valueFlowBailoutIncompleteVar] ploticus-2.42/src/reslimits.c:22:7: style: Parameter 'type' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/secondaryops.c:38:1: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/secondaryops.c:131:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/process_arg.c:17:7: style: Parameter 'opt_in' can be declared as pointer to const [constParameterPointer] 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] ploticus-2.42/src/shell.c:70:12: error: Buffer is accessed out of bounds: namebuf [bufferAccessOutOfBounds] ploticus-2.42/src/shell.c:249:15: style: Variable 'stat' is reassigned a value before the old one has been used. [redundantAssignment] ploticus-2.42/src/shell.c:246:15: note: stat is assigned ploticus-2.42/src/shell.c:249:15: note: stat is overwritten ploticus-2.42/src/shell.c:130:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/shell.c:131:7: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/shell.c:155:4: style: Variable 'ix' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/shell.c:249:15: style: Variable 'stat' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/sinterp.c:595:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ploticus-2.42/src/smoothfit.c:474:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ploticus-2.42/src/smoothfit.c:277:5: warning: If memory allocation fails, then there is a possible null pointer dereference: qlx [nullPointerOutOfMemory] ploticus-2.42/src/smoothfit.c:274:26: note: Assuming allocation function fails ploticus-2.42/src/smoothfit.c:274:9: note: Assignment 'qlx=(double*)malloc(sizeof(double)*newsize)', assigned value is 0 ploticus-2.42/src/smoothfit.c:277:5: note: Null pointer dereference ploticus-2.42/src/smoothfit.c:278:5: warning: If memory allocation fails, then there is a possible null pointer dereference: qly [nullPointerOutOfMemory] ploticus-2.42/src/smoothfit.c:275:26: note: Assuming allocation function fails ploticus-2.42/src/smoothfit.c:275:9: note: Assignment 'qly=(double*)malloc(sizeof(double)*newsize)', assigned value is 0 ploticus-2.42/src/smoothfit.c:278:5: note: Null pointer dereference ploticus-2.42/src/smoothfit.c:655:38: style: Variable '*Y' is assigned an expression that holds the same value. [redundantAssignment] ploticus-2.42/src/smoothfit.c:651:7: note: YBB is assigned '*Y' here. ploticus-2.42/src/smoothfit.c:655:38: note: Variable '*Y' is assigned an expression that holds the same value. ploticus-2.42/src/smoothfit.c:86:9: style: Variable 'resultx' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/smoothfit.c:86:19: style: Variable 'resulty' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/smoothfit.c:103:6: style: Variable 'stat' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/sinterp.c:277:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/sinterp.c:330:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/sinterp.c:349:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/sinterp.c:372:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/sinterp.c:401:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/sinterp.c:487:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/sinterp.c:593:8: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/sinterp.c:604:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/sinterp.c:629:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/sinterp.c:749:2: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/sinterp.c:683:7: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/stub.c:337:7: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/tdhkit.c:109:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/tdhkit.c:139:8: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/tdhkit.c:60:7: style: Parameter 'loc' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/swf.c:169:18: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] ploticus-2.42/src/swf.c:169:9: style: The statement 'if (dev!='f') dev='f'' is logically equivalent to 'dev='f''. [duplicateConditionalAssign] ploticus-2.42/src/swf.c:169:22: note: Assignment 'dev='f'' ploticus-2.42/src/swf.c:169:9: note: Condition 'dev!='f'' is redundant ploticus-2.42/src/swf.c:485:2: warning:inconclusive: Width 2 given in format string (no. 1) is smaller than destination buffer 'ptype[5]'. [invalidScanfFormatWidth_smaller] ploticus-2.42/src/swf.c:799:2: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/testsup.c:3: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/testsup.c:15:1: portability: Omitted return type of function 'dotext' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ploticus-2.42/src/swf.c:198:9: warning: If resource allocation fails, then there is a possible null pointer dereference: swf_fp [nullPointerOutOfResources] ploticus-2.42/src/swf.c:196:15: note: Assuming allocation function fails ploticus-2.42/src/swf.c:196:15: note: Assignment 'swf_fp=fopen(swf_tmpfilename,"w")', assigned value is 0 ploticus-2.42/src/swf.c:198:9: note: Null pointer dereference ploticus-2.42/src/swf.c:199:9: warning: If resource allocation fails, then there is a possible null pointer dereference: swf_fp [nullPointerOutOfResources] ploticus-2.42/src/swf.c:196:15: note: Assuming allocation function fails ploticus-2.42/src/swf.c:196:15: note: Assignment 'swf_fp=fopen(swf_tmpfilename,"w")', assigned value is 0 ploticus-2.42/src/swf.c:199:9: note: Null pointer dereference ploticus-2.42/src/swf.c:136:7: style: Parameter 'tmpname' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/swf.c:137:7: style: Parameter 'font' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/swf.c:159:7: style: Parameter 'outfile' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/swf.c:339:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/swf.c:365:7: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/swf.c:390:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/swf.c:430:32: style: Parameter 'data' can be declared as pointer to const. However it seems that 'putC' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ploticus-2.42/src/swf.c:522:13: note: You might need to cast the function pointer here ploticus-2.42/src/swf.c:430:32: note: Parameter 'data' can be declared as pointer to const ploticus-2.42/src/swf.c:543:7: style: Parameter 'basename' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/swf.c:569:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/swf.c:589:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/swf.c:634:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/swf.c:684:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/swf.c:758:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/swf.c:792:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/swf.c:797:8: style: Variable 'swf_fonts_dir' can be declared as pointer to const [constVariablePointer] ploticus-2.42/src/swf.c:833:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/swf.c:705:41: error: Uninitialized variable: x [uninitvar] ploticus-2.42/src/swf.c:705:43: error: Uninitialized variable: y [uninitvar] ploticus-2.42/src/swf.c:705:45: error: Uninitialized variable: w [uninitvar] ploticus-2.42/src/swf.c:705:47: error: Uninitialized variable: com [uninitvar] ploticus-2.42/src/swf.c:169:22: style: Variable 'dev' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/svg.c:201:18: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] ploticus-2.42/src/svg.c:540:77: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] ploticus-2.42/src/svg.c:201:9: style: The statement 'if (dev!='s') dev='s'' is logically equivalent to 'dev='s''. [duplicateConditionalAssign] ploticus-2.42/src/svg.c:201:22: note: Assignment 'dev='s'' ploticus-2.42/src/svg.c:201:9: note: Condition 'dev!='s'' is redundant ploticus-2.42/src/svg.c:176:7: style: Parameter 'tmpname' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/svg.c:190:7: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/svg.c:192:7: style: Parameter 'outfile' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/svg.c:501:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/svg.c:576:7: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/svg.c:598:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/svg.c:636:7: style: Parameter 'imgurl' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/svg.c:638:7: style: Parameter 'align' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/svg.c:663:7: style: Parameter 'pathname' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/svg.c:770:7: style: Parameter 'basename' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/svg.c:846:7: style: Parameter 'url' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/svg.c:846:13: style: Parameter 'label' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/svg.c:846:21: style: Parameter 'targetstr' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/svg.c:906:14: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/testsup.c:7:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] ploticus-2.42/src/svg.c:201:22: style: Variable 'dev' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/svg.c:540:79: style: Variable 'w' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/testsup.c:16:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/testsup.c:18:8: style: Unused variable: slen [unusedVariable] ploticus-2.42/src/testsup.c:20:8: style: Unused variable: x [unusedVariable] ploticus-2.42/src/testsup.c:20:11: style: Unused variable: y [unusedVariable] ploticus-2.42/src/testsup.c:24:8: style: Unused variable: suppos [unusedVariable] ploticus-2.42/src/times.c:319:11: style: Condition 'stat!=0' is always false [knownConditionTrueFalse] ploticus-2.42/src/times.c:318:22: note: Calling function 'DT_formattime' returns 0 ploticus-2.42/src/times.c:318:22: note: Assignment 'stat=DT_formattime(arg[0],arg[1],result)', assigned value is 0 ploticus-2.42/src/times.c:319:11: note: Condition 'stat!=0' is always false ploticus-2.42/src/times.c:110:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/times.c:210:11: style: Parameter 'outformat' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/times.c:311:7: style: Variable 'stat' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/times.c:334:7: style: Variable 'stat' is assigned a value that is never used. [unreadVariable] ploticus-2.42/src/value.c:77:6: style: Parameter 'data' can be declared as const array [constParameter] ploticus-2.42/src/variable.c:47:44: error: Array 'Name[250][30]' accessed at index Name[*][30], which is out of bounds. [arrayIndexOutOfBounds] ploticus-2.42/src/variable.c:36:14: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/variable.c:77:7: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/x11.c:176:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XPoint [valueFlowBailoutIncompleteVar] ploticus-2.42/src/x11.c:345:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KeyPress [valueFlowBailoutIncompleteVar] ploticus-2.42/src/x11.c:518:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] ploticus-2.42/src/x11.c:547:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CoordModeOrigin [valueFlowBailoutIncompleteVar] ploticus-2.42/src/x11.c:734:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] ploticus-2.42/src/x11.c:749:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FillTiled [valueFlowBailoutIncompleteVar] ploticus-2.42/src/x11.c:982:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ButtonPressMask [valueFlowBailoutIncompleteVar] ploticus-2.42/src/x11.c:1011:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Expose [valueFlowBailoutIncompleteVar] ploticus-2.42/src/units.c:71:6: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] ploticus-2.42/src/units.c:56:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/units.c:378:7: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/units.c:571:14: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ploticus-2.42/src/units.c:325:7: style: Variable 'stat' is assigned a value that is never used. [unreadVariable] 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/x11.c:121:1: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] ploticus-2.42/src/x11.c:122:1: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] ploticus-2.42/src/x11.c:123:1: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] ploticus-2.42/src/x11.c:822:15: style: Expression is always true because 'else if' condition is opposite to previous condition at line 813. [multiCondition] ploticus-2.42/src/x11.c:813:15: note: first condition ploticus-2.42/src/x11.c:822:15: note: else if condition is opposite to first condition ploticus-2.42/src/x11.c:579:12: style: Condition 'p>=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] diff: 2.18.0 ploticus-2.42/src/proc_scatterplot.c:305:44: error: Uninitialized variable: ox[dupcount%38] [legacyUninitvar] 2.18.0 ploticus-2.42/src/proc_scatterplot.c:305:66: error: Uninitialized variable: oy[dupcount%38] [legacyUninitvar] DONE