2025-07-06 14:26 ftp://ftp.de.debian.org/debian/pool/main/w/wcalc/wcalc_2.5.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: 9b11b6b (2025-07-04 16:03:30 +0200) count: 320 320 elapsed-time: 0.7 0.7 head-timing-info: old-timing-info: head results: wcalc-2.5/src/cli/help.c:23:20: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE_VERSION is a macro then please configure it. [unknownMacro] wcalc-2.5/src/common/evalvar.c:25:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable last_answer [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/explain.c:103:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_PREC_MIN [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/explain.c:138:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable consts [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/explain.c:143:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable funcs [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/add_commas.c:25:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dec_delimiter [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/explain.c:44:19: warning: If memory allocation fails, then there is a possible null pointer dereference: mystr [nullPointerOutOfMemory] wcalc-2.5/src/common/explain.c:42:19: note: Assuming allocation function fails wcalc-2.5/src/common/explain.c:42:19: note: Assignment 'mystr=strdup(str)', assigned value is 0 wcalc-2.5/src/common/explain.c:44:19: note: Null pointer dereference wcalc-2.5/src/common/explain.c:45:20: warning: If memory allocation fails, then there is a possible null pointer dereference: mystr [nullPointerOutOfMemory] wcalc-2.5/src/common/explain.c:42:19: note: Assuming allocation function fails wcalc-2.5/src/common/explain.c:42:19: note: Assignment 'mystr=strdup(str)', assigned value is 0 wcalc-2.5/src/common/explain.c:45:20: note: Null pointer dereference wcalc-2.5/src/common/explain.c:69:9: warning: If memory allocation fails, then there is a possible null pointer dereference: add_a_slash [nullPointerOutOfMemory] wcalc-2.5/src/common/explain.c:67:35: note: Assuming allocation function fails wcalc-2.5/src/common/explain.c:67:35: note: Assignment 'add_a_slash=calloc(len,sizeof(char))', assigned value is 0 wcalc-2.5/src/common/explain.c:69:9: note: Null pointer dereference wcalc-2.5/src/common/explain.c:70:9: warning: If memory allocation fails, then there is a possible null pointer dereference: add_a_slash [nullPointerOutOfMemory] wcalc-2.5/src/common/explain.c:67:35: note: Assuming allocation function fails wcalc-2.5/src/common/explain.c:67:35: note: Assignment 'add_a_slash=calloc(len,sizeof(char))', assigned value is 0 wcalc-2.5/src/common/explain.c:70:9: note: Null pointer dereference wcalc-2.5/src/common/explain.c:71:17: warning: If memory allocation fails, then there is a possible null pointer dereference: add_a_slash [nullPointerOutOfMemory] wcalc-2.5/src/common/explain.c:67:35: note: Assuming allocation function fails wcalc-2.5/src/common/explain.c:67:35: note: Assignment 'add_a_slash=calloc(len,sizeof(char))', assigned value is 0 wcalc-2.5/src/common/explain.c:71:17: note: Null pointer dereference wcalc-2.5/src/common/explain.c:100:8: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wcalc-2.5/src/common/explain.c:67:35: note: Assuming allocation function fails wcalc-2.5/src/common/explain.c:67:35: note: Assignment 'add_a_slash=calloc(len,sizeof(char))', assigned value is 0 wcalc-2.5/src/common/explain.c:72:29: note: Calling function 'explain_command', 1st argument 'add_a_slash' value is 0 wcalc-2.5/src/common/explain.c:100:8: note: Null pointer addition wcalc-2.5/src/cli/main.c:621:28: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE_VERSION is a macro then please configure it. [unknownMacro] wcalc-2.5/src/common/historyManager.c:79:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable history_limit [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/historyManager.c:155:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable last_answer [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/files.c:82:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/files.c:93:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/files.c:200:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable standard_output [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/files.c:266:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/files.c:289:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/add_commas.c:29:37: warning:inconclusive: Either the condition 'NULL==input' is redundant or there is possible null pointer dereference: input. [nullPointerRedundantCheck] wcalc-2.5/src/common/add_commas.c:32:14: note: Assuming that condition 'NULL==input' is not redundant wcalc-2.5/src/common/add_commas.c:29:37: note: Null pointer dereference wcalc-2.5/src/common/add_commas.c:22:30: style: Variable 'delimiter' can be declared as pointer to const [constVariablePointer] wcalc-2.5/src/common/add_commas.c:28:18: style: Variable 'exponent_chars' can be declared as pointer to const [constVariablePointer] wcalc-2.5/src/common/iscmd.c:81:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable explanation [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/historyManager.c:71:26: style: Parameter 'expression' can be declared as pointer to const [constParameterPointer] wcalc-2.5/src/common/isconst.c:126:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable explanation [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/isfunc.c:92:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable explanation [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/calculator.c:834:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_FIG_ROUNDING_INDICATION [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/calculator.c:960:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_EPSILON [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/conversion.c:948:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/conversion.c:971:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/conversion.c:1010:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/conversion.c:1030:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEMPERATURE_C [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/number.c:78:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable numberstruct [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/number.c:108:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable numberstruct [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/number.c:132:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/number.c:215:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/number.c:230:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/number.c:255:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/number.c:467:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dec_delimiter [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/number.c:481:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MANT_DIG [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/number.c:596:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/number.c:860:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/files.c:242:29: style: Redundant condition: errstring. '!errstring || (errstring && !strlen(errstring))' is equivalent to '!errstring || !strlen(errstring)' [redundantCondition] wcalc-2.5/src/common/number.c:467:18: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] wcalc-2.5/src/common/number.c:464:29: note: Assuming allocation function fails wcalc-2.5/src/common/number.c:464:29: note: Assignment 'str=malloc(1024)', assigned value is 0 wcalc-2.5/src/common/number.c:467:18: note: Null pointer dereference wcalc-2.5/src/common/files.c:50:13: warning: If memory allocation fails, then there is a possible null pointer dereference: dest [nullPointerOutOfMemory] wcalc-2.5/src/common/files.c:315:30: note: Assuming allocation function fails wcalc-2.5/src/common/files.c:315:30: note: Assignment 'cptr=malloc(len)', assigned value is 0 wcalc-2.5/src/common/files.c:316:28: note: Calling function 'tristrncat', 1st argument 'cptr' value is 0 wcalc-2.5/src/common/files.c:50:13: note: Null pointer dereference wcalc-2.5/src/common/files.c:52:13: warning: If memory allocation fails, then there is a possible null pointer dereference: dest [nullPointerOutOfMemory] wcalc-2.5/src/common/files.c:315:30: note: Assuming allocation function fails wcalc-2.5/src/common/files.c:315:30: note: Assignment 'cptr=malloc(len)', assigned value is 0 wcalc-2.5/src/common/files.c:316:28: note: Calling function 'tristrncat', 1st argument 'cptr' value is 0 wcalc-2.5/src/common/files.c:52:13: note: Null pointer dereference wcalc-2.5/src/common/files.c:55:13: warning: If memory allocation fails, then there is a possible null pointer dereference: dest [nullPointerOutOfMemory] wcalc-2.5/src/common/files.c:315:30: note: Assuming allocation function fails wcalc-2.5/src/common/files.c:315:30: note: Assignment 'cptr=malloc(len)', assigned value is 0 wcalc-2.5/src/common/files.c:316:28: note: Calling function 'tristrncat', 1st argument 'cptr' value is 0 wcalc-2.5/src/common/files.c:52:21: note: Assuming condition is false wcalc-2.5/src/common/files.c:55:13: note: Null pointer dereference wcalc-2.5/src/common/files.c:82:21: warning: If memory allocation fails, then there is a possible null pointer dereference: filename [nullPointerOutOfMemory] wcalc-2.5/src/common/files.c:80:22: note: Assuming allocation function fails wcalc-2.5/src/common/files.c:80:22: note: Assignment 'filename=malloc(sizeof(char)*namelen+1)', assigned value is 0 wcalc-2.5/src/common/files.c:82:21: note: Null pointer dereference wcalc-2.5/src/common/files.c:132:45: warning: If memory allocation fails, then there is a possible null pointer dereference: cptr [nullPointerOutOfMemory] wcalc-2.5/src/common/files.c:127:30: note: Assuming allocation function fails wcalc-2.5/src/common/files.c:127:30: note: Assignment 'cptr=malloc(len)', assigned value is 0 wcalc-2.5/src/common/files.c:132:45: note: Null pointer dereference wcalc-2.5/src/common/files.c:133:38: warning: If memory allocation fails, then there is a possible null pointer dereference: cptr [nullPointerOutOfMemory] wcalc-2.5/src/common/files.c:127:30: note: Assuming allocation function fails wcalc-2.5/src/common/files.c:127:30: note: Assignment 'cptr=malloc(len)', assigned value is 0 wcalc-2.5/src/common/files.c:133:38: note: Null pointer dereference wcalc-2.5/src/common/number_formatting.c:89:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable never [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/files.c:143:49: warning: If memory allocation fails, then there is a possible null pointer dereference: cptr [nullPointerOutOfMemory] wcalc-2.5/src/common/files.c:141:32: note: Assuming allocation function fails wcalc-2.5/src/common/files.c:141:32: note: Assignment 'cptr=malloc(len)', assigned value is 0 wcalc-2.5/src/common/files.c:143:49: note: Null pointer dereference wcalc-2.5/src/common/files.c:144:42: warning: If memory allocation fails, then there is a possible null pointer dereference: cptr [nullPointerOutOfMemory] wcalc-2.5/src/common/files.c:141:32: note: Assuming allocation function fails wcalc-2.5/src/common/files.c:141:32: note: Assignment 'cptr=malloc(len)', assigned value is 0 wcalc-2.5/src/common/files.c:144:42: note: Null pointer dereference wcalc-2.5/src/common/files.c:320:45: warning: If memory allocation fails, then there is a possible null pointer dereference: cptr [nullPointerOutOfMemory] wcalc-2.5/src/common/files.c:315:30: note: Assuming allocation function fails wcalc-2.5/src/common/files.c:315:30: note: Assignment 'cptr=malloc(len)', assigned value is 0 wcalc-2.5/src/common/files.c:320:45: note: Null pointer dereference wcalc-2.5/src/common/files.c:321:38: warning: If memory allocation fails, then there is a possible null pointer dereference: cptr [nullPointerOutOfMemory] wcalc-2.5/src/common/files.c:315:30: note: Assuming allocation function fails wcalc-2.5/src/common/files.c:315:30: note: Assignment 'cptr=malloc(len)', assigned value is 0 wcalc-2.5/src/common/files.c:321:38: note: Null pointer dereference wcalc-2.5/src/common/files.c:331:49: warning: If memory allocation fails, then there is a possible null pointer dereference: cptr [nullPointerOutOfMemory] wcalc-2.5/src/common/files.c:329:32: note: Assuming allocation function fails wcalc-2.5/src/common/files.c:329:32: note: Assignment 'cptr=malloc(len)', assigned value is 0 wcalc-2.5/src/common/files.c:331:49: note: Null pointer dereference wcalc-2.5/src/common/files.c:332:42: warning: If memory allocation fails, then there is a possible null pointer dereference: cptr [nullPointerOutOfMemory] wcalc-2.5/src/common/files.c:329:32: note: Assuming allocation function fails wcalc-2.5/src/common/files.c:329:32: note: Assignment 'cptr=malloc(len)', assigned value is 0 wcalc-2.5/src/common/files.c:332:42: note: Null pointer dereference wcalc-2.5/src/common/number.c:462:11: style: Variable 'dec' can be declared as pointer to const [constVariablePointer] wcalc-2.5/src/common/number.c:49:14: error: Uninitialized variable: temp [uninitvar] wcalc-2.5/src/common/files.c:160:19: style: Variable 'history_entry' can be declared as pointer to const [constVariablePointer] wcalc-2.5/src/common/extract_vars.c:42:19: warning: Either the condition 'curs' is redundant or there is possible null pointer dereference: curs. [nullPointerRedundantCheck] wcalc-2.5/src/common/extract_vars.c:34:24: note: Assuming that condition 'curs' is not redundant wcalc-2.5/src/common/extract_vars.c:42:19: note: Null pointer dereference wcalc-2.5/src/common/extract_vars.c:48:15: warning: Either the condition 'curs' is redundant or there is possible null pointer dereference: curs. [nullPointerRedundantCheck] wcalc-2.5/src/common/extract_vars.c:25:16: note: Assuming that condition 'curs' is not redundant wcalc-2.5/src/common/extract_vars.c:48:15: note: Null pointer dereference wcalc-2.5/src/common/extract_vars.c:72:23: style: Variable 'peekstr' can be declared as pointer to const [constVariablePointer] wcalc-2.5/src/common/list.c:100:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ch [nullPointerOutOfMemory] wcalc-2.5/src/common/list.c:99:27: note: Assuming allocation function fails wcalc-2.5/src/common/list.c:99:27: note: Assignment 'ch=calloc(1,sizeof(struct cleanup))', assigned value is 0 wcalc-2.5/src/common/list.c:100:5: note: Null pointer dereference wcalc-2.5/src/common/list.c:101:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ch [nullPointerOutOfMemory] wcalc-2.5/src/common/list.c:99:27: note: Assuming allocation function fails wcalc-2.5/src/common/list.c:99:27: note: Assignment 'ch=calloc(1,sizeof(struct cleanup))', assigned value is 0 wcalc-2.5/src/common/list.c:101:5: note: Null pointer dereference wcalc-2.5/src/common/list.c:123:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ch [nullPointerOutOfMemory] wcalc-2.5/src/common/list.c:122:26: note: Assuming allocation function fails wcalc-2.5/src/common/list.c:122:26: note: Assignment 'ch=calloc(1,sizeof(struct cleanup))', assigned value is 0 wcalc-2.5/src/common/list.c:123:5: note: Null pointer dereference wcalc-2.5/src/common/list.c:124:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ch [nullPointerOutOfMemory] wcalc-2.5/src/common/list.c:122:26: note: Assuming allocation function fails wcalc-2.5/src/common/list.c:122:26: note: Assignment 'ch=calloc(1,sizeof(struct cleanup))', assigned value is 0 wcalc-2.5/src/common/list.c:124:5: note: Null pointer dereference wcalc-2.5/src/common/list.c:415:27: style: Parameter 'item' can be declared as pointer to const [constParameterPointer] wcalc-2.5/src/common/string_manip.c:80:18: style: Variable 'exponent_chars' can be declared as pointer to const [constVariablePointer] wcalc-2.5/src/common/string_manip.c:81:18: style: Variable 'base_chars' can be declared as pointer to const [constVariablePointer] wcalc-2.5/src/common/variables.c:257:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable variable_t [valueFlowBailoutIncompleteVar] wcalc-2.5/src/common/variables.c:299:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable variable_t [valueFlowBailoutIncompleteVar] wcalc-2.5/src/gui/simpleCalc.c:22:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable wplus [valueFlowBailoutIncompleteVar] wcalc-2.5/src/gui/simpleCalc.c:51:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable in_thou_delimiter [valueFlowBailoutIncompleteVar] wcalc-2.5/src/gui/simpleCalc.c:140:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable last_answer [valueFlowBailoutIncompleteVar] wcalc-2.5/src/gui/simpleCalc.c:151:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable last_answer [valueFlowBailoutIncompleteVar] wcalc-2.5/src/gui/simpleCalc.c:115:16: warning: If memory allocation fails, then there is a possible null pointer dereference: newStr [nullPointerOutOfMemory] wcalc-2.5/src/gui/simpleCalc.c:114:22: note: Assuming allocation function fails wcalc-2.5/src/gui/simpleCalc.c:114:22: note: Assignment 'newStr=malloc(expStrLen+2)', assigned value is 0 wcalc-2.5/src/gui/simpleCalc.c:115:16: note: Null pointer dereference wcalc-2.5/src/gui/simpleCalc.c:118:16: warning: If memory allocation fails, then there is a possible null pointer dereference: newStr [nullPointerOutOfMemory] wcalc-2.5/src/gui/simpleCalc.c:117:22: note: Assuming allocation function fails wcalc-2.5/src/gui/simpleCalc.c:117:22: note: Assignment 'newStr=malloc(2)', assigned value is 0 wcalc-2.5/src/gui/simpleCalc.c:118:16: note: Null pointer dereference wcalc-2.5/src/common/variables.c:261:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: cursor [nullPointerOutOfMemory] wcalc-2.5/src/common/variables.c:257:24: note: Assuming allocation function fails wcalc-2.5/src/common/variables.c:257:24: note: Assignment 'cursor=calloc(sizeof(variable_t),1)', assigned value is 0 wcalc-2.5/src/common/variables.c:261:9: note: Null pointer dereference wcalc-2.5/src/common/variables.c:304:10: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: cursor [nullPointerOutOfMemory] wcalc-2.5/src/common/variables.c:299:24: note: Assuming allocation function fails wcalc-2.5/src/common/variables.c:299:24: note: Assignment 'cursor=calloc(1,sizeof(variable_t))', assigned value is 0 wcalc-2.5/src/common/variables.c:304:10: note: Null pointer dereference wcalc-2.5/src/common/variables.c:96:18: style: Variable 'cursor' can be declared as pointer to const [constVariablePointer] wcalc-2.5/src/common/variables.c:186:18: style: Variable 'cursor' can be declared as pointer to const [constVariablePointer] ../../../svn/src/common/parser.c:1233:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ../../../svn/src/common/parser.c:1259:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ../../../svn/src/common/parser.c:1539:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ../../../svn/src/common/parser.c:1613:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ../../../svn/src/common/scanner.c:1965:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] ../../../svn/src/common/scanner.c:3762:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] ../../../svn/src/common/scanner.c:4056:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] ../../../svn/src/common/scanner.c:4294:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ../../../svn/src/common/parser.y:204:17: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] ../../../svn/src/common/parser.y:354:17: warning: If memory allocation fails, then there is a possible null pointer dereference: open_file [nullPointerOutOfMemory] ../../../svn/src/common/parser.y:353:20: note: Assuming allocation function fails ../../../svn/src/common/parser.y:353:20: note: Assignment 'open_file=malloc(len)', assigned value is 0 ../../../svn/src/common/parser.y:354:17: note: Null pointer dereference ../../../svn/src/common/parser.y:356:16: warning: If memory allocation fails, then there is a possible null pointer dereference: open_file [nullPointerOutOfMemory] ../../../svn/src/common/parser.y:353:20: note: Assuming allocation function fails ../../../svn/src/common/parser.y:353:20: note: Assignment 'open_file=malloc(len)', assigned value is 0 ../../../svn/src/common/parser.y:356:16: note: Null pointer dereference ../../../svn/src/common/parser.y:357:7: warning: If memory allocation fails, then there is a possible null pointer dereference: open_file [nullPointerOutOfMemory] ../../../svn/src/common/parser.y:353:20: note: Assuming allocation function fails ../../../svn/src/common/parser.y:353:20: note: Assignment 'open_file=malloc(len)', assigned value is 0 ../../../svn/src/common/parser.y:357:7: note: Null pointer dereference ../../../svn/src/common/parser.y:358:3: warning: If memory allocation fails, then there is a possible null pointer dereference: open_file [nullPointerOutOfMemory] ../../../svn/src/common/parser.y:353:20: note: Assuming allocation function fails ../../../svn/src/common/parser.y:353:20: note: Assignment 'open_file=malloc(len)', assigned value is 0 ../../../svn/src/common/parser.y:357:20: note: Assuming condition is false ../../../svn/src/common/parser.y:358:3: note: Null pointer dereference ../../../svn/src/common/parser.y:360:13: warning: If memory allocation fails, then there is a possible null pointer dereference: open_file [nullPointerOutOfMemory] ../../../svn/src/common/parser.y:353:20: note: Assuming allocation function fails ../../../svn/src/common/parser.y:353:20: note: Assignment 'open_file=malloc(len)', assigned value is 0 ../../../svn/src/common/parser.y:357:20: note: Assuming condition is false ../../../svn/src/common/parser.y:360:13: note: Null pointer dereference ../../../svn/src/common/parser.c:1231:55: style: Parameter 'yytop' can be declared as pointer to const [constParameterPointer] ../../../svn/src/common/parser.c:1254:32: style: Parameter 'yyssp' can be declared as pointer to const [constParameterPointer] ../../../svn/src/common/scanner.l:266:18: warning: If memory allocation fails, then there is a possible null pointer dereference: returnme [nullPointerOutOfMemory] ../../../svn/src/common/scanner.l:264:22: note: Assuming allocation function fails ../../../svn/src/common/scanner.l:264:22: note: Assignment 'returnme=strdup(yytext+i)', assigned value is 0 ../../../svn/src/common/scanner.l:266:18: note: Null pointer dereference ../../../svn/src/common/scanner.l:267:20: warning: If memory allocation fails, then there is a possible null pointer dereference: returnme [nullPointerOutOfMemory] ../../../svn/src/common/scanner.l:264:22: note: Assuming allocation function fails ../../../svn/src/common/scanner.l:264:22: note: Assignment 'returnme=strdup(yytext+i)', assigned value is 0 ../../../svn/src/common/scanner.l:267:20: note: Null pointer dereference ../../../svn/src/common/scanner.l:268:9: warning: If memory allocation fails, then there is a possible null pointer dereference: returnme [nullPointerOutOfMemory] ../../../svn/src/common/scanner.l:264:22: note: Assuming allocation function fails ../../../svn/src/common/scanner.l:264:22: note: Assignment 'returnme=strdup(yytext+i)', assigned value is 0 ../../../svn/src/common/scanner.l:268:9: note: Null pointer dereference ../../../svn/src/common/scanner.l:371:18: warning: If memory allocation fails, then there is a possible null pointer dereference: returnme [nullPointerOutOfMemory] ../../../svn/src/common/scanner.l:369:22: note: Assuming allocation function fails ../../../svn/src/common/scanner.l:369:22: note: Assignment 'returnme=strdup(yytext+i)', assigned value is 0 ../../../svn/src/common/scanner.l:371:18: note: Null pointer dereference ../../../svn/src/common/scanner.l:372:20: warning: If memory allocation fails, then there is a possible null pointer dereference: returnme [nullPointerOutOfMemory] ../../../svn/src/common/scanner.l:369:22: note: Assuming allocation function fails ../../../svn/src/common/scanner.l:369:22: note: Assignment 'returnme=strdup(yytext+i)', assigned value is 0 ../../../svn/src/common/scanner.l:372:20: note: Null pointer dereference ../../../svn/src/common/scanner.l:373:9: warning: If memory allocation fails, then there is a possible null pointer dereference: returnme [nullPointerOutOfMemory] ../../../svn/src/common/scanner.l:369:22: note: Assuming allocation function fails ../../../svn/src/common/scanner.l:369:22: note: Assignment 'returnme=strdup(yytext+i)', assigned value is 0 ../../../svn/src/common/scanner.l:373:9: note: Null pointer dereference ../../../svn/src/common/scanner.l:1315:5: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] ../../../svn/src/common/scanner.l:1314:25: note: Assuming allocation function fails ../../../svn/src/common/scanner.l:1314:25: note: Assignment 'temp=strdup(yytext+1)', assigned value is 0 ../../../svn/src/common/scanner.l:1315:5: note: Null pointer dereference ../../../svn/src/common/scanner.c:3728:27: warning: Possible null pointer dereference: b [nullPointer] ../../../svn/src/common/scanner.c:3725:24: note: Assignment 'b=(yy_buffer_stack)?(yy_buffer_stack)[yy_buffer_stack_top]:NULL', assigned value is 0 ../../../svn/src/common/scanner.c:3728:27: note: Null pointer dereference ../../../svn/src/common/scanner.c:3730:9: warning: Possible null pointer dereference: b [nullPointer] ../../../svn/src/common/scanner.c:3725:24: note: Assignment 'b=(yy_buffer_stack)?(yy_buffer_stack)[yy_buffer_stack_top]:NULL', assigned value is 0 ../../../svn/src/common/scanner.c:3730:9: note: Null pointer dereference ../../../svn/src/common/scanner.c:4060:2: warning: Possible null pointer dereference: b [nullPointer] ../../../svn/src/common/scanner.c:3949:17: note: Calling function 'yy_init_buffer', 1st argument '(yy_buffer_stack)?(yy_buffer_stack)[yy_buffer_stack_top]:NULL' value is 0 ../../../svn/src/common/scanner.c:4060:2: note: Null pointer dereference ../../../svn/src/common/scanner.c:4061:2: warning: Possible null pointer dereference: b [nullPointer] ../../../svn/src/common/scanner.c:3949:17: note: Calling function 'yy_init_buffer', 1st argument '(yy_buffer_stack)?(yy_buffer_stack)[yy_buffer_stack_top]:NULL' value is 0 ../../../svn/src/common/scanner.c:4061:2: note: Null pointer dereference ../../../svn/src/common/scanner.c:3762:3: style: Redundant initialization for 'c'. The initialized value is overwritten before it is read. [redundantInitialization] ../../../svn/src/common/scanner.c:3762:3: note: c is initialized ../../../svn/src/common/scanner.c:3762:3: note: c is overwritten ../../../svn/src/common/scanner.l:97:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:104:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:109:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:122:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:135:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:148:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:164:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:174:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:184:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:194:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:207:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:212:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:217:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:230:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:235:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:240:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:245:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:250:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:255:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:277:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:289:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:294:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:299:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:304:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:314:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:324:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:334:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:344:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:349:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:361:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:381:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:394:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:407:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:412:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:417:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:445:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:457:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:462:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:483:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:488:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:516:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:526:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:537:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:549:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:558:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:567:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:574:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:581:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:588:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:595:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:602:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:609:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:616:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:623:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:630:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:637:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:644:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:651:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:666:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:673:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:680:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:687:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:694:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:701:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:708:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:715:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:722:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:729:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:736:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:743:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:750:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:757:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:764:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:771:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:778:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:785:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:792:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:799:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:806:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:813:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:820:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:827:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:834:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:841:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:848:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:855:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:862:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:869:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:876:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:884:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:892:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:900:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:907:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:912:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:917:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:922:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:927:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:932:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:939:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:944:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:949:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:954:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:959:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:964:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:969:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:974:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:979:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:984:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:989:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:994:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:999:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1004:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1009:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1014:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1019:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1024:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1029:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1034:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1039:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1044:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1049:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1054:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1059:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1064:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1069:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1074:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1079:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1084:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1091:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1098:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1103:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1108:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1113:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1118:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1123:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1128:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1133:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1138:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1143:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1148:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1153:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1158:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1163:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1168:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1173:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1178:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1183:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1188:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1193:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1198:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1203:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1208:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1213:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1218:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1223:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1228:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1233:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1238:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1243:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1248:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1253:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1258:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1263:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1268:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1273:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1278:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1283:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1288:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1293:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1298:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1303:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1308:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1320:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1388:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1411:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1448:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1476:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.l:1548:2: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] ../../../svn/src/common/scanner.c:3838:59: style:inconclusive: Function 'yy_try_NUL_trans' argument 1 names different: declaration 'current_state' definition 'yy_current_state'. [funcArgNamesDifferent] ../../../svn/src/common/scanner.c:360:54: note: Function 'yy_try_NUL_trans' argument 1 names different: declaration 'current_state' definition 'yy_current_state'. ../../../svn/src/common/scanner.c:3838:59: note: Function 'yy_try_NUL_trans' argument 1 names different: declaration 'current_state' definition 'yy_current_state'. ../../../svn/src/common/scanner.c:4245:48: style:inconclusive: Function 'yy_scan_string' argument 1 names different: declaration 'yy_str' definition 'yystr'. [funcArgNamesDifferent] ../../../svn/src/common/scanner.c:310:47: note: Function 'yy_scan_string' argument 1 names different: declaration 'yy_str' definition 'yystr'. ../../../svn/src/common/scanner.c:4245:48: note: Function 'yy_scan_string' argument 1 names different: declaration 'yy_str' definition 'yystr'. ../../../svn/src/common/scanner.c:4258:48: style:inconclusive: Function 'yy_scan_bytes' argument 1 names different: declaration 'bytes' definition 'yybytes'. [funcArgNamesDifferent] ../../../svn/src/common/scanner.c:311:46: note: Function 'yy_scan_bytes' argument 1 names different: declaration 'bytes' definition 'yybytes'. ../../../svn/src/common/scanner.c:4258:48: note: Function 'yy_scan_bytes' argument 1 names different: declaration 'bytes' definition 'yybytes'. ../../../svn/src/common/scanner.c:4258:62: style:inconclusive: Function 'yy_scan_bytes' argument 2 names different: declaration 'len' definition '_yybytes_len'. [funcArgNamesDifferent] ../../../svn/src/common/scanner.c:311:56: note: Function 'yy_scan_bytes' argument 2 names different: declaration 'len' definition '_yybytes_len'. ../../../svn/src/common/scanner.c:4258:62: note: Function 'yy_scan_bytes' argument 2 names different: declaration 'len' definition '_yybytes_len'. ../../../svn/src/common/scanner.c:4390:24: style:inconclusive: Function 'yyset_debug' argument 1 names different: declaration 'debug_flag' definition 'bdebug'. [funcArgNamesDifferent] ../../../svn/src/common/scanner.c:1788:23: note: Function 'yyset_debug' argument 1 names different: declaration 'debug_flag' definition 'bdebug'. ../../../svn/src/common/scanner.c:4390:24: note: Function 'yyset_debug' argument 1 names different: declaration 'debug_flag' definition 'bdebug'. ../../../svn/src/common/scanner.c:3675:17: style: Variable 'source' can be declared as pointer to const [constVariablePointer] ../../../svn/src/common/scanner.c:4258:48: style: Parameter 'yybytes' can be declared as pointer to const [constParameterPointer] ../../../svn/src/common/scanner.c:4292:43: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] ../../../svn/src/common/scanner.l:422:11: style: Variable 'unitone' can be declared as pointer to const [constVariablePointer] wcalc-2.5/src/common/calculator.c:256:28: style: Condition 'str[i]' is always true [knownConditionTrueFalse] wcalc-2.5/src/common/calculator.c:161:32: warning: If memory allocation fails, then there is a possible null pointer dereference: sanitized [nullPointerOutOfMemory] wcalc-2.5/src/common/calculator.c:142:31: note: Assuming allocation function fails wcalc-2.5/src/common/calculator.c:142:17: note: Assignment 'sanitized=(char*)strdup(pthis)', assigned value is 0 wcalc-2.5/src/common/calculator.c:161:32: note: Null pointer dereference wcalc-2.5/src/common/calculator.c:337:12: warning: If memory allocation fails, then there is a possible null pointer dereference: var [nullPointerOutOfMemory] wcalc-2.5/src/common/calculator.c:336:20: note: Assuming allocation function fails wcalc-2.5/src/common/calculator.c:336:20: note: Assignment 'var=malloc((i+1)*sizeof(char))', assigned value is 0 wcalc-2.5/src/common/calculator.c:337:12: note: Null pointer dereference wcalc-2.5/src/common/calculator.c:338:5: warning: If memory allocation fails, then there is a possible null pointer dereference: var [nullPointerOutOfMemory] wcalc-2.5/src/common/calculator.c:336:20: note: Assuming allocation function fails wcalc-2.5/src/common/calculator.c:336:20: note: Assignment 'var=malloc((i+1)*sizeof(char))', assigned value is 0 wcalc-2.5/src/common/calculator.c:338:5: note: Null pointer dereference wcalc-2.5/src/common/calculator.c:558:25: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: this_error [nullPointerOutOfMemory] wcalc-2.5/src/common/calculator.c:556:24: note: Assuming allocation function fails wcalc-2.5/src/common/calculator.c:556:24: note: Assignment 'this_error=calloc(strlen(err_fmt)+1000,sizeof(char))', assigned value is 0 wcalc-2.5/src/common/calculator.c:558:25: note: Null pointer dereference wcalc-2.5/src/common/calculator.c:570:22: warning: If memory allocation fails, then there is a possible null pointer dereference: tempstring [nullPointerOutOfMemory] wcalc-2.5/src/common/calculator.c:567:24: note: Assuming allocation function fails wcalc-2.5/src/common/calculator.c:567:24: note: Assignment 'tempstring=calloc(len,sizeof(char))', assigned value is 0 wcalc-2.5/src/common/calculator.c:570:22: note: Null pointer dereference wcalc-2.5/src/common/calculator.c:571:29: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: this_error [nullPointerOutOfMemory] wcalc-2.5/src/common/calculator.c:556:24: note: Assuming allocation function fails wcalc-2.5/src/common/calculator.c:556:24: note: Assignment 'this_error=calloc(strlen(err_fmt)+1000,sizeof(char))', assigned value is 0 wcalc-2.5/src/common/calculator.c:571:29: note: Null pointer dereference wcalc-2.5/src/common/calculator.c:573:22: warning: If memory allocation fails, then there is a possible null pointer dereference: tempstring [nullPointerOutOfMemory] wcalc-2.5/src/common/calculator.c:567:24: note: Assuming allocation function fails wcalc-2.5/src/common/calculator.c:567:24: note: Assignment 'tempstring=calloc(len,sizeof(char))', assigned value is 0 wcalc-2.5/src/common/calculator.c:573:22: note: Null pointer dereference wcalc-2.5/src/common/calculator.c:573:60: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: this_error [nullPointerOutOfMemory] wcalc-2.5/src/common/calculator.c:556:24: note: Assuming allocation function fails wcalc-2.5/src/common/calculator.c:556:24: note: Assignment 'this_error=calloc(strlen(err_fmt)+1000,sizeof(char))', assigned value is 0 wcalc-2.5/src/common/calculator.c:573:60: note: Null pointer dereference wcalc-2.5/src/common/calculator.c:578:22: warning: If memory allocation fails, then there is a possible null pointer dereference: tempstring [nullPointerOutOfMemory] wcalc-2.5/src/common/calculator.c:567:24: note: Assuming allocation function fails wcalc-2.5/src/common/calculator.c:567:24: note: Assignment 'tempstring=calloc(len,sizeof(char))', assigned value is 0 wcalc-2.5/src/common/calculator.c:578:22: note: Null pointer dereference wcalc-2.5/src/common/calculator.c:579:22: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: this_error [nullPointerOutOfMemory] wcalc-2.5/src/common/calculator.c:556:24: note: Assuming allocation function fails wcalc-2.5/src/common/calculator.c:556:24: note: Assignment 'this_error=calloc(strlen(err_fmt)+1000,sizeof(char))', assigned value is 0 wcalc-2.5/src/common/calculator.c:579:22: note: Null pointer dereference wcalc-2.5/src/common/calculator.c:581:22: warning: If memory allocation fails, then there is a possible null pointer dereference: tempstring [nullPointerOutOfMemory] wcalc-2.5/src/common/calculator.c:567:24: note: Assuming allocation function fails wcalc-2.5/src/common/calculator.c:567:24: note: Assignment 'tempstring=calloc(len,sizeof(char))', assigned value is 0 wcalc-2.5/src/common/calculator.c:581:22: note: Null pointer dereference wcalc-2.5/src/common/calculator.c:581:45: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: this_error [nullPointerOutOfMemory] wcalc-2.5/src/common/calculator.c:556:24: note: Assuming allocation function fails wcalc-2.5/src/common/calculator.c:556:24: note: Assignment 'this_error=calloc(strlen(err_fmt)+1000,sizeof(char))', assigned value is 0 wcalc-2.5/src/common/calculator.c:581:45: note: Null pointer dereference wcalc-2.5/src/common/calculator.c:361:10: style: Redundant initialization for 'curs'. The initialized value is overwritten before it is read. [redundantInitialization] wcalc-2.5/src/common/calculator.c:349:24: note: curs is initialized wcalc-2.5/src/common/calculator.c:361:10: note: curs is overwritten wcalc-2.5/src/common/calculator.c:265:23: style: Variable 'tailquote' can be declared as pointer to const [constVariablePointer] wcalc-2.5/src/common/calculator.c:320:21: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] wcalc-2.5/src/common/calculator.c:402:19: style: Variable 'fromstring' can be declared as pointer to const [constVariablePointer] wcalc-2.5/src/common/calculator.c:471:22: style: Parameter 'instring' can be declared as pointer to const [constParameterPointer] wcalc-2.5/src/common/calculator.c:506:15: style: Variable 'oldVarname' can be declared as pointer to const [constVariablePointer] wcalc-2.5/src/common/calculator.c:48:12: warning:inconclusive: Found calculation inside sizeof(). [sizeofCalculation] wcalc-2.5/src/common/calculator.c:54:12: warning:inconclusive: Found calculation inside sizeof(). [sizeofCalculation] wcalc-2.5/src/common/calculator.c:60:12: warning:inconclusive: Found calculation inside sizeof(). [sizeofCalculation] diff: 2.17.0 wcalc-2.5/src/common/explain.c:100:8: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wcalc-2.5/src/common/explain.c:67:35: note: Assuming allocation function fails wcalc-2.5/src/common/explain.c:67:35: note: Assignment 'add_a_slash=calloc(len,sizeof(char))', assigned value is 0 wcalc-2.5/src/common/explain.c:72:29: note: Calling function 'explain_command', 1st argument 'add_a_slash' value is 0 wcalc-2.5/src/common/explain.c:100:8: note: Null pointer addition head wcalc-2.5/src/common/explain.c:100:8: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wcalc-2.5/src/common/explain.c:67:35: note: Assuming allocation function fails wcalc-2.5/src/common/explain.c:67:35: note: Assignment 'add_a_slash=calloc(len,sizeof(char))', assigned value is 0 wcalc-2.5/src/common/explain.c:72:29: note: Calling function 'explain_command', 1st argument 'add_a_slash' value is 0 wcalc-2.5/src/common/explain.c:100:8: note: Null pointer addition DONE