2025-06-27 16:29 ftp://ftp.de.debian.org/debian/pool/main/g/gnuplot/gnuplot_6.0.3+dfsg1.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=motif --library=qt --library=gtk --library=wxwidgets --library=cairo --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-62-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: b6dd286 (2025-06-27 13:53:34 +0200) count: 1790 1784 elapsed-time: 176.5 181.9 head-timing-info: old-timing-info: head results: gnuplot-6.0.3+dfsg1/demo/plugin/demo_plugin.c:19:58: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/demo/plugin/demo_plugin.c:19:69: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/demo/plugin/demo_plugin.c:49:54: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/demo/plugin/demo_plugin.c:49:65: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/demo/plugin/demo_plugin.c:69:55: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/demo/plugin/demo_plugin.c:69:66: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/docs/checkdoc.c:63:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/docs/doc2gih.c:64:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/docs/doc2gih.c:151:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/docs/doc2gih.c:103:20: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/docs/doc2hlp.c:66:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/docs/doc2hlp.c:141:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/docs/doc2hlp.c:107:21: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/docs/doc2ipf.c:93:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/docs/doc2ipf.c:163:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/docs/doc2ipf.c:423:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] gnuplot-6.0.3+dfsg1/docs/doc2ipf.c:580:7: style: The if condition is the same as the previous if condition [duplicateCondition] gnuplot-6.0.3+dfsg1/docs/doc2ipf.c:550:7: note: First condition gnuplot-6.0.3+dfsg1/docs/doc2ipf.c:580:7: note: Second condition gnuplot-6.0.3+dfsg1/docs/doc2ipf.c:419:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tableins [nullPointerOutOfMemory] gnuplot-6.0.3+dfsg1/docs/doc2ipf.c:417:27: note: Assuming allocation function fails gnuplot-6.0.3+dfsg1/docs/doc2ipf.c:417:27: note: Assignment 'tableins->next=xmalloc(sizeof(struct TABENTRY))', assigned value is 0 gnuplot-6.0.3+dfsg1/docs/doc2ipf.c:418:22: note: Assignment 'tableins=tableins->next', assigned value is 0 gnuplot-6.0.3+dfsg1/docs/doc2ipf.c:419:3: note: Null pointer dereference gnuplot-6.0.3+dfsg1/docs/doc2ipf.c:447:26: warning: Either the condition 'tagend' is redundant or there is possible null pointer dereference: tagend. [nullPointerRedundantCheck] gnuplot-6.0.3+dfsg1/docs/doc2ipf.c:452:9: note: Assuming that condition 'tagend' is not redundant gnuplot-6.0.3+dfsg1/docs/doc2ipf.c:447:26: note: Null pointer dereference gnuplot-6.0.3+dfsg1/docs/doc2ipf.c:134:20: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/docs/doc2ipf.c:158:18: style: Variable 'klist' can be declared as pointer to const [constVariablePointer] gnuplot-6.0.3+dfsg1/docs/doc2ipf.c:425:10: style: Variable 'tagend' can be declared as pointer to const [constVariablePointer] gnuplot-6.0.3+dfsg1/docs/doc2ipf.c:546:9: style: Variable 'k' is assigned a value that is never used. [unreadVariable] gnuplot-6.0.3+dfsg1/docs/doc2rtf.c:73:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/docs/doc2rtf.c:144:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUL [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/docs/doc2rtf.c:93:23: style: Parameter 's' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/docs/doc2rtf.c:121:20: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/docs/doc2rtf.c:137:18: style: Variable 'klist' can be declared as pointer to const [constVariablePointer] gnuplot-6.0.3+dfsg1/docs/doc2tex.c:85:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/docs/doc2tex.c:161:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUL [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/docs/doc2tex.c:478:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUL [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/docs/doc2tex.c:412:12: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] gnuplot-6.0.3+dfsg1/docs/doc2tex.c:292:33: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] gnuplot-6.0.3+dfsg1/docs/doc2tex.c:296:35: note: Found duplicate branches for 'if' and 'else'. gnuplot-6.0.3+dfsg1/docs/doc2tex.c:292:33: note: Found duplicate branches for 'if' and 'else'. gnuplot-6.0.3+dfsg1/docs/doc2tex.c:402:15: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/docs/doc2tex.c:536:13: style: Variable 'index' can be declared as pointer to const [constVariablePointer] gnuplot-6.0.3+dfsg1/docs/doc2web.c:79:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/docs/doc2web.c:220:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/docs/doc2web.c:140:24: style: Parameter 'title' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/docs/doc2web.c:221:18: style: Variable 'klist' can be declared as pointer to const [constVariablePointer] gnuplot-6.0.3+dfsg1/docs/termdoc.c:101:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUL [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/docs/termdoc.c:191:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUL [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/docs/windows/doc2html.c:79:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/docs/windows/doc2html.c:214:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/docs/windows/doc2html.c:139:24: style: Parameter 'title' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/docs/windows/doc2html.c:215:18: style: Variable 'klist' can be declared as pointer to const [constVariablePointer] gnuplot-6.0.3+dfsg1/docs/xref.c:80:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/docs/xref.c:93:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/docs/xref.c:120:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUL [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/docs/xref.c:189:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/docs/xref.c:141:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] gnuplot-6.0.3+dfsg1/docs/xref.c:159:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] gnuplot-6.0.3+dfsg1/docs/xref.c:187:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] gnuplot-6.0.3+dfsg1/docs/xref.c:205:14: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] gnuplot-6.0.3+dfsg1/docs/xref.c:346:11: style:inconclusive: Function 'reftable' argument 6 names different: declaration 'maxrows' definition 'ncolumns'. [funcArgNamesDifferent] gnuplot-6.0.3+dfsg1/docs/xref.h:61:26: note: Function 'reftable' argument 6 names different: declaration 'maxrows' definition 'ncolumns'. gnuplot-6.0.3+dfsg1/docs/xref.c:346:11: note: Function 'reftable' argument 6 names different: declaration 'maxrows' definition 'ncolumns'. gnuplot-6.0.3+dfsg1/docs/xref.c:104:11: style: Variable 'c' can be declared as pointer to const [constVariablePointer] gnuplot-6.0.3+dfsg1/docs/xref.c:177:14: style: Parameter 's' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/docs/xref.c:179:11: style: Variable 'c' can be declared as pointer to const [constVariablePointer] gnuplot-6.0.3+dfsg1/docs/xref.c:181:11: style: Variable 'match' can be declared as pointer to const [constVariablePointer] gnuplot-6.0.3+dfsg1/docs/xref.c:283:29: style: Parameter 'start' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/docs/xref.c:283:42: style: Parameter 'end' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/docs/xref.c:283:53: style: Parameter 'format' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/docs/xref.c:286:11: style: Variable 'c' can be declared as pointer to const [constVariablePointer] gnuplot-6.0.3+dfsg1/docs/xref.c:345:33: style: Parameter 'start' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/docs/xref.c:345:46: style: Parameter 'end' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/docs/xref.c:345:57: style: Parameter 'format' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/docs/xref.c:346:27: style: Parameter 'newcolumn' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/docs/xref.c:349:11: style: Variable 'c' can be declared as pointer to const [constVariablePointer] gnuplot-6.0.3+dfsg1/src/axis.c:434:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/src/axis.c:1726:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable term_lower [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/src/axis.c:1800:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable term_lower [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/src/axis.c:2303:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/src/axis.c:2818:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable term_lower [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/src/axis.c:2842:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable term_lower [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/src/axis.c:2916:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable linked_to_primary [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/src/axis.c:2971:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/src/axis.c:1451:25: style: Redundant condition: def->logscaling. '!A || (A && B)' is equivalent to '!A || B' [redundantCondition] gnuplot-6.0.3+dfsg1/src/axis.c:1474:29: style: Redundant condition: def->logscaling. '!A || (A && B)' is equivalent to '!A || B' [redundantCondition] gnuplot-6.0.3+dfsg1/src/axis.c:1610:15: style: Condition 'level>=TIMELEVEL_MINUTES' is always true [knownConditionTrueFalse] gnuplot-6.0.3+dfsg1/src/axis.c:1596:15: note: Assuming that condition 'level<=TIMELEVEL_SECONDS' is not redundant gnuplot-6.0.3+dfsg1/src/axis.c:1610:15: note: Condition 'level>=TIMELEVEL_MINUTES' is always true gnuplot-6.0.3+dfsg1/src/axis.c:1038:12: style: Redundant initialization for 'mark'. The initialized value is overwritten before it is read. [redundantInitialization] gnuplot-6.0.3+dfsg1/src/axis.c:1025:23: note: mark is initialized gnuplot-6.0.3+dfsg1/src/axis.c:1038:12: note: mark is overwritten gnuplot-6.0.3+dfsg1/src/axis.c:222:37: style:inconclusive: Function 'axis_init' argument 2 names different: declaration 'infinite' definition 'reset_autoscale'. [funcArgNamesDifferent] gnuplot-6.0.3+dfsg1/src/axis.h:464:42: note: Function 'axis_init' argument 2 names different: declaration 'infinite' definition 'reset_autoscale'. gnuplot-6.0.3+dfsg1/src/axis.c:222:37: note: Function 'axis_init' argument 2 names different: declaration 'infinite' definition 'reset_autoscale'. gnuplot-6.0.3+dfsg1/src/axis.c:454:41: style:inconclusive: Function 'axis_check_empty_nonlinear' argument 1 names different: declaration 'this_axis' definition 'axis'. [funcArgNamesDifferent] gnuplot-6.0.3+dfsg1/src/axis.h:468:46: note: Function 'axis_check_empty_nonlinear' argument 1 names different: declaration 'this_axis' definition 'axis'. gnuplot-6.0.3+dfsg1/src/axis.c:454:41: note: Function 'axis_check_empty_nonlinear' argument 1 names different: declaration 'this_axis' definition 'axis'. gnuplot-6.0.3+dfsg1/src/axis.c:1836:33: style:inconclusive: Function 'set_explicit_range' argument 1 names different: declaration 'axis' definition 'this_axis'. [funcArgNamesDifferent] gnuplot-6.0.3+dfsg1/src/axis.h:465:38: note: Function 'set_explicit_range' argument 1 names different: declaration 'axis' definition 'this_axis'. gnuplot-6.0.3+dfsg1/src/axis.c:1836:33: note: Function 'set_explicit_range' argument 1 names different: declaration 'axis' definition 'this_axis'. gnuplot-6.0.3+dfsg1/src/axis.c:1876:29: style:inconclusive: Function 'load_one_range' argument 1 names different: declaration 'axis' definition 'this_axis'. [funcArgNamesDifferent] gnuplot-6.0.3+dfsg1/src/axis.c:191:41: note: Function 'load_one_range' argument 1 names different: declaration 'axis' definition 'this_axis'. gnuplot-6.0.3+dfsg1/src/axis.c:1876:29: note: Function 'load_one_range' argument 1 names different: declaration 'axis' definition 'this_axis'. gnuplot-6.0.3+dfsg1/src/axis.c:1224:14: style: Local variable 'nsteps' shadows outer variable [shadowVariable] gnuplot-6.0.3+dfsg1/src/axis.c:1115:9: note: Shadowed declaration gnuplot-6.0.3+dfsg1/src/axis.c:1224:14: note: Shadow variable gnuplot-6.0.3+dfsg1/src/axis.c:199:31: style: Parameter 'axis' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/src/axis.c:325:29: style: Parameter 'axis' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/src/axis.c:872:18: style: Parameter 'this_axis' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/src/axis.c:1855:30: style: Parameter 'axis' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/src/axis.c:2041:65: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/src/axis.c:2083:33: style: Parameter 'this_axis' can be declared as pointer to const. However it seems that 'tic_count_callback' is a callback function, if 'this_axis' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnuplot-6.0.3+dfsg1/src/axis.c:2072:17: note: You might need to cast the function pointer here gnuplot-6.0.3+dfsg1/src/axis.c:2083:33: note: Parameter 'this_axis' can be declared as pointer to const gnuplot-6.0.3+dfsg1/src/axis.c:2083:64: style: Parameter 'text' can be declared as pointer to const. However it seems that 'tic_count_callback' is a callback function, if 'text' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnuplot-6.0.3+dfsg1/src/axis.c:2072:17: note: You might need to cast the function pointer here gnuplot-6.0.3+dfsg1/src/axis.c:2083:64: note: Parameter 'text' can be declared as pointer to const gnuplot-6.0.3+dfsg1/src/axis.c:2084:62: style: Parameter 'userlabels' can be declared as pointer to const. However it seems that 'tic_count_callback' is a callback function, if 'userlabels' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnuplot-6.0.3+dfsg1/src/axis.c:2072:17: note: You might need to cast the function pointer here gnuplot-6.0.3+dfsg1/src/axis.c:2084:62: note: Parameter 'userlabels' can be declared as pointer to const gnuplot-6.0.3+dfsg1/src/axis.c:2163:30: style: Parameter 'x_axis' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/src/axis.c:2163:44: style: Parameter 'y_axis' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/src/axis.c:2285:44: style: Parameter 'label' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/src/axis.c:2673:11: style: Variable 'secondary' can be declared as pointer to const [constVariablePointer] gnuplot-6.0.3+dfsg1/src/axis.c:1740:31: warning: Expression 'axis_is_second?1:-1' can have a negative value. That is converted to an unsigned value and used in an unsigned calculation. [signConversion] gnuplot-6.0.3+dfsg1/src/axis.c:960:23: style: Variable 'tic' is assigned a value that is never used. [unreadVariable] gnuplot-6.0.3+dfsg1/src/bf_test.c:65:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/src/bf_test.c:80:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/src/bf_test.c:121:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/src/bf_test.c:129:3: warning: If memory allocation fails, then there is a possible null pointer dereference: m [nullPointerOutOfMemory] gnuplot-6.0.3+dfsg1/src/bf_test.c:127:12: note: Assuming allocation function fails gnuplot-6.0.3+dfsg1/src/bf_test.c:127:12: note: Assignment 'm=calloc(xsize,sizeof(m[0]))', assigned value is 0 gnuplot-6.0.3+dfsg1/src/bf_test.c:129:3: note: Null pointer dereference gnuplot-6.0.3+dfsg1/src/bf_test.c:133:6: warning: If memory allocation fails, then there is a possible null pointer dereference: ct [nullPointerOutOfMemory] gnuplot-6.0.3+dfsg1/src/bf_test.c:126:13: note: Assuming allocation function fails gnuplot-6.0.3+dfsg1/src/bf_test.c:126:13: note: Assignment 'ct=calloc(ysize,sizeof(float))', assigned value is 0 gnuplot-6.0.3+dfsg1/src/bf_test.c:133:6: note: Null pointer dereference gnuplot-6.0.3+dfsg1/src/bf_test.c:137:6: warning: If memory allocation fails, then there is a possible null pointer dereference: rt [nullPointerOutOfMemory] gnuplot-6.0.3+dfsg1/src/bf_test.c:125:13: note: Assuming allocation function fails gnuplot-6.0.3+dfsg1/src/bf_test.c:125:13: note: Assignment 'rt=calloc(xsize,sizeof(float))', assigned value is 0 gnuplot-6.0.3+dfsg1/src/bf_test.c:137:6: note: Null pointer dereference gnuplot-6.0.3+dfsg1/src/bf_test.c:139:3: warning: If memory allocation fails, then there is a possible null pointer dereference: m [nullPointerOutOfMemory] gnuplot-6.0.3+dfsg1/src/bf_test.c:127:12: note: Assuming allocation function fails gnuplot-6.0.3+dfsg1/src/bf_test.c:127:12: note: Assignment 'm=calloc(xsize,sizeof(m[0]))', assigned value is 0 gnuplot-6.0.3+dfsg1/src/bf_test.c:139:3: note: Null pointer dereference gnuplot-6.0.3+dfsg1/src/bf_test.c:167:6: warning: If memory allocation fails, then there is a possible null pointer dereference: m [nullPointerOutOfMemory] gnuplot-6.0.3+dfsg1/src/bf_test.c:165:15: note: Assuming allocation function fails gnuplot-6.0.3+dfsg1/src/bf_test.c:165:15: note: Assignment 'm=calloc(xsize,sizeof(m[0]))', assigned value is 0 gnuplot-6.0.3+dfsg1/src/bf_test.c:167:6: note: Null pointer dereference gnuplot-6.0.3+dfsg1/src/bf_test.c:171:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ct [nullPointerOutOfMemory] gnuplot-6.0.3+dfsg1/src/bf_test.c:164:16: note: Assuming allocation function fails gnuplot-6.0.3+dfsg1/src/bf_test.c:164:16: note: Assignment 'ct=calloc(ysize,sizeof(float))', assigned value is 0 gnuplot-6.0.3+dfsg1/src/bf_test.c:171:2: note: Null pointer dereference gnuplot-6.0.3+dfsg1/src/bf_test.c:174:2: warning: If memory allocation fails, then there is a possible null pointer dereference: rt [nullPointerOutOfMemory] gnuplot-6.0.3+dfsg1/src/bf_test.c:163:16: note: Assuming allocation function fails gnuplot-6.0.3+dfsg1/src/bf_test.c:163:16: note: Assignment 'rt=calloc(xsize,sizeof(float))', assigned value is 0 gnuplot-6.0.3+dfsg1/src/bf_test.c:174:2: note: Null pointer dereference gnuplot-6.0.3+dfsg1/src/bf_test.c:176:6: warning: If memory allocation fails, then there is a possible null pointer dereference: m [nullPointerOutOfMemory] gnuplot-6.0.3+dfsg1/src/bf_test.c:165:15: note: Assuming allocation function fails gnuplot-6.0.3+dfsg1/src/bf_test.c:165:15: note: Assignment 'm=calloc(xsize,sizeof(m[0]))', assigned value is 0 gnuplot-6.0.3+dfsg1/src/bf_test.c:176:6: note: Null pointer dereference gnuplot-6.0.3+dfsg1/src/bf_test.c:79:26: portability:inconclusive: Casting from float * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] gnuplot-6.0.3+dfsg1/src/bf_test.c:83:12: portability:inconclusive: Casting from float * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] gnuplot-6.0.3+dfsg1/src/bf_test.c:85:9: portability:inconclusive: Casting from float * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] gnuplot-6.0.3+dfsg1/src/bf_test.c:86:9: portability:inconclusive: Casting from float * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] gnuplot-6.0.3+dfsg1/src/bf_test.c:73:68: style: Parameter 'rt' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/src/bf_test.c:73:79: style: Parameter 'ct' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/src/bitmap.c:1110:34: style: Parameter 'custom_dash_type' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/src/bitmap.c:1253:20: style: Variable 'fillbitmap' can be declared as pointer to const [constVariablePointer] gnuplot-6.0.3+dfsg1/src/bitmap.c:1320:20: style: Variable 'fillbitmap' can be declared as pointer to const [constVariablePointer] gnuplot-6.0.3+dfsg1/src/boundary.c:429:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable linked_to_primary [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/src/boundary.c:1439:14: style: Local variable 'background_fill' shadows outer variable [shadowVariable] gnuplot-6.0.3+dfsg1/src/gadgets.h:512:20: note: Shadowed declaration gnuplot-6.0.3+dfsg1/src/boundary.c:1439:14: note: Shadow variable gnuplot-6.0.3+dfsg1/src/boundary.c:858:23: style: Variable 't' can be declared as pointer to const [constVariablePointer] gnuplot-6.0.3+dfsg1/src/boundary.c:1417:17: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/src/boundary.c:1571:23: style: Variable 't' can be declared as pointer to const [constVariablePointer] gnuplot-6.0.3+dfsg1/src/boundary.c:1118:11: style: Variable 'more' is assigned a value that is never used. [unreadVariable] gnuplot-6.0.3+dfsg1/src/breaders.c:291:26: style:inconclusive: Function 'gd_filetype_function' argument 1 names different: declaration 'filetype' definition 'type'. [funcArgNamesDifferent] gnuplot-6.0.3+dfsg1/src/breaders.c:268:31: note: Function 'gd_filetype_function' argument 1 names different: declaration 'filetype' definition 'type'. gnuplot-6.0.3+dfsg1/src/breaders.c:291:26: note: Function 'gd_filetype_function' argument 1 names different: declaration 'filetype' definition 'type'. gnuplot-6.0.3+dfsg1/src/breaders.c:146:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] gnuplot-6.0.3+dfsg1/src/breaders.c:291:38: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/src/breaders.c:300:27: style: Parameter 'pixmap' can be declared as pointer to const [constParameterPointer] gnuplot-6.0.3+dfsg1/src/breaders.c:64:9: style: struct member 'gen_table4::value' is never used. [unusedStructMember] gnuplot-6.0.3+dfsg1/src/color.c:172:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/src/color.c:578:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/src/color.c:779:26: style: Condition 'is_3d_plot' is always true [knownConditionTrueFalse] gnuplot-6.0.3+dfsg1/src/color.c:773:6: note: Assuming that condition '!is_3d_plot' is not redundant gnuplot-6.0.3+dfsg1/src/color.c:779:26: note: Condition 'is_3d_plot' is always true gnuplot-6.0.3+dfsg1/src/color.c:1173:8: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] gnuplot-6.0.3+dfsg1/src/color.c:1173:8: warning: %x in format string (no. 2) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] gnuplot-6.0.3+dfsg1/src/color.c:1173:8: warning: %x in format string (no. 3) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] gnuplot-6.0.3+dfsg1/src/color.c:1174:8: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] gnuplot-6.0.3+dfsg1/src/color.c:1174:8: warning: %x in format string (no. 2) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] gnuplot-6.0.3+dfsg1/src/color.c:1174:8: warning: %x in format string (no. 3) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] gnuplot-6.0.3+dfsg1/src/color.c:1312:11: style: Variable 'name_str' can be declared as pointer to const [constVariablePointer] gnuplot-6.0.3+dfsg1/src/color.c:1126:13: style: Variable 'p' is assigned a value that is never used. [unreadVariable] gnuplot-6.0.3+dfsg1/src/command.c:1863:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/src/command.c:2084:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/src/command.c:2243:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/src/command.c:2320:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/src/command.c:2334:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/src/command.c:2357:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/src/command.c:2494:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/src/command.c:2756:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/src/command.c:2777:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/src/command.c:3759:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/src/command.c:3840:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/src/command.c:3854:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/src/command.c:3886:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/src/command.c:4120:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gnuplot-6.0.3+dfsg1/src/command.c:2493:9: style: Obsolescent function 'getwd' called. It is recommended to use 'getcwd' instead. [prohibitedgetwdCalled] gnuplot-6.0.3+dfsg1/src/command.c:587:34: style: Redundant condition: lf_head. '!lf_head || (lf_head && lf_head->depthdepth