2024-03-25 13:33 ftp://ftp.de.debian.org/debian/pool/main/r/readstat/readstat_1.1.9.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=zlib --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.5.0-25-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.55 compiler: g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 cppcheck: head 2.13.0 head-info: fd7bd50 (2024-03-25 07:57:46 +0100) count: 447 360 elapsed-time: 20.2 20.2 head-timing-info: old-timing-info: head results: ReadStat-1.1.9/src/CKHashTable.c:130:33: portability:inconclusive: Casting from float * to const char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] ReadStat-1.1.9/src/CKHashTable.c:134:33: portability:inconclusive: Casting from float * to const char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] ReadStat-1.1.9/src/CKHashTable.c:139:33: portability:inconclusive: Casting from double * to const char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] ReadStat-1.1.9/src/CKHashTable.c:143:33: portability:inconclusive: Casting from double * to const char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] ReadStat-1.1.9/src/CKHashTable.c:123:19: style: Variable 'k' can be declared as const array [constVariable] ReadStat-1.1.9/src/CKHashTable.c:163:15: style: Variable 'this_key' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/CKHashTable.c:228:15: style: Variable 'this_key' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/CKHashTable.c:300:19: style: Variable 'this_key' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/bin/extract_metadata.c:74:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/extract_metadata.c:256:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/extract_metadata.c:324:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/extract_metadata.c:368:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/extract_metadata.c:383:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/extract_metadata.c:403:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/extract_metadata.c:437:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/extract_metadata.c:93:11: style: Variable 'pattern' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/bin/extract_metadata.c:297:11: style: Variable 'pattern' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/bin/extract_metadata.c:433:50: style: Parameter 'output' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/bin/extract_metadata.c:87:25: warning: Size of pointer 'prefix' used instead of size of its data. [pointerSize] ReadStat-1.1.9/src/bin/read_csv/json_metadata.c:20:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/json_metadata.c:78:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/json_metadata.c:161:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/json_metadata.c:181:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/json_metadata.c:191:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/json_metadata.c:234:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/json_metadata.c:243:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/json_metadata.c:33:44: style: Parameter 'tok' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/bin/read_csv/json_metadata.c:51:13: style: Variable 'tok' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/bin/read_csv/json_metadata.c:60:13: style: Variable 'token' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/bin/read_csv/json_metadata.c:102:13: style: Variable 'tok' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/bin/read_csv/json_metadata.c:116:77: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/bin/read_csv/json_metadata.c:173:13: style: Variable 'decimals_tok' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/bin/read_csv/json_metadata.c:178:9: style: Variable 'buf' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/bin/read_csv/json_metadata.c:227:57: style: Parameter 'token' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/bin/read_csv/mod_csv.c:73:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/mod_dta.c:31:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/mod_dta.c:41:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/mod_dta.c:63:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/mod_dta.c:92:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/mod_dta.c:143:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/mod_dta.c:177:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/mod_dta.c:227:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/mod_dta.c:256:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/mod_dta.c:297:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/mod_dta.c:319:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/mod_dta.c:356:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/mod_dta.c:404:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/mod_dta.c:24:66: style: Parameter 'token' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/bin/read_csv/mod_dta.c:111:15: style: Variable 'label' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/bin/read_csv/mod_dta.c:222:98: style: Parameter 'code' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/bin/read_csv/mod_dta.c:223:26: style: Variable 'variable' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/bin/read_csv/mod_dta.c:252:26: style: Variable 'variable' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/bin/read_csv/mod_dta.c:285:26: style: Variable 'variable' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/bin/read_csv/mod_dta.c:315:26: style: Variable 'var' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/bin/read_csv/mod_dta.c:353:26: style: Variable 'var' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/bin/read_csv/mod_sav.c:34:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/mod_sav.c:49:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/mod_sav.c:79:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/mod_sav.c:112:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/mod_sav.c:157:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/mod_sav.c:169:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable string_value [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/mod_sav.c:179:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/mod_sav.c:206:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/mod_sav.c:227:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/mod_sav.c:253:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/mod_sav.c:26:70: style: Parameter 'missing_value_token' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/bin/read_csv/mod_sav.c:191:26: style: Variable 'variable' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/bin/read_csv/mod_sav.c:203:15: style: Variable 'code' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/bin/read_csv/mod_sav.c:204:15: style: Variable 'label' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/bin/read_csv/read_csv.c:114:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/read_csv.c:137:19: style: Condition 'file_size==-1' is always false [knownConditionTrueFalse] ReadStat-1.1.9/src/bin/read_csv/read_csv.c:115:13: style: Variable 'column_width' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/bin/read_csv/value.c:22:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable string_value [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/value.c:32:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/read_csv/value.c:9:26: style: Variable 'var' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/bin/readstat.c:158:41: error: There is an unknown macro here somewhere. Configuration is required. If READSTAT_VERSION is a macro then please configure it. [unknownMacro] ReadStat-1.1.9/src/bin/util/readstat_sav_date.c:58:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/write/json/write_missing_values.c:34:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/write/json/write_missing_values.c:74:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/write/json/write_missing_values.c:128:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/write/json/write_missing_values.c:132:18: style: Redundant condition: is_range. 'is_range || (is_range && discrete)' is equivalent to 'is_range' [redundantCondition] ReadStat-1.1.9/src/bin/write/json/write_missing_values.c:14:79: style: Parameter 'variable' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/bin/write/json/write_missing_values.c:32:23: style: Variable 's' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/bin/write/json/write_missing_values.c:52:76: style: Parameter 'variable' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/bin/write/json/write_missing_values.c:71:23: style: Variable 's' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/bin/write/json/write_missing_values.c:72:23: style: Variable 's2' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/bin/write/json/write_value_labels.c:33:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/write/json/write_value_labels.c:29:63: style: Parameter 'variable' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/bin/write/json/write_value_labels.c:45:33: style: Variable 'value_label' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/bin/write/json/write_value_labels.c:52:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/bin/write/json/write_value_labels.c:67:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/bin/write/mod_csv.c:44:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/write/mod_csv.c:58:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/write/mod_csv.c:133:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/write/mod_csv.c:50:9: error: Memory leak: mod_ctx [memleak] ReadStat-1.1.9/src/bin/write/mod_csv.c:87:60: style: Parameter 'variable' can be declared as pointer to const. However it seems that 'handle_variable' is a callback function, if 'variable' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/bin/write/mod_csv.c:32:21: note: You might need to cast the function pointer here ReadStat-1.1.9/src/bin/write/mod_csv.c:87:60: note: Parameter 'variable' can be declared as pointer to const ReadStat-1.1.9/src/bin/write/mod_csv.c:101:61: style: Parameter 'variable' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/bin/write/mod_csv.c:131:15: style: Variable 's' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/bin/write/mod_readstat.c:83:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/write/mod_readstat.c:236:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/write/mod_readstat.c:84:9: error: Memory leak: mod_ctx [memleak] ReadStat-1.1.9/src/bin/write/mod_readstat.c:209:61: style:inconclusive: Function 'handle_value' argument 2 names different: declaration 'variable' definition 'old_variable'. [funcArgNamesDifferent] ReadStat-1.1.9/src/bin/write/mod_readstat.c:42:61: note: Function 'handle_value' argument 2 names different: declaration 'variable' definition 'old_variable'. ReadStat-1.1.9/src/bin/write/mod_readstat.c:209:61: note: Function 'handle_value' argument 2 names different: declaration 'variable' definition 'old_variable'. ReadStat-1.1.9/src/bin/write/mod_readstat.c:107:48: style: Parameter 'variable' can be declared as pointer to const. However it seems that 'handle_fweight' is a callback function, if 'variable' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/bin/write/mod_readstat.c:52:20: note: You might need to cast the function pointer here ReadStat-1.1.9/src/bin/write/mod_readstat.c:107:48: note: Parameter 'variable' can be declared as pointer to const ReadStat-1.1.9/src/bin/write/mod_readstat.c:110:26: style: Variable 'new_variable' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/bin/write/mod_readstat.c:161:60: style: Parameter 'variable' can be declared as pointer to const. However it seems that 'handle_variable' is a callback function, if 'variable' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/bin/write/mod_readstat.c:51:21: note: You might need to cast the function pointer here ReadStat-1.1.9/src/bin/write/mod_readstat.c:161:60: note: Parameter 'variable' can be declared as pointer to const ReadStat-1.1.9/src/bin/write/mod_readstat.c:209:61: style: Parameter 'old_variable' can be declared as pointer to const. However it seems that 'handle_value' is a callback function, if 'old_variable' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/bin/write/mod_readstat.c:53:18: note: You might need to cast the function pointer here ReadStat-1.1.9/src/bin/write/mod_readstat.c:209:61: note: Parameter 'old_variable' can be declared as pointer to const ReadStat-1.1.9/src/bin/write/mod_readstat.c:214:26: style: Variable 'variable' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/bin/write/mod_xlsx.c:49:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LXW_ALIGN_CENTER [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/bin/write/mod_xlsx.c:68:60: style: Parameter 'variable' can be declared as pointer to const. However it seems that 'handle_variable' is a callback function, if 'variable' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/bin/write/mod_xlsx.c:33:21: note: You might need to cast the function pointer here ReadStat-1.1.9/src/bin/write/mod_xlsx.c:68:60: note: Parameter 'variable' can be declared as pointer to const ReadStat-1.1.9/src/fuzz/fuzz_compression_sas_rle.c:23:9: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ReadStat-1.1.9/src/fuzz/fuzz_format.c:8:49: style: Parameter 'metadata' can be declared as pointer to const. However it seems that 'handle_metadata' is a callback function, if 'metadata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/fuzz/fuzz_format.c:41:44: note: You might need to cast the function pointer here ReadStat-1.1.9/src/fuzz/fuzz_format.c:8:49: note: Parameter 'metadata' can be declared as pointer to const ReadStat-1.1.9/src/fuzz/fuzz_format.c:8:65: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'handle_metadata' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/fuzz/fuzz_format.c:41:44: note: You might need to cast the function pointer here ReadStat-1.1.9/src/fuzz/fuzz_format.c:8:65: note: Parameter 'ctx' can be declared as pointer to const ReadStat-1.1.9/src/fuzz/fuzz_format.c:12:59: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'handle_note' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/fuzz/fuzz_format.c:42:40: note: You might need to cast the function pointer here ReadStat-1.1.9/src/fuzz/fuzz_format.c:12:59: note: Parameter 'ctx' can be declared as pointer to const ReadStat-1.1.9/src/fuzz/fuzz_format.c:16:48: style: Parameter 'variable' can be declared as pointer to const. However it seems that 'handle_fweight' is a callback function, if 'variable' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/fuzz/fuzz_format.c:44:43: note: You might need to cast the function pointer here ReadStat-1.1.9/src/fuzz/fuzz_format.c:16:48: note: Parameter 'variable' can be declared as pointer to const ReadStat-1.1.9/src/fuzz/fuzz_format.c:16:64: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'handle_fweight' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/fuzz/fuzz_format.c:44:43: note: You might need to cast the function pointer here ReadStat-1.1.9/src/fuzz/fuzz_format.c:16:64: note: Parameter 'ctx' can be declared as pointer to const ReadStat-1.1.9/src/fuzz/fuzz_format.c:20:60: style: Parameter 'variable' can be declared as pointer to const. However it seems that 'handle_variable' is a callback function, if 'variable' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/fuzz/fuzz_format.c:43:44: note: You might need to cast the function pointer here ReadStat-1.1.9/src/fuzz/fuzz_format.c:20:60: note: Parameter 'variable' can be declared as pointer to const ReadStat-1.1.9/src/fuzz/fuzz_format.c:21:58: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'handle_variable' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/fuzz/fuzz_format.c:43:44: note: You might need to cast the function pointer here ReadStat-1.1.9/src/fuzz/fuzz_format.c:21:58: note: Parameter 'ctx' can be declared as pointer to const ReadStat-1.1.9/src/fuzz/fuzz_format.c:25:61: style: Parameter 'variable' can be declared as pointer to const. However it seems that 'handle_value' is a callback function, if 'variable' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/fuzz/fuzz_format.c:45:41: note: You might need to cast the function pointer here ReadStat-1.1.9/src/fuzz/fuzz_format.c:25:61: note: Parameter 'variable' can be declared as pointer to const ReadStat-1.1.9/src/fuzz/fuzz_format.c:25:101: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'handle_value' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/fuzz/fuzz_format.c:45:41: note: You might need to cast the function pointer here ReadStat-1.1.9/src/fuzz/fuzz_format.c:25:101: note: Parameter 'ctx' can be declared as pointer to const ReadStat-1.1.9/src/fuzz/fuzz_format.c:29:104: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'handle_value_label' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/fuzz/fuzz_format.c:46:47: note: You might need to cast the function pointer here ReadStat-1.1.9/src/fuzz/fuzz_format.c:29:104: note: Parameter 'ctx' can be declared as pointer to const ReadStat-1.1.9/src/fuzz/generate_corpus.c:48:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/fuzz/generate_corpus.c:36:68: warning: Either the condition '!file' is redundant or there is possible null pointer dereference: file. [nullPointerRedundantCheck] ReadStat-1.1.9/src/fuzz/generate_corpus.c:33:9: note: Assuming that condition '!file' is not redundant ReadStat-1.1.9/src/fuzz/generate_corpus.c:36:68: note: Null pointer dereference ReadStat-1.1.9/src/fuzz/generate_corpus.c:40:12: warning: Either the condition '!file' is redundant or there is possible null pointer dereference: file. [nullPointerRedundantCheck] ReadStat-1.1.9/src/fuzz/generate_corpus.c:33:9: note: Assuming that condition '!file' is not redundant ReadStat-1.1.9/src/fuzz/generate_corpus.c:40:12: note: Null pointer dereference ReadStat-1.1.9/src/fuzz/generate_corpus.c:27:38: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/readstat_convert.c:20:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/readstat_io_unistd.c:64:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/readstat_io_unistd.c:97:47: style:inconclusive: Function 'unistd_read_handler' argument 2 names different: declaration 'nbytes' definition 'nbyte'. [funcArgNamesDifferent] ReadStat-1.1.9/src/readstat_io_unistd.h:9:47: note: Function 'unistd_read_handler' argument 2 names different: declaration 'nbytes' definition 'nbyte'. ReadStat-1.1.9/src/readstat_io_unistd.c:97:47: note: Function 'unistd_read_handler' argument 2 names different: declaration 'nbytes' definition 'nbyte'. ReadStat-1.1.9/src/readstat_metadata.c:3:49: style: Parameter 'metadata' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/readstat_metadata.c:7:49: style: Parameter 'metadata' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/readstat_metadata.c:11:56: style: Parameter 'metadata' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/readstat_metadata.c:15:56: style: Parameter 'metadata' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/readstat_metadata.c:19:59: style: Parameter 'metadata' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/readstat_metadata.c:23:60: style: Parameter 'metadata' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/readstat_metadata.c:27:67: style: Parameter 'metadata' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/readstat_metadata.c:31:64: style: Parameter 'metadata' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/readstat_metadata.c:35:58: style: Parameter 'metadata' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/readstat_metadata.c:39:61: style: Parameter 'metadata' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/readstat_metadata.c:43:58: style: Parameter 'metadata' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/readstat_value.c:139:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/readstat_value.c:157:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/readstat_value.c:41:85: style: Parameter 'variable' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/readstat_value.c:54:88: style: Parameter 'variable' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/readstat_variable.c:9:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable double_value [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/readstat_variable.c:14:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable double_value [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/readstat_variable.c:19:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable string_value [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/readstat_writer.c:368:118: style:inconclusive: Function 'readstat_add_variable' argument 4 names different: declaration 'storage_width' definition 'width'. [funcArgNamesDifferent] ReadStat-1.1.9/src/readstat.h:523:16: note: Function 'readstat_add_variable' argument 4 names different: declaration 'storage_width' definition 'width'. ReadStat-1.1.9/src/readstat_writer.c:368:118: note: Function 'readstat_add_variable' argument 4 names different: declaration 'storage_width' definition 'width'. ReadStat-1.1.9/src/readstat_writer.c:500:93: style:inconclusive: Function 'readstat_writer_set_file_format_version' argument 2 names different: declaration 'file_format_version' definition 'version'. [funcArgNamesDifferent] ReadStat-1.1.9/src/readstat.h:556:17: note: Function 'readstat_writer_set_file_format_version' argument 2 names different: declaration 'file_format_version' definition 'version'. ReadStat-1.1.9/src/readstat_writer.c:500:93: note: Function 'readstat_writer_set_file_format_version' argument 2 names different: declaration 'file_format_version' definition 'version'. ReadStat-1.1.9/src/readstat_writer.c:14:85: style: Parameter 'bytes' can be declared as pointer to const. However it seems that 'readstat_write_row_default_callback' is a callback function, if 'bytes' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/readstat_writer.c:55:36: note: You might need to cast the function pointer here ReadStat-1.1.9/src/readstat_writer.c:14:85: note: Parameter 'bytes' can be declared as pointer to const ReadStat-1.1.9/src/readstat_writer.c:19:28: style: Variable 'ref1' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/readstat_writer.c:20:28: style: Variable 'ref2' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/sas/ieee.c:117:30: style: Parameter 'xport' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/sas/ieee.c:258:30: style: Parameter 'ieee' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/sas/readstat_sas.c:332:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/sas/readstat_sas.c:412:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ReadStat-1.1.9/src/sas/readstat_sas.c:160:72: style:inconclusive: Function 'sas_read_header' argument 2 names different: declaration 'ctx' definition 'hinfo'. [funcArgNamesDifferent] ReadStat-1.1.9/src/sas/readstat_sas.h:122:72: note: Function 'sas_read_header' argument 2 names different: declaration 'ctx' definition 'hinfo'. ReadStat-1.1.9/src/sas/readstat_sas.c:160:72: note: Function 'sas_read_header' argument 2 names different: declaration 'ctx' definition 'hinfo'. ReadStat-1.1.9/src/sas/readstat_sas.c:342:81: style: Parameter 'hinfo' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/sas/readstat_sas.c:427:60: style: Parameter 'writer' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/sas/readstat_sas.c:447:78: style: Parameter 'hinfo' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/sas/readstat_sas7bcat_read.c:105:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/sas/readstat_sas7bcat_read.c:415:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/sas/readstat_sas7bcat_read.c:63:92: style: Comparing expression of type 'unsigned short' against value 0. Condition is always false. [compareValueOutOfTypeRangeError] ReadStat-1.1.9/src/sas/readstat_sas7bcat_read.c:121:13: error: Common realloc mistake: 'label' nulled but not freed upon failure [memleakOnRealloc] ReadStat-1.1.9/src/sas/readstat_sas7bcat_read.c:63:90: style: Checking if unsigned expression 'sas_read2(&lbp1[2],ctx->bswap)' is less than zero. [unsignedLessThanZero] ReadStat-1.1.9/src/sas/readstat_sas7bcat_read.c:376:71: style: Argument '(ctx->block_pointers_capacity=200)*sizeof(uint64_t)' to function malloc is always 1600. It does not matter what value 'ctx->block_pointers_capacity' has. [knownArgument] ReadStat-1.1.9/src/sas/readstat_sas7bcat_write.c:35:33: style: Variable 'value_label' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/sas/readstat_sas7bcat_write.c:65:33: style: Variable 'value_label' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/sas/readstat_sas7bdat_read.c:415:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/sas/readstat_sas7bdat_read.c:1017:107: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/sas/readstat_sas7bdat_read.c:1079:107: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/sas/readstat_sas7bdat_read.c:1152:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/sas/readstat_sas7bdat_read.c:1233:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/sas/readstat_sas7bdat_read.c:404:17: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] ReadStat-1.1.9/src/sas/readstat_sas7bdat_read.c:606:13: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ReadStat-1.1.9/src/sas/readstat_sas7bdat_read.c:606:13: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ReadStat-1.1.9/src/sas/readstat_sas7bdat_read.c:1274:13: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ReadStat-1.1.9/src/sas/readstat_sas7bdat_read.c:1274:13: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ReadStat-1.1.9/src/sas/readstat_sas7bdat_read.c:132:81: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/sas/readstat_sas7bdat_read.c:391:21: style: Parameter 'col_info' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/sas/readstat_sas7bdat_read.c:660:62: style: Parameter 'col_info' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/sas/readstat_sas7bdat_read.c:808:52: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/sas/readstat_sas7bdat_read.c:833:82: style: Parameter 'shp_info' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/sas/readstat_sas7bdat_read.c:834:51: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/sas/readstat_sas7bdat_write.c:654:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/sas/readstat_sas7bdat_write.c:47:24: style: Variable 'hinfo' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/sas/readstat_sas7bdat_write.c:54:31: style: Variable 'subheader' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/sas/readstat_sas7bdat_write.c:68:30: style: Variable 'variable' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/sas/readstat_sas7bdat_write.c:75:85: style: Parameter 'hinfo' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/sas/readstat_sas7bdat_write.c:205:82: style: Parameter 'writer' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/sas/readstat_sas7bdat_write.c:220:69: style: Parameter 'writer' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/sas/readstat_sas7bdat_write.c:237:30: style: Variable 'variable' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/sas/readstat_sas7bdat_write.c:246:70: style: Parameter 'writer' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/sas/readstat_sas7bdat_write.c:264:30: style: Variable 'variable' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/sas/readstat_sas7bdat_write.c:292:86: style: Parameter 'variable' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/sas/readstat_sas7bdat_write.c:697:15: style: Parameter 'bytes' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/sas/readstat_sas7bdat_write.c:732:15: style: Parameter 'bytes' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/sas/readstat_sas7bdat_write.c:776:24: style: Variable 'writer' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/sas/readstat_sas7bdat_write.c:190:29: style: Variable 'text_ref' is assigned a value that is never used. [unreadVariable] ReadStat-1.1.9/src/sas/readstat_sas_rle.c:194:37: warning: Either the condition 'output_buf==NULL' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] ReadStat-1.1.9/src/sas/readstat_sas_rle.c:195:20: note: Assuming that condition 'output_buf==NULL' is not redundant ReadStat-1.1.9/src/sas/readstat_sas_rle.c:194:37: note: Null pointer addition src/sas/readstat_xport_parse_format.rl:18:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READSTAT_OK [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/sas/readstat_xport_read.c:573:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/sas/readstat_xport_read.c:722:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/sas/readstat_xport_read.c:710:71: style: Condition '(ctx->file_size=io->seek(0,READSTAT_SEEK_END,io->io_ctx))==-1' is always false [knownConditionTrueFalse] ReadStat-1.1.9/src/sas/readstat_xport_read.c:335:9: error: Common realloc mistake: 'name' nulled but not freed upon failure [memleakOnRealloc] ReadStat-1.1.9/src/sas/readstat_xport_read.c:336:9: error: Common realloc mistake: 'label' nulled but not freed upon failure [memleakOnRealloc] ReadStat-1.1.9/src/sas/readstat_xport_read.c:405:9: error: Common realloc mistake: 'name' nulled but not freed upon failure [memleakOnRealloc] ReadStat-1.1.9/src/sas/readstat_xport_read.c:406:9: error: Common realloc mistake: 'label' nulled but not freed upon failure [memleakOnRealloc] ReadStat-1.1.9/src/sas/readstat_xport_read.c:407:9: error: Common realloc mistake: 'format' nulled but not freed upon failure [memleakOnRealloc] ReadStat-1.1.9/src/sas/readstat_xport_read.c:408:9: error: Common realloc mistake: 'informat' nulled but not freed upon failure [memleakOnRealloc] ReadStat-1.1.9/src/sas/readstat_xport_read.c:300:13: style: Variable 'pos' is assigned a value that is never used. [unreadVariable] ReadStat-1.1.9/src/sas/readstat_xport_write.c:369:21: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] ReadStat-1.1.9/src/sas/readstat_xport_write.c:374:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ReadStat-1.1.9/src/sas/readstat_xport_write.c:374:5: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ReadStat-1.1.9/src/sas/readstat_xport_write.c:374:5: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ReadStat-1.1.9/src/sas/readstat_xport_write.c:374:5: warning: %d in format string (no. 5) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ReadStat-1.1.9/src/sas/readstat_xport_write.c:374:5: warning: %d in format string (no. 6) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ReadStat-1.1.9/src/sas/readstat_xport_write.c:21:11: style: Variable 'dst_end' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/sas/readstat_xport_write.c:53:32: style: Parameter 'xrecord' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/sas/readstat_xport_write.c:62:32: style: Parameter 'xrecord' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/sas/readstat_xport_write.c:92:30: style: Variable 'variable' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/sas/readstat_xport_write.c:175:34: style: Variable 'variable' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/sas/readstat_xport_write.c:301:15: style: Parameter 'timestamp' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/sas/readstat_xport_write.c:304:11: style: Variable 'ds_name' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/sas/readstat_xport_write.c:324:11: style: Variable 'ds_name' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/sas/readstat_xport_write.c:338:15: style: Parameter 'timestamp' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/sas/readstat_xport_write.c:369:16: style: Variable 'ts' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/sas/readstat_xport_write.c:449:65: style: Parameter 'row' can be declared as pointer to const. However it seems that 'xport_write_row' is a callback function, if 'row' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/sas/readstat_xport_write.c:554:36: note: You might need to cast the function pointer here ReadStat-1.1.9/src/sas/readstat_xport_write.c:449:65: note: Parameter 'row' can be declared as pointer to const ReadStat-1.1.9/src/sas/readstat_xport_write.c:514:24: style: Variable 'writer' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_por.c:132:27: warning: %lc in format string (no. 1) requires 'unsigned long' but the argument type is 'unsigned short'. [invalidPrintfArgType_uint] ReadStat-1.1.9/src/spss/readstat_por.c:103:51: style: Parameter 'lookup' can be declared as const array [constParameter] ReadStat-1.1.9/src/spss/readstat_por.c:146:18: style: Parameter 'lookup' can be declared as pointer to const [constParameterPointer] src/spss/readstat_por_parse.rl:58:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/spss/readstat_por_read.c:95:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/spss/readstat_por_read.c:164:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/spss/readstat_por_read.c:183:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/spss/readstat_por_read.c:441:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HUGE_VAL [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/spss/readstat_por_read.c:472:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HUGE_VAL [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/spss/readstat_por_read.c:767:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/spss/readstat_por_read.c:227:23: style: Condition 'bytes_encoded==-1' is always false [knownConditionTrueFalse] ReadStat-1.1.9/src/spss/readstat_por_read.c:779:71: style: Condition '(ctx->file_size=io->seek(0,READSTAT_SEEK_END,io->io_ctx))==-1' is always false [knownConditionTrueFalse] ReadStat-1.1.9/src/spss/readstat_por_read.c:600:29: style: Variable 'info' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_por_read.c:733:29: style: Variable 'info' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_por_write.c:64:88: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/spss/readstat_por_write.c:726:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/spss/readstat_por_write.c:233:28: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] ReadStat-1.1.9/src/spss/readstat_por_write.c:244:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ReadStat-1.1.9/src/spss/readstat_por_write.c:244:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ReadStat-1.1.9/src/spss/readstat_por_write.c:244:5: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ReadStat-1.1.9/src/spss/readstat_por_write.c:252:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ReadStat-1.1.9/src/spss/readstat_por_write.c:252:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ReadStat-1.1.9/src/spss/readstat_por_write.c:252:5: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ReadStat-1.1.9/src/spss/readstat_por_write.c:233:16: style: Variable 'timestamp' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_por_write.c:330:24: style: Parameter 'format' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/spss/readstat_por_write.c:371:52: style: Parameter 'r_variable' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/spss/readstat_por_write.c:388:52: style: Parameter 'r_variable' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/spss/readstat_por_write.c:437:52: style: Parameter 'r_variable' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/spss/readstat_por_write.c:566:34: style: Variable 'r_variable' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_por_write.c:577:37: style: Variable 'r_value_label' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_por_write.c:768:24: style: Variable 'writer' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_sav_compress.c:17:20: style: Variable 'input' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_sav_compress.c:27:30: style: Variable 'variable' can be declared as pointer to const [constVariablePointer] src/spss/readstat_sav_parse.rl:84:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READSTAT_OK [valueFlowBailoutIncompleteVar] src/spss/readstat_sav_parse.rl:158:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READSTAT_OK [valueFlowBailoutIncompleteVar] src/spss/readstat_sav_parse.c:363:16: warning: Logical conjunction always evaluates to false: p == pe && p != eof. [incorrectLogicOperator] src/spss/readstat_sav_parse.rl:97:23: note: 'eof' is assigned value 'pe' here. src/spss/readstat_sav_parse.c:363:16: note: Logical conjunction always evaluates to false: p == pe && p != eof. src/spss/readstat_sav_parse.c:684:16: warning: Logical conjunction always evaluates to false: p == pe && p != eof. [incorrectLogicOperator] src/spss/readstat_sav_parse.rl:169:23: note: 'eof' is assigned value 'pe' here. src/spss/readstat_sav_parse.c:684:16: note: Logical conjunction always evaluates to false: p == pe && p != eof. src/spss/readstat_sav_parse.c:363:16: style: Opposite expression on both sides of '&&'. [oppositeExpression] src/spss/readstat_sav_parse.rl:97:23: note: 'eof' is assigned value 'pe' here. src/spss/readstat_sav_parse.c:363:16: note: Opposite expression on both sides of '&&'. src/spss/readstat_sav_parse.c:684:16: style: Opposite expression on both sides of '&&'. [oppositeExpression] src/spss/readstat_sav_parse.rl:169:23: note: 'eof' is assigned value 'pe' here. src/spss/readstat_sav_parse.c:684:16: note: Opposite expression on both sides of '&&'. src/spss/readstat_sav_parse.rl:42:18: style: Variable 'last_info' can be declared as pointer to const [constVariablePointer] src/spss/readstat_sav_parse.rl:58:18: style: Variable 'last_info' can be declared as pointer to const [constVariablePointer] src/spss/readstat_sav_parse.rl:88:17: style: Variable 'str_start' can be declared as pointer to const [constVariablePointer] src/spss/readstat_sav_parse.rl:97:17: style: Variable 'eof' can be declared as pointer to const [constVariablePointer] src/spss/readstat_sav_parse.rl:162:17: style: Variable 'str_start' can be declared as pointer to const [constVariablePointer] src/spss/readstat_sav_parse.rl:169:17: style: Variable 'eof' can be declared as pointer to const [constVariablePointer] src/spss/readstat_sav_parse.rl:179:21: style: Variable 'found' can be declared as pointer to const [constVariablePointer] src/spss/readstat_sav_parse_timestamp.rl:16:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READSTAT_OK [valueFlowBailoutIncompleteVar] src/spss/readstat_sav_parse_timestamp.rl:63:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READSTAT_OK [valueFlowBailoutIncompleteVar] src/spss/readstat_sav_parse_timestamp.c:95:16: warning: Logical conjunction always evaluates to false: p == pe && p != eof. [incorrectLogicOperator] src/spss/readstat_sav_parse_timestamp.rl:20:20: note: 'eof' is assigned value 'pe' here. src/spss/readstat_sav_parse_timestamp.c:95:16: note: Logical conjunction always evaluates to false: p == pe && p != eof. src/spss/readstat_sav_parse_timestamp.c:420:16: warning: Logical conjunction always evaluates to false: p == pe && p != eof. [incorrectLogicOperator] src/spss/readstat_sav_parse_timestamp.rl:67:20: note: 'eof' is assigned value 'pe' here. src/spss/readstat_sav_parse_timestamp.c:420:16: note: Logical conjunction always evaluates to false: p == pe && p != eof. src/spss/readstat_sav_parse_timestamp.c:95:16: style: Opposite expression on both sides of '&&'. [oppositeExpression] src/spss/readstat_sav_parse_timestamp.rl:20:20: note: 'eof' is assigned value 'pe' here. src/spss/readstat_sav_parse_timestamp.c:95:16: note: Opposite expression on both sides of '&&'. src/spss/readstat_sav_parse_timestamp.c:420:16: style: Opposite expression on both sides of '&&'. [oppositeExpression] src/spss/readstat_sav_parse_timestamp.rl:67:20: note: 'eof' is assigned value 'pe' here. src/spss/readstat_sav_parse_timestamp.c:420:16: note: Opposite expression on both sides of '&&'. ReadStat-1.1.9/src/spss/readstat_sav_read.c:268:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/spss/readstat_sav_read.c:956:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/spss/readstat_sav_read.c:1582:19: style: Condition 'file_size==-1' is always false [knownConditionTrueFalse] ReadStat-1.1.9/src/spss/readstat_sav_read.c:149:72: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/spss/readstat_sav_read.c:682:56: style: Parameter 'buffer' can be declared as pointer to const. However it seems that 'sav_process_row' is a callback function, if 'buffer' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/spss/readstat_sav_read.c:799:51: note: You might need to cast the function pointer here ReadStat-1.1.9/src/spss/readstat_sav_read.c:682:56: note: Parameter 'buffer' can be declared as pointer to const ReadStat-1.1.9/src/spss/readstat_sav_read.c:698:25: style: Variable 'col_info' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_sav_read.c:772:25: style: Variable 'info' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_sav_read.c:1027:70: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/spss/readstat_sav_read.c:1550:80: style: Parameter 'header' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/spss/readstat_sav_read.c:1011:16: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] ReadStat-1.1.9/src/spss/readstat_sav_write.c:117:25: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] ReadStat-1.1.9/src/spss/readstat_sav_write.c:1261:32: style: Condition 'strcmp(name,"GT")==0' is always false [knownConditionTrueFalse] ReadStat-1.1.9/src/spss/readstat_sav_write.c:156:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ReadStat-1.1.9/src/spss/readstat_sav_write.c:156:5: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ReadStat-1.1.9/src/spss/readstat_sav_write.c:163:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ReadStat-1.1.9/src/spss/readstat_sav_write.c:163:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ReadStat-1.1.9/src/spss/readstat_sav_write.c:163:5: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ReadStat-1.1.9/src/spss/readstat_sav_write.c:855:9: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ReadStat-1.1.9/src/spss/readstat_sav_write.c:877:9: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ReadStat-1.1.9/src/spss/readstat_sav_write.c:1307:13: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ReadStat-1.1.9/src/spss/readstat_sav_write.c:961:13: error: Common realloc mistake: 'space_buffer' nulled but not freed upon failure [memleakOnRealloc] ReadStat-1.1.9/src/spss/readstat_sav_write.c:559:24: style: Variable 'retval' is reassigned a value before the old one has been used. [redundantAssignment] ReadStat-1.1.9/src/spss/readstat_sav_write.c:551:24: note: retval is assigned ReadStat-1.1.9/src/spss/readstat_sav_write.c:559:24: note: retval is overwritten ReadStat-1.1.9/src/spss/readstat_sav_write.c:1260:64: style: Same expression on both sides of '||'. [duplicateExpression] ReadStat-1.1.9/src/spss/readstat_sav_write.c:68:19: style: Local variable 'spss_format' shadows outer function [shadowFunction] ReadStat-1.1.9/src/spss/readstat_spss.h:90:5: note: Shadowed declaration ReadStat-1.1.9/src/spss/readstat_sav_write.c:68:19: note: Shadow variable ReadStat-1.1.9/src/spss/readstat_sav_write.c:78:19: style: Local variable 'spss_format' shadows outer function [shadowFunction] ReadStat-1.1.9/src/spss/readstat_spss.h:90:5: note: Shadowed declaration ReadStat-1.1.9/src/spss/readstat_sav_write.c:78:19: note: Shadow variable ReadStat-1.1.9/src/spss/readstat_sav_write.c:44:30: style: Variable 'r_variable' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_sav_write.c:88:25: style: Parameter 'varnames' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/spss/readstat_sav_write.c:94:25: style: Parameter 'varnames' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/spss/readstat_sav_write.c:117:16: style: Variable 'time_s' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_sav_write.c:120:10: style: Variable 'months' can be declared as const array [constVariable] ReadStat-1.1.9/src/spss/readstat_sav_write.c:185:97: style: Parameter 'r_variable' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/spss/readstat_sav_write.c:210:61: style: Parameter 'r_variable' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/spss/readstat_sav_write.c:226:61: style: Parameter 'r_variable' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/spss/readstat_sav_write.c:261:113: style: Parameter 'r_variable' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/spss/readstat_sav_write.c:303:113: style: Parameter 'r_variable' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/spss/readstat_sav_write.c:536:41: style: Variable 'r_value_label' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_sav_write.c:584:38: style: Variable 'r_variable' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_sav_write.c:708:30: style: Variable 'r_variable' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_sav_write.c:719:30: style: Variable 'r_variable' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_sav_write.c:763:30: style: Variable 'r_variable' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_sav_write.c:792:34: style: Variable 'r_variable' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_sav_write.c:847:30: style: Variable 'r_variable' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_sav_write.c:869:30: style: Variable 'r_variable' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_sav_write.c:914:34: style: Variable 'r_variable' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_sav_write.c:926:41: style: Variable 'r_value_label' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_sav_write.c:955:34: style: Variable 'r_variable' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_sav_write.c:981:41: style: Variable 'r_value_label' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_sav_write.c:1032:30: style: Variable 'r_variable' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_sav_write.c:1068:30: style: Variable 'r_variable' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_sav_write.c:1298:30: style: Variable 'r_variable' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_sav_write.c:1403:24: style: Variable 'writer' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_sav_write.c:522:26: style: Variable 'rec_type' is assigned a value that is never used. [unreadVariable] ReadStat-1.1.9/src/spss/readstat_spss.c:106:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable double_value [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/spss/readstat_spss.c:115:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable string_value [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/spss/readstat_spss.c:51:58: style: Parameter 'format' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/spss/readstat_spss.c:57:11: style: Variable 'string' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_spss.c:120:66: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] src/spss/readstat_spss_parse.rl:40:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPSS_FORMAT_TYPE_A [valueFlowBailoutIncompleteVar] src/spss/readstat_spss_parse.c:322:16: warning: Logical conjunction always evaluates to false: p == pe && p != eof. [incorrectLogicOperator] src/spss/readstat_spss_parse.rl:18:23: note: 'eof' is assigned value 'pe' here. src/spss/readstat_spss_parse.c:322:16: note: Logical conjunction always evaluates to false: p == pe && p != eof. src/spss/readstat_spss_parse.c:322:16: style: Opposite expression on both sides of '&&'. [oppositeExpression] src/spss/readstat_spss_parse.rl:18:23: note: 'eof' is assigned value 'pe' here. src/spss/readstat_spss_parse.c:322:16: note: Opposite expression on both sides of '&&'. src/spss/readstat_spss_parse.rl:18:17: style: Variable 'eof' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_zsav_compress.c:46:5: warning: Return value of function deflateInit() is not used. [ignoredReturnValue] ReadStat-1.1.9/src/spss/readstat_zsav_compress.c:61:78: style:inconclusive: Function 'zsav_compress_row' argument 4 names different: declaration 'zctx' definition 'ctx'. [funcArgNamesDifferent] ReadStat-1.1.9/src/spss/readstat_zsav_compress.h:29:78: note: Function 'zsav_compress_row' argument 4 names different: declaration 'zctx' definition 'ctx'. ReadStat-1.1.9/src/spss/readstat_zsav_compress.c:61:78: note: Function 'zsav_compress_row' argument 4 names different: declaration 'zctx' definition 'ctx'. ReadStat-1.1.9/src/spss/readstat_zsav_write.c:41:23: style: Variable 'block' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_zsav_write.c:62:23: style: Variable 'block' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/spss/readstat_zsav_write.c:95:23: style: Variable 'block' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/stata/readstat_dta.c:166:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/stata/readstat_dta.c:254:62: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] src/stata/readstat_dta_parse_timestamp.rl:13:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READSTAT_OK [valueFlowBailoutIncompleteVar] src/stata/readstat_dta_parse_timestamp.c:166:16: warning: Logical conjunction always evaluates to false: p == pe && p != eof. [incorrectLogicOperator] src/stata/readstat_dta_parse_timestamp.rl:16:20: note: 'eof' is assigned value 'pe' here. src/stata/readstat_dta_parse_timestamp.c:166:16: note: Logical conjunction always evaluates to false: p == pe && p != eof. src/stata/readstat_dta_parse_timestamp.c:166:16: style: Opposite expression on both sides of '&&'. [oppositeExpression] src/stata/readstat_dta_parse_timestamp.rl:16:20: note: 'eof' is assigned value 'pe' here. src/stata/readstat_dta_parse_timestamp.c:166:16: note: Opposite expression on both sides of '&&'. ReadStat-1.1.9/src/stata/readstat_dta_read.c:195:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/stata/readstat_dta_read.c:412:106: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/stata/readstat_dta_read.c:547:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/stata/readstat_dta_read.c:570:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/stata/readstat_dta_read.c:710:105: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/stata/readstat_dta_read.c:987:113: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/stata/readstat_dta_read.c:1154:19: style: Condition 'file_size==-1' is always false [knownConditionTrueFalse] ReadStat-1.1.9/src/stata/readstat_dta_read.c:1087:13: error: Common realloc mistake: 'utf8_buffer' nulled but not freed upon failure [memleakOnRealloc] ReadStat-1.1.9/src/stata/readstat_dta_read.c:555:64: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] ReadStat-1.1.9/src/stata/readstat_dta_read.c:578:65: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] ReadStat-1.1.9/src/stata/readstat_dta_read.c:479:61: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/stata/readstat_dta_read.c:499:62: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/stata/readstat_dta_read.c:522:62: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/stata/readstat_dta_read.c:545:62: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/stata/readstat_dta_read.c:568:63: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/stata/readstat_dta_write.c:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] ReadStat-1.1.9/src/stata/readstat_dta_write.c:106:25: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] ReadStat-1.1.9/src/stata/readstat_dta_write.c:685:9: error: Common realloc mistake: 'label_buffer' nulled but not freed upon failure [memleakOnRealloc] ReadStat-1.1.9/src/stata/readstat_dta_write.c:776:9: error: Common realloc mistake: 'off' nulled but not freed upon failure [memleakOnRealloc] ReadStat-1.1.9/src/stata/readstat_dta_write.c:777:9: error: Common realloc mistake: 'val' nulled but not freed upon failure [memleakOnRealloc] ReadStat-1.1.9/src/stata/readstat_dta_write.c:778:9: error: Common realloc mistake: 'txt' nulled but not freed upon failure [memleakOnRealloc] ReadStat-1.1.9/src/stata/readstat_dta_write.c:37:77: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/stata/readstat_dta_write.c:106:16: style: Variable 'time_s' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/stata/readstat_dta_write.c:109:10: style: Variable 'months' can be declared as const array [constVariable] ReadStat-1.1.9/src/stata/readstat_dta_write.c:152:76: style: Parameter 'r_variable' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/stata/readstat_dta_write.c:179:76: style: Parameter 'r_variable' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/stata/readstat_dta_write.c:205:76: style: Parameter 'r_variable' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/stata/readstat_dta_write.c:353:30: style: Variable 'r_variable' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/stata/readstat_dta_write.c:395:30: style: Variable 'r_variable' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/stata/readstat_dta_write.c:453:30: style: Variable 'r_variable' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/stata/readstat_dta_write.c:507:30: style: Variable 'r_variable' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/stata/readstat_dta_write.c:589:100: style: Parameter 'ref' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/stata/readstat_dta_write.c:600:100: style: Parameter 'ref' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/stata/readstat_dta_write.c:611:78: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/stata/readstat_dta_write.c:650:89: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/stata/readstat_dta_write.c:659:37: style: Variable 'value_label' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/stata/readstat_dta_write.c:740:37: style: Variable 'value_label' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/stata/readstat_dta_write.c:785:37: style: Variable 'value_label' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/stata/readstat_dta_write.c:984:42: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/stata/readstat_dta_write.c:1033:62: style: Parameter 'writer' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/stata/readstat_dta_write.c:1068:32: style: Variable 'ref' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/stata/readstat_dta_write.c:1090:37: style: Variable 'value_label' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/stata/readstat_dta_write.c:1285:116: style: Parameter 'ref' can be declared as pointer to const. However it seems that 'dta_118_write_string_ref' is a callback function, if 'ref' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/stata/readstat_dta_write.c:1437:47: note: You might need to cast the function pointer here ReadStat-1.1.9/src/stata/readstat_dta_write.c:1285:116: note: Parameter 'ref' can be declared as pointer to const ReadStat-1.1.9/src/stata/readstat_dta_write.c:1300:116: style: Parameter 'ref' can be declared as pointer to const. However it seems that 'dta_117_write_string_ref' is a callback function, if 'ref' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/stata/readstat_dta_write.c:1439:47: note: You might need to cast the function pointer here ReadStat-1.1.9/src/stata/readstat_dta_write.c:1300:116: note: Parameter 'ref' can be declared as pointer to const ReadStat-1.1.9/src/stata/readstat_dta_write.c:1402:24: style: Variable 'writer' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/test/test_buffer_io.c:8:45: style: Parameter 'io_ctx' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/test/test_buffer_io.c:12:28: style: Parameter 'io_ctx' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/test/test_double_decimals.c:17:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXIT_FAILURE [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/test/test_double_decimals.c:7:26: style: Parameter 'argv' can be declared as const array [constParameter] ReadStat-1.1.9/src/test/test_dta_days.c:25:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/test/test_dta_days.c:39:14: style: Variable 'b' can be declared as const array [constVariable] ReadStat-1.1.9/src/test/test_dta_days.c:48:14: style: Variable 'b' can be declared as const array [constVariable] ReadStat-1.1.9/src/test/test_dta_days.c:57:14: style: Variable 'b' can be declared as const array [constVariable] ReadStat-1.1.9/src/test/test_dta_days.c:66:14: style: Variable 'b' can be declared as const array [constVariable] ReadStat-1.1.9/src/test/test_dta_days.c:75:26: style: Parameter 'argv' can be declared as const array [constParameter] ReadStat-1.1.9/src/test/test_error.c:67:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable string_value [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/test/test_error.c:87:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable string_value [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/test/test_error.c:138:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable double_value [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/test/test_error.c:152:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable string_value [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/test/test_error.c:163:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/test/test_error.c:182:30: style: Parameter 'error' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/test/test_read.c:167:48: style: Parameter 'variable' can be declared as pointer to const. However it seems that 'handle_fweight' is a callback function, if 'variable' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/test/test_read.c:295:43: note: You might need to cast the function pointer here ReadStat-1.1.9/src/test/test_read.c:167:48: note: Parameter 'variable' can be declared as pointer to const ReadStat-1.1.9/src/test/test_read.c:170:18: style: Variable 'column' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/test/test_read.c:178:60: style: Parameter 'variable' can be declared as pointer to const. However it seems that 'handle_variable' is a callback function, if 'variable' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/test/test_read.c:294:44: note: You might need to cast the function pointer here ReadStat-1.1.9/src/test/test_read.c:178:60: note: Parameter 'variable' can be declared as pointer to const ReadStat-1.1.9/src/test/test_read.c:181:18: style: Variable 'column' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/test/test_read.c:231:25: style: Variable 'label_set' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/test/test_read.c:255:61: style: Parameter 'variable' can be declared as pointer to const. However it seems that 'handle_value' is a callback function, if 'variable' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/test/test_read.c:296:41: note: You might need to cast the function pointer here ReadStat-1.1.9/src/test/test_read.c:255:61: note: Parameter 'variable' can be declared as pointer to const ReadStat-1.1.9/src/test/test_read.c:261:18: style: Variable 'column' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/test/test_read.c:276:59: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'handle_error' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/test/test_read.c:298:41: note: You might need to cast the function pointer here ReadStat-1.1.9/src/test/test_read.c:276:59: note: Parameter 'ctx' can be declared as pointer to const ReadStat-1.1.9/src/test/test_sav_date.c:19:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/test/test_sav_date.c:16:14: style: Variable 's' can be declared as const array [constVariable] ReadStat-1.1.9/src/test/test_sav_date.c:29:14: style: Variable 's' can be declared as const array [constVariable] ReadStat-1.1.9/src/test/test_sav_date.c:63:23: style: Variable 's' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/test/test_sav_date.c:83:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/test/test_write.c:12:59: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'handle_error' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/test/test_write.c:38:48: note: You might need to cast the function pointer here ReadStat-1.1.9/src/test/test_write.c:12:59: note: Parameter 'ctx' can be declared as pointer to const ReadStat-1.1.9/src/test/test_write.c:51:25: style: Variable 'label_set' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/test/test_write.c:87:22: style: Variable 'column' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/test/test_write.c:191:26: style: Variable 'column' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/test/test_write.c:192:34: style: Variable 'variable' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/txt/commands_util.c:34:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/txt/commands_util.c:48:34: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] src/txt/readstat_sas_commands_read.rl:19:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READSTAT_ERROR_OPEN [valueFlowBailoutIncompleteVar] src/txt/readstat_sas_commands_read.c:3710:16: warning: Logical conjunction always evaluates to false: p == pe && p != eof. [incorrectLogicOperator] src/txt/readstat_sas_commands_read.rl:39:23: note: 'eof' is assigned value 'pe' here. src/txt/readstat_sas_commands_read.c:3710:16: note: Logical conjunction always evaluates to false: p == pe && p != eof. src/txt/readstat_sas_commands_read.c:3710:16: style: Opposite expression on both sides of '&&'. [oppositeExpression] src/txt/readstat_sas_commands_read.rl:39:23: note: 'eof' is assigned value 'pe' here. src/txt/readstat_sas_commands_read.c:3710:16: note: Opposite expression on both sides of '&&'. src/txt/readstat_sas_commands_read.rl:39:17: style: Variable 'eof' can be declared as pointer to const [constVariablePointer] src/txt/readstat_sas_commands_read.rl:51:17: style: Variable 'line_start' can be declared as pointer to const [constVariablePointer] src/txt/readstat_spss_commands_read.rl:20:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READSTAT_ERROR_OPEN [valueFlowBailoutIncompleteVar] src/txt/readstat_spss_commands_read.c:2001:16: warning: Logical conjunction always evaluates to false: p == pe && p != eof. [incorrectLogicOperator] src/txt/readstat_spss_commands_read.rl:40:23: note: 'eof' is assigned value 'pe' here. src/txt/readstat_spss_commands_read.c:2001:16: note: Logical conjunction always evaluates to false: p == pe && p != eof. src/txt/readstat_spss_commands_read.c:2001:16: style: Opposite expression on both sides of '&&'. [oppositeExpression] src/txt/readstat_spss_commands_read.rl:40:23: note: 'eof' is assigned value 'pe' here. src/txt/readstat_spss_commands_read.c:2001:16: note: Opposite expression on both sides of '&&'. src/txt/readstat_spss_commands_read.rl:40:17: style: Variable 'eof' can be declared as pointer to const [constVariablePointer] src/txt/readstat_spss_commands_read.rl:52:17: style: Variable 'line_start' can be declared as pointer to const [constVariablePointer] src/txt/readstat_stata_dictionary_read.rl:17:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READSTAT_ERROR_OPEN [valueFlowBailoutIncompleteVar] src/txt/readstat_stata_dictionary_read.rl:38:17: style: Variable 'pe' can be declared as pointer to const [constVariablePointer] src/txt/readstat_stata_dictionary_read.rl:51:17: style: Variable 'line_start' can be declared as pointer to const [constVariablePointer] ReadStat-1.1.9/src/txt/readstat_txt_read.c:180:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] ReadStat-1.1.9/src/txt/readstat_txt_read.c:22:62: style: Parameter 'bytes' can be declared as pointer to const [constParameterPointer] ReadStat-1.1.9/src/txt/readstat_txt_read.c:202:34: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] diff: head ReadStat-1.1.9/src/bin/extract_metadata.c:256:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/extract_metadata.c:324:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/extract_metadata.c:368:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/extract_metadata.c:383:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/extract_metadata.c:403:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/extract_metadata.c:437:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/read_csv/json_metadata.c:161:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/read_csv/json_metadata.c:181:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/read_csv/json_metadata.c:191:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/read_csv/json_metadata.c:234:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/read_csv/json_metadata.c:243:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/read_csv/json_metadata.c:78:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/read_csv/mod_dta.c:143:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/read_csv/mod_dta.c:177:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/read_csv/mod_dta.c:227:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/read_csv/mod_dta.c:256:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/read_csv/mod_dta.c:297:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/read_csv/mod_dta.c:319:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/read_csv/mod_dta.c:356:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/read_csv/mod_dta.c:404:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/read_csv/mod_dta.c:41:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/read_csv/mod_dta.c:63:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/read_csv/mod_dta.c:92:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/read_csv/mod_sav.c:112:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/read_csv/mod_sav.c:157:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/read_csv/mod_sav.c:169:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable string_value [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/read_csv/mod_sav.c:179:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/read_csv/mod_sav.c:206:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/read_csv/mod_sav.c:227:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/read_csv/mod_sav.c:253:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/read_csv/mod_sav.c:49:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/read_csv/mod_sav.c:79:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/read_csv/value.c:32:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/write/json/write_missing_values.c:128:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/write/json/write_missing_values.c:74:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/write/mod_csv.c:133:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/write/mod_csv.c:58:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/bin/write/mod_readstat.c:236:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/fuzz/fuzz_format.c:12:59: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'handle_note' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/fuzz/fuzz_format.c:42:40: note: You might need to cast the function pointer here ReadStat-1.1.9/src/fuzz/fuzz_format.c:12:59: note: Parameter 'ctx' can be declared as pointer to const head ReadStat-1.1.9/src/fuzz/fuzz_format.c:16:48: style: Parameter 'variable' can be declared as pointer to const. However it seems that 'handle_fweight' is a callback function, if 'variable' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/fuzz/fuzz_format.c:44:43: note: You might need to cast the function pointer here ReadStat-1.1.9/src/fuzz/fuzz_format.c:16:48: note: Parameter 'variable' can be declared as pointer to const head ReadStat-1.1.9/src/fuzz/fuzz_format.c:16:64: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'handle_fweight' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/fuzz/fuzz_format.c:44:43: note: You might need to cast the function pointer here ReadStat-1.1.9/src/fuzz/fuzz_format.c:16:64: note: Parameter 'ctx' can be declared as pointer to const head ReadStat-1.1.9/src/fuzz/fuzz_format.c:20:60: style: Parameter 'variable' can be declared as pointer to const. However it seems that 'handle_variable' is a callback function, if 'variable' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/fuzz/fuzz_format.c:43:44: note: You might need to cast the function pointer here ReadStat-1.1.9/src/fuzz/fuzz_format.c:20:60: note: Parameter 'variable' can be declared as pointer to const head ReadStat-1.1.9/src/fuzz/fuzz_format.c:21:58: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'handle_variable' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/fuzz/fuzz_format.c:43:44: note: You might need to cast the function pointer here ReadStat-1.1.9/src/fuzz/fuzz_format.c:21:58: note: Parameter 'ctx' can be declared as pointer to const head ReadStat-1.1.9/src/fuzz/fuzz_format.c:25:101: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'handle_value' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/fuzz/fuzz_format.c:45:41: note: You might need to cast the function pointer here ReadStat-1.1.9/src/fuzz/fuzz_format.c:25:101: note: Parameter 'ctx' can be declared as pointer to const head ReadStat-1.1.9/src/fuzz/fuzz_format.c:25:61: style: Parameter 'variable' can be declared as pointer to const. However it seems that 'handle_value' is a callback function, if 'variable' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/fuzz/fuzz_format.c:45:41: note: You might need to cast the function pointer here ReadStat-1.1.9/src/fuzz/fuzz_format.c:25:61: note: Parameter 'variable' can be declared as pointer to const head ReadStat-1.1.9/src/fuzz/fuzz_format.c:29:104: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'handle_value_label' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/fuzz/fuzz_format.c:46:47: note: You might need to cast the function pointer here ReadStat-1.1.9/src/fuzz/fuzz_format.c:29:104: note: Parameter 'ctx' can be declared as pointer to const head ReadStat-1.1.9/src/fuzz/fuzz_format.c:8:49: style: Parameter 'metadata' can be declared as pointer to const. However it seems that 'handle_metadata' is a callback function, if 'metadata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/fuzz/fuzz_format.c:41:44: note: You might need to cast the function pointer here ReadStat-1.1.9/src/fuzz/fuzz_format.c:8:49: note: Parameter 'metadata' can be declared as pointer to const head ReadStat-1.1.9/src/fuzz/fuzz_format.c:8:65: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'handle_metadata' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/fuzz/fuzz_format.c:41:44: note: You might need to cast the function pointer here ReadStat-1.1.9/src/fuzz/fuzz_format.c:8:65: note: Parameter 'ctx' can be declared as pointer to const head ReadStat-1.1.9/src/readstat_value.c:157:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/readstat_variable.c:14:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable double_value [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/readstat_variable.c:19:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable string_value [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/sas/readstat_sas7bcat_read.c:415:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/sas/readstat_sas7bdat_read.c:1017:107: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/sas/readstat_sas7bdat_read.c:1079:107: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/sas/readstat_sas7bdat_read.c:1152:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/sas/readstat_sas7bdat_read.c:1233:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/sas/readstat_xport_read.c:722:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/sas/readstat_xport_write.c:369:16: style: Variable 'ts' can be declared as pointer to const [constVariablePointer] head ReadStat-1.1.9/src/spss/readstat_por_read.c:164:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/spss/readstat_por_read.c:183:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/spss/readstat_por_read.c:441:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HUGE_VAL [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/spss/readstat_por_read.c:472:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HUGE_VAL [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/spss/readstat_por_read.c:767:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/spss/readstat_por_write.c:233:16: style: Variable 'timestamp' can be declared as pointer to const [constVariablePointer] head ReadStat-1.1.9/src/spss/readstat_por_write.c:726:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/spss/readstat_sav_read.c:956:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/spss/readstat_sav_write.c:117:16: style: Variable 'time_s' can be declared as pointer to const [constVariablePointer] head ReadStat-1.1.9/src/spss/readstat_sav_write.c:847:30: style: Variable 'r_variable' can be declared as pointer to const [constVariablePointer] head ReadStat-1.1.9/src/spss/readstat_sav_write.c:869:30: style: Variable 'r_variable' can be declared as pointer to const [constVariablePointer] head ReadStat-1.1.9/src/spss/readstat_spss.c:115:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable string_value [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/stata/readstat_dta_read.c:412:106: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/stata/readstat_dta_read.c:547:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/stata/readstat_dta_read.c:570:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/stata/readstat_dta_read.c:710:105: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/stata/readstat_dta_read.c:987:113: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/test/test_buffer_io.c:12:28: style: Parameter 'io_ctx' can be declared as pointer to const [constParameterPointer] head ReadStat-1.1.9/src/test/test_buffer_io.c:8:45: style: Parameter 'io_ctx' can be declared as pointer to const [constParameterPointer] head ReadStat-1.1.9/src/test/test_double_decimals.c:7:26: style: Parameter 'argv' can be declared as const array [constParameter] head ReadStat-1.1.9/src/test/test_dta_days.c:75:26: style: Parameter 'argv' can be declared as const array [constParameter] head ReadStat-1.1.9/src/test/test_error.c:138:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable double_value [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/test/test_error.c:152:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable string_value [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/test/test_error.c:163:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/test/test_error.c:87:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable string_value [valueFlowBailoutIncompleteVar] head ReadStat-1.1.9/src/test/test_read.c:276:59: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'handle_error' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/test/test_read.c:298:41: note: You might need to cast the function pointer here ReadStat-1.1.9/src/test/test_read.c:276:59: note: Parameter 'ctx' can be declared as pointer to const head ReadStat-1.1.9/src/test/test_write.c:12:59: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'handle_error' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ReadStat-1.1.9/src/test/test_write.c:38:48: note: You might need to cast the function pointer here ReadStat-1.1.9/src/test/test_write.c:12:59: note: Parameter 'ctx' can be declared as pointer to const head src/spss/readstat_sav_parse.rl:158:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READSTAT_OK [valueFlowBailoutIncompleteVar] head src/spss/readstat_sav_parse_timestamp.rl:63:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READSTAT_OK [valueFlowBailoutIncompleteVar] DONE