2026-05-02 12:33 ftp://ftp.de.debian.org/debian/pool/main/h/hnb/hnb_1.9.18+ds1.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-1047-aws-aarch64-with-glibc2.35 python: 3.10.12 client-version: 1.4.0 compiler: g++ (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 349 348 elapsed-time: 2.4 2.1 head-timing-info: old-timing-info: head results: hnb-1.9.18/src/actions.c:45:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/actions.c:146:4: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/actions.c:150:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/actions.c:153:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/actions.c:36:8: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/actions.c:51:8: style: Variable 'start' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/actions.c:71:10: style: Variable 'cs' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/actions.c:104:10: style: Variable 'cs' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/attic/add_ons/file_dot.c:40:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable file_error [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/attic/add_ons/file_dot.c:48:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/attic/add_ons/file_dot.c:66:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/attic/add_ons/file_dot.c:35:8: style: Variable 'filename' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/autosave.c:59:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/autosave.c:71:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/cal.c:48:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/cal.c:56:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/cal.c:106:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/cli_macro.c:53:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cli_precmd [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/cli_macro.c:116:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cli_precmd [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/cli_macro.c:91:4: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/cli_macro.c:100:5: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/cli_macro.c:122:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/cli_macro.c:113:5: warning: If memory allocation fails, then there is a possible null pointer dereference: tmacro [nullPointerOutOfMemory] hnb-1.9.18/src/cli_macro.c:104:18: note: Assuming allocation function fails hnb-1.9.18/src/cli_macro.c:104:18: note: Assignment 'macro=calloc(1,sizeof(struct MacroT))', assigned value is 0 hnb-1.9.18/src/cli_macro.c:105:13: note: Assignment 'tmacro=macro', assigned value is 0 hnb-1.9.18/src/cli_macro.c:113:5: note: Null pointer dereference hnb-1.9.18/src/cli_macro.c:114:5: warning: If memory allocation fails, then there is a possible null pointer dereference: tmacro [nullPointerOutOfMemory] hnb-1.9.18/src/cli_macro.c:104:18: note: Assuming allocation function fails hnb-1.9.18/src/cli_macro.c:104:18: note: Assignment 'macro=calloc(1,sizeof(struct MacroT))', assigned value is 0 hnb-1.9.18/src/cli_macro.c:105:13: note: Assignment 'tmacro=macro', assigned value is 0 hnb-1.9.18/src/cli_macro.c:114:5: note: Null pointer dereference hnb-1.9.18/src/cli_macro.c:115:14: warning: If memory allocation fails, then there is a possible null pointer dereference: tmacro [nullPointerOutOfMemory] hnb-1.9.18/src/cli_macro.c:104:18: note: Assuming allocation function fails hnb-1.9.18/src/cli_macro.c:104:18: note: Assignment 'macro=calloc(1,sizeof(struct MacroT))', assigned value is 0 hnb-1.9.18/src/cli_macro.c:105:13: note: Assignment 'tmacro=macro', assigned value is 0 hnb-1.9.18/src/cli_macro.c:115:14: note: Null pointer dereference hnb-1.9.18/src/cli_macro.c:42:8: style: Variable 'c' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/cli_macro.c:63:35: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/clipboard.c:42:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/clipboard.c:50:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/clipboard.c:61:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/clipboard.c:74:4: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/clipboard.c:81:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/evilloop.c:56:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flags [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/evilloop.c:144:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cli_outfun [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/evilloop.c:129:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/evilloop.c:243:8: warning: Possible null pointer dereference: (pos)?(pos->right):0 [nullPointer] hnb-1.9.18/src/evilloop.c:264:9: warning: Possible null pointer dereference: (pos)?(pos->right):0 [nullPointer] hnb-1.9.18/src/evilloop.c:127:8: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/expanded.c:39:4: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/expanded.c:51:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/expanded.c:63:4: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/expanded.c:76:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file.c:159:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file.c:182:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file.c:200:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file.c:88:22: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/file.c:113:23: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/file.c:117:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/file.c:141:23: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/file_ascii.c:108:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/file_ascii.c:49:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_ascii.c:76:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_ascii.c:113:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_ascii.c:133:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_ascii.c:91:2: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] hnb-1.9.18/src/file_ascii.c:93:4: note: Found duplicate branches for 'if' and 'else'. hnb-1.9.18/src/file_ascii.c:91:2: note: Found duplicate branches for 'if' and 'else'. hnb-1.9.18/src/file_ascii.c:79:73: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/file_binary.c:86:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/file_binary.c:92:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_binary.c:102:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_binary.c:120:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_binary.c:169:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_binary.c:139:6: warning: Identical condition '!moredata', second condition is always false [identicalConditionAfterEarlyExit] hnb-1.9.18/src/file_binary.c:137:6: note: If condition '!moredata' is true, the function will return/exit hnb-1.9.18/src/file_binary.c:139:6: note: Testing identical condition '!moredata' hnb-1.9.18/src/file_binary.c:149:11: warning: If memory allocation fails, then there is a possible null pointer dereference: att_name [nullPointerOutOfMemory] hnb-1.9.18/src/file_binary.c:148:20: note: Assuming allocation function fails hnb-1.9.18/src/file_binary.c:148:20: note: Assignment 'att_name=malloc(len+1)', assigned value is 0 hnb-1.9.18/src/file_binary.c:149:11: note: Null pointer dereference hnb-1.9.18/src/file_binary.c:153:11: warning: If memory allocation fails, then there is a possible null pointer dereference: att_data [nullPointerOutOfMemory] hnb-1.9.18/src/file_binary.c:152:20: note: Assuming allocation function fails hnb-1.9.18/src/file_binary.c:152:20: note: Assignment 'att_data=malloc(len+1)', assigned value is 0 hnb-1.9.18/src/file_binary.c:153:11: note: Null pointer dereference hnb-1.9.18/src/file_binary.c:50:18: style: Variable 'att' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/file_binary.c:60:18: style: Variable 'att' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/file_help.c:58:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_help.c:89:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_help.c:103:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_help.c:63:12: style: Variable 'lastlevel' is assigned a value that is never used. [unreadVariable] hnb-1.9.18/src/file_help.c:81:13: style: Variable 'lastlevel' is assigned a value that is never used. [unreadVariable] hnb-1.9.18/src/file_hnb.c:115:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/file_hnb.c:121:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_hnb.c:146:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_hnb.c:173:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_hnb.c:183:4: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_hnb.c:266:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_hnb.c:179:12: style: Condition 'type==t_error' is always false [knownConditionTrueFalse] hnb-1.9.18/src/file_hnb.c:202:16: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: att_name [nullPointerOutOfMemory] hnb-1.9.18/src/file_hnb.c:193:26: note: Assuming allocation function fails hnb-1.9.18/src/file_hnb.c:193:26: note: Assignment 'att_name=strdup(rdata)', assigned value is 0 hnb-1.9.18/src/file_hnb.c:202:16: note: Null pointer dereference hnb-1.9.18/src/file_html.c:65:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/file_html.c:172:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/file_html.c:70:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_html.c:133:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_html.c:177:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_html.c:227:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_html.c:86:9: style: Variable 'flags' is assigned a value that is never used. [unreadVariable] hnb-1.9.18/src/file_opml.c:100:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/file_opml.c:106:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_opml.c:136:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_opml.c:157:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_opml.c:167:4: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_opml.c:211:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_opml.c:163:12: style: Condition 'type==t_error' is always false [knownConditionTrueFalse] hnb-1.9.18/src/file_ps.c:73:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/file_ps.c:78:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_ps.c:228:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_xml.c:157:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/file_xml.c:162:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_xml.c:173:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_xml.c:224:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_xml.c:234:4: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_xml.c:331:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/file_xml.c:271:6: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] hnb-1.9.18/src/file_xml.c:274:8: note: Found duplicate branches for 'if' and 'else'. hnb-1.9.18/src/file_xml.c:271:6: note: Found duplicate branches for 'if' and 'else'. hnb-1.9.18/src/file_xml.c:62:28: style: Parameter 'haystack' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/file_xml.c:62:44: style: Parameter 'needles' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/file_xml.c:182:8: style: Variable 'tdata' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/file_xml.c:88:9: style: Variable 'flags' is assigned a value that is never used. [unreadVariable] hnb-1.9.18/src/hnb.c:51:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/hnb.c:152:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/libcli/cli.c:413:6: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/libcli/cli.c:420:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/libcli/cli.c:449:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/libcli/cli.c:50:11: style: Condition '1+1==2' is always true [knownConditionTrueFalse] hnb-1.9.18/src/libcli/cli.c:48:3: warning: If memory allocation fails, then there is a possible null pointer dereference: bp [nullPointerOutOfMemory] hnb-1.9.18/src/libcli/cli.c:42:19: note: Assuming allocation function fails hnb-1.9.18/src/libcli/cli.c:42:19: note: Assignment 'tbuf=malloc(78+1)', assigned value is 0 hnb-1.9.18/src/libcli/cli.c:44:10: note: bp is assigned 'tbuf' here. hnb-1.9.18/src/libcli/cli.c:48:3: note: Null pointer dereference hnb-1.9.18/src/libcli/cli.c:48:7: warning: If memory allocation fails, then there is a possible null pointer dereference: wp [nullPointerOutOfMemory] hnb-1.9.18/src/libcli/cli.c:43:19: note: Assuming allocation function fails hnb-1.9.18/src/libcli/cli.c:43:19: note: Assignment 'word=malloc(78+1)', assigned value is 0 hnb-1.9.18/src/libcli/cli.c:45:10: note: wp is assigned 'word' here. hnb-1.9.18/src/libcli/cli.c:48:7: note: Null pointer dereference hnb-1.9.18/src/libcli/cli.c:82:16: warning: If memory allocation fails, then there is a possible null pointer dereference: tbuf [nullPointerOutOfMemory] hnb-1.9.18/src/libcli/cli.c:42:19: note: Assuming allocation function fails hnb-1.9.18/src/libcli/cli.c:42:19: note: Assignment 'tbuf=malloc(78+1)', assigned value is 0 hnb-1.9.18/src/libcli/cli.c:82:16: note: Null pointer dereference hnb-1.9.18/src/libcli/cli.c:148:3: warning: If memory allocation fails, then there is a possible null pointer dereference: titem [nullPointerOutOfMemory] hnb-1.9.18/src/libcli/cli.c:147:26: note: Assuming allocation function fails hnb-1.9.18/src/libcli/cli.c:147:17: note: Assignment 'titem=items=malloc(sizeof(struct ItemT))', assigned value is 0 hnb-1.9.18/src/libcli/cli.c:148:3: note: Null pointer dereference hnb-1.9.18/src/libcli/cli.c:159:3: warning: If memory allocation fails, then there is a possible null pointer dereference: titem [nullPointerOutOfMemory] hnb-1.9.18/src/libcli/cli.c:157:24: note: Assuming allocation function fails hnb-1.9.18/src/libcli/cli.c:157:24: note: Assignment 'titem->next=malloc(sizeof(struct ItemT))', assigned value is 0 hnb-1.9.18/src/libcli/cli.c:158:16: note: Assignment 'titem=titem->next', assigned value is 0 hnb-1.9.18/src/libcli/cli.c:159:3: note: Null pointer dereference hnb-1.9.18/src/libcli/cli.c:162:2: warning: If memory allocation fails, then there is a possible null pointer dereference: titem [nullPointerOutOfMemory] hnb-1.9.18/src/libcli/cli.c:147:26: note: Assuming allocation function fails hnb-1.9.18/src/libcli/cli.c:147:17: note: Assignment 'titem=items=malloc(sizeof(struct ItemT))', assigned value is 0 hnb-1.9.18/src/libcli/cli.c:162:2: note: Null pointer dereference hnb-1.9.18/src/libcli/cli.c:163:2: warning: If memory allocation fails, then there is a possible null pointer dereference: titem [nullPointerOutOfMemory] hnb-1.9.18/src/libcli/cli.c:147:26: note: Assuming allocation function fails hnb-1.9.18/src/libcli/cli.c:147:17: note: Assignment 'titem=items=malloc(sizeof(struct ItemT))', assigned value is 0 hnb-1.9.18/src/libcli/cli.c:163:2: note: Null pointer dereference hnb-1.9.18/src/libcli/cli.c:164:2: warning: If memory allocation fails, then there is a possible null pointer dereference: titem [nullPointerOutOfMemory] hnb-1.9.18/src/libcli/cli.c:147:26: note: Assuming allocation function fails hnb-1.9.18/src/libcli/cli.c:147:17: note: Assignment 'titem=items=malloc(sizeof(struct ItemT))', assigned value is 0 hnb-1.9.18/src/libcli/cli.c:164:2: note: Null pointer dereference hnb-1.9.18/src/libcli/cli.c:165:2: warning: If memory allocation fails, then there is a possible null pointer dereference: titem [nullPointerOutOfMemory] hnb-1.9.18/src/libcli/cli.c:147:26: note: Assuming allocation function fails hnb-1.9.18/src/libcli/cli.c:147:17: note: Assignment 'titem=items=malloc(sizeof(struct ItemT))', assigned value is 0 hnb-1.9.18/src/libcli/cli.c:165:2: note: Null pointer dereference hnb-1.9.18/src/libcli/cli.c:133:59: style:inconclusive: Function 'cli_add_item' argument 5 names different: declaration '' definition 'usage'. [funcArgNamesDifferentUnnamed] hnb-1.9.18/src/libcli/cli.c:357:12: style: Local variable 'titem' shadows outer variable [shadowVariable] hnb-1.9.18/src/libcli/cli.c:346:11: note: Shadowed declaration hnb-1.9.18/src/libcli/cli.c:357:12: note: Shadow variable hnb-1.9.18/src/libcli/cli.c:46:5: style: Variable 'dp' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/libcli/cli.c:133:59: style: Parameter 'usage' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/libcli/cli.c:179:37: style: Parameter 'helptext' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/libcli/cli.c:309:9: style: Variable 'titem' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/libcli/cli.c:331:11: style: Variable 'titem' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/libcli/cli.c:346:11: style: Variable 'titem' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/libcli/cli.c:357:12: style: Variable 'titem' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/libcli/cli.c:385:46: style: Parameter 'data' can be declared as pointer to const. However it seems that 'help' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hnb-1.9.18/src/libcli/cli.c:220:2: note: You might need to cast the function pointer here hnb-1.9.18/src/libcli/cli.c:385:46: note: Parameter 'data' can be declared as pointer to const hnb-1.9.18/src/libcli/cli.c:423:47: style: Parameter 'data' can be declared as pointer to const. However it seems that 'vars' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hnb-1.9.18/src/libcli/cli.c:221:2: note: You might need to cast the function pointer here hnb-1.9.18/src/libcli/cli.c:423:47: note: Parameter 'data' can be declared as pointer to const hnb-1.9.18/src/libcli/cli.c:452:27: style: Parameter 'variable' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/libcli/cli.c:453:10: style: Variable 'titem' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/libcli/cli.c:470:25: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/libcli/cli.c:321:14: style: Variable 'matches' is assigned a value that is never used. [unreadVariable] hnb-1.9.18/src/libcli/cli_history.c:41:28: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/libcli/cli_tokenize.c:238:10: warning: If memory allocation fails, then there is a possible null pointer dereference: argv [nullPointerOutOfMemory] hnb-1.9.18/src/libcli/cli_tokenize.c:236:14: note: Assuming allocation function fails hnb-1.9.18/src/libcli/cli_tokenize.c:236:14: note: Assignment 'argv=malloc(sizeof(char*)*(tokens+1)+sizeof(char)*(total_length+tokens))', assigned value is 0 hnb-1.9.18/src/libcli/cli_tokenize.c:238:10: note: Null pointer dereference hnb-1.9.18/src/libcli/cli_tokenize.c:241:3: warning: If memory allocation fails, then there is a possible null pointer dereference: argv [nullPointerOutOfMemory] hnb-1.9.18/src/libcli/cli_tokenize.c:236:14: note: Assuming allocation function fails hnb-1.9.18/src/libcli/cli_tokenize.c:236:14: note: Assignment 'argv=malloc(sizeof(char*)*(tokens+1)+sizeof(char)*(total_length+tokens))', assigned value is 0 hnb-1.9.18/src/libcli/cli_tokenize.c:241:3: note: Null pointer dereference hnb-1.9.18/src/libcli/cli_tokenize.c:240:23: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] hnb-1.9.18/src/libcli/cli_tokenize.c:236:14: note: Assuming allocation function fails hnb-1.9.18/src/libcli/cli_tokenize.c:236:14: note: Assignment 'argv=malloc(sizeof(char*)*(tokens+1)+sizeof(char)*(total_length+tokens))', assigned value is 0 hnb-1.9.18/src/libcli/cli_tokenize.c:240:23: note: Null pointer addition hnb-1.9.18/src/libcli/cli_tokenize.c:89:48: style: Parameter 'chars' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/libcli/cli_tokenize.c:173:36: style: Parameter 'chars' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/libcli/cli_tokenize.c:198:18: style: Variable 'input' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/libcli/cli_tokenize.c:248:18: style: Variable 'input' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/libcli/test.c:43:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/libcli/test.c:26:38: style: Parameter 'data' can be declared as pointer to const. However it seems that 'echo' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hnb-1.9.18/src/libcli/test.c:36:2: note: You might need to cast the function pointer here hnb-1.9.18/src/libcli/test.c:26:38: note: Parameter 'data' can be declared as pointer to const hnb-1.9.18/src/node.c:148:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/node.c:152:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/node.c:162:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/node.c:169:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/node.c:177:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/node.c:180:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/node.c:193:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/node.c:31:10: warning: If memory allocation fails, then there is a possible null pointer dereference: node [nullPointerOutOfMemory] hnb-1.9.18/src/node.c:30:31: note: Assuming allocation function fails hnb-1.9.18/src/node.c:30:15: note: Assignment 'node=(struct Node*)malloc(sizeof(struct Node))', assigned value is 0 hnb-1.9.18/src/node.c:31:10: note: Null pointer dereference hnb-1.9.18/src/node.c:104:2: warning: If memory allocation fails, then there is a possible null pointer dereference: att [nullPointerOutOfMemory] hnb-1.9.18/src/node.c:103:32: note: Assuming allocation function fails hnb-1.9.18/src/node.c:103:8: note: Assignment 'att=(struct Node_AttItem*)malloc(sizeof(struct Node_AttItem))', assigned value is 0 hnb-1.9.18/src/node.c:104:2: note: Null pointer dereference hnb-1.9.18/src/node.c:105:2: warning: If memory allocation fails, then there is a possible null pointer dereference: att [nullPointerOutOfMemory] hnb-1.9.18/src/node.c:103:32: note: Assuming allocation function fails hnb-1.9.18/src/node.c:103:8: note: Assignment 'att=(struct Node_AttItem*)malloc(sizeof(struct Node_AttItem))', assigned value is 0 hnb-1.9.18/src/node.c:105:2: note: Null pointer dereference hnb-1.9.18/src/node.c:106:2: warning: If memory allocation fails, then there is a possible null pointer dereference: att [nullPointerOutOfMemory] hnb-1.9.18/src/node.c:103:32: note: Assuming allocation function fails hnb-1.9.18/src/node.c:103:8: note: Assignment 'att=(struct Node_AttItem*)malloc(sizeof(struct Node_AttItem))', assigned value is 0 hnb-1.9.18/src/node.c:106:2: note: Null pointer dereference hnb-1.9.18/src/node.c:70:34: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/node.c:72:16: style: Variable 'att' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/node.c:87:34: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/node.c:87:46: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/node.c:112:36: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/path.c:226:3: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] hnb-1.9.18/src/path.c:128:3: style: Variable 'node' is assigned an expression that holds the same value. [redundantAssignment] hnb-1.9.18/src/path.c:122:7: note: node is assigned 'root' here. hnb-1.9.18/src/path.c:128:3: note: Variable 'node' is assigned an expression that holds the same value. hnb-1.9.18/src/path.c:258:3: style: Variable 'node' is assigned an expression that holds the same value. [redundantAssignment] hnb-1.9.18/src/path.c:252:7: note: node is assigned 'root' here. hnb-1.9.18/src/path.c:258:3: note: Variable 'node' is assigned an expression that holds the same value. hnb-1.9.18/src/path.c:32:41: style:inconclusive: Function 'matchpath2node' argument 2 names different: declaration 'root' definition 'start'. [funcArgNamesDifferent] hnb-1.9.18/src/path.h:11:41: note: Function 'matchpath2node' argument 2 names different: declaration 'root' definition 'start'. hnb-1.9.18/src/path.c:32:41: note: Function 'matchpath2node' argument 2 names different: declaration 'root' definition 'start'. hnb-1.9.18/src/path.c:78:36: style:inconclusive: Function 'path2node' argument 2 names different: declaration 'root' definition 'start'. [funcArgNamesDifferent] hnb-1.9.18/src/path.h:8:36: note: Function 'path2node' argument 2 names different: declaration 'root' definition 'start'. hnb-1.9.18/src/path.c:78:36: note: Function 'path2node' argument 2 names different: declaration 'root' definition 'start'. hnb-1.9.18/src/path.c:249:8: style: Variable 'token' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/path.c:292:15: style: struct member 'Path::parent' is never used. [unusedStructMember] hnb-1.9.18/src/path.c:293:15: style: struct member 'Path::node' is never used. [unusedStructMember] hnb-1.9.18/src/prefs.c:87:15: error: syntax error [syntaxError] hnb-1.9.18/src/query.c:39:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/query.c:32:8: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/search.c:40:5: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/search.c:49:5: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/search.c:56:5: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/search.c:59:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/search.c:62:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/spell.c:57:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/spell.c:80:4: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/spell.c:95:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/statcmds.c:38:4: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/statcmds.c:56:4: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/statcmds.c:67:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/statcmds.c:117:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/statcmds.c:30:8: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/statcmds.c:86:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/state.c:61:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/state.c:77:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/state.c:50:4: style: Variable 'j' is assigned a value that is never used. [unreadVariable] hnb-1.9.18/src/tokenizer.c:25:23: style: Parameter 'haystack' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/tree.c:43:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable down [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/tree.c:108:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable right [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/tree.c:209:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable right [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/tree.c:43:7: warning: Possible null pointer dereference: (node)?(node->left):0 [nullPointer] hnb-1.9.18/src/tree.c:44:11: warning: Possible null pointer dereference: (node)?(node->left):0 [nullPointer] hnb-1.9.18/src/tree.c:108:7: warning: Possible null pointer dereference: (node)?(node->left):0 [nullPointer] hnb-1.9.18/src/tree.c:110:4: warning: Possible null pointer dereference: temp [nullPointer] hnb-1.9.18/src/tree.c:109:11: note: Assignment 'temp=(new)?(new->left):0', assigned value is 0 hnb-1.9.18/src/tree.c:110:4: note: Null pointer dereference hnb-1.9.18/src/tree.c:121:9: warning: Possible null pointer dereference: node [nullPointer] hnb-1.9.18/src/tree.c:371:16: note: Calling function 'node_remove', 1st argument '(root)?(root->down):0' value is 0 hnb-1.9.18/src/tree.c:192:35: note: Calling function 'node_insert_down', 1st argument 'node' value is 0 hnb-1.9.18/src/tree.c:121:9: note: Null pointer dereference hnb-1.9.18/src/tree.c:125:2: warning: Possible null pointer dereference: node [nullPointer] hnb-1.9.18/src/tree.c:371:16: note: Calling function 'node_remove', 1st argument '(root)?(root->down):0' value is 0 hnb-1.9.18/src/tree.c:192:35: note: Calling function 'node_insert_down', 1st argument 'node' value is 0 hnb-1.9.18/src/tree.c:125:2: note: Null pointer dereference hnb-1.9.18/src/tree.c:187:14: warning: Possible null pointer dereference: node [nullPointer] hnb-1.9.18/src/tree.c:371:16: note: Calling function 'node_remove', 1st argument '(root)?(root->down):0' value is 0 hnb-1.9.18/src/tree.c:187:14: note: Null pointer dereference hnb-1.9.18/src/tree.c:187:33: warning: Possible null pointer dereference: node [nullPointer] hnb-1.9.18/src/tree.c:371:16: note: Calling function 'node_remove', 1st argument '(root)?(root->down):0' value is 0 hnb-1.9.18/src/tree.c:187:33: note: Null pointer dereference hnb-1.9.18/src/tree.c:209:29: warning: Possible null pointer dereference: (node)?(node->left):0 [nullPointer] hnb-1.9.18/src/tree.c:476:10: style: Local variable 'tnode' shadows outer variable [shadowVariable] hnb-1.9.18/src/tree.c:462:8: note: Shadowed declaration hnb-1.9.18/src/tree.c:476:10: note: Shadow variable hnb-1.9.18/src/tree.c:231:25: style: Parameter 'match' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/tree.c:249:31: style: Parameter 'match' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/tree.c:289:8: style: Variable 'pptr' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/tree.c:289:15: style: Variable 'sptr' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/tree.c:317:35: style: Parameter 'match' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/tree.c:332:39: style: Parameter 'match' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/tree.c:384:22: style: Variable 'Aright' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/tree.c:385:22: style: Variable 'Bright' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/tree.c:407:9: style: Variable 'Aright' is assigned a value that is never used. [unreadVariable] hnb-1.9.18/src/tree.c:411:9: style: Variable 'Bright' is assigned a value that is never used. [unreadVariable] hnb-1.9.18/src/tree_misc.c:212:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable down [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/tree_misc.c:35:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/tree_misc.c:39:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/tree_misc.c:72:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/tree_misc.c:88:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/tree_misc.c:118:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/tree_misc.c:143:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/tree_misc.c:147:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/tree_misc.c:179:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/tree_misc.c:193:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/tree_misc.c:197:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/tree_misc.c:223:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/tree_misc.c:245:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/tree_misc.c:266:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/tree_misc.c:295:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/tree_misc.c:313:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/tree_misc.c:328:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/tree_misc.c:212:3: warning: Possible null pointer dereference: (snode)?(snode->up):0 [nullPointer] hnb-1.9.18/src/tree_misc.c:248:13: style: Variable 'c' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/tree_sort.c:130:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable down [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/tree_sort.c:157:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable right [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/tree_sort.c:158:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/tree_sort.c:130:3: warning: Possible null pointer dereference: (bottom)?(bottom->up):0 [nullPointer] hnb-1.9.18/src/tree_sort.c:157:3: warning: Possible null pointer dereference: (pos)?(pos->left):0 [nullPointer] hnb-1.9.18/src/tree_sort.c:28:30: style: Parameter 'b' can be declared as pointer to const. However it seems that 'cmp_random' is a callback function, if 'b' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hnb-1.9.18/src/tree_sort.c:152:37: note: You might need to cast the function pointer here hnb-1.9.18/src/tree_sort.c:28:30: note: Parameter 'b' can be declared as pointer to const hnb-1.9.18/src/tree_sort.c:28:39: style: Parameter 'a' can be declared as pointer to const. However it seems that 'cmp_random' is a callback function, if 'a' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hnb-1.9.18/src/tree_sort.c:152:37: note: You might need to cast the function pointer here hnb-1.9.18/src/tree_sort.c:28:39: note: Parameter 'a' can be declared as pointer to const hnb-1.9.18/src/tree_sort.c:34:8: style: Variable 'r' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/tree_todo.c:274:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/tree_todo.c:282:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/tree_todo.c:291:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/tree_todo.c:132:6: style: Condition '!prefs_bullet_empty' is always true [knownConditionTrueFalse] hnb-1.9.18/src/tree_todo.c:28:38: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/tree_todo.c:61:8: style: Variable 'got' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/tree_todo.c:133:9: style: Variable 'data' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/ui.c:51:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/ui_binding.c:257:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/ui_binding.c:260:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/ui_binding.c:283:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/ui_binding.c:296:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/ui_binding.c:400:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/ui_binding.c:205:32: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/ui_binding.c:224:33: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/ui_binding.c:237:34: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/ui_binding.c:253:57: style: Parameter 'data' can be declared as pointer to const. However it seems that 'ui_context_cmd' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hnb-1.9.18/src/ui_binding.c:408:30: note: You might need to cast the function pointer here hnb-1.9.18/src/ui_binding.c:253:57: note: Parameter 'data' can be declared as pointer to const hnb-1.9.18/src/ui_binding.c:263:67: style: Parameter 'action_name' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/ui_binding.c:264:14: style: Parameter 'action_params' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/ui_binding.c:275:54: style: Parameter 'data' can be declared as pointer to const. However it seems that 'ui_bind_cmd' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hnb-1.9.18/src/ui_binding.c:405:27: note: You might need to cast the function pointer here hnb-1.9.18/src/ui_binding.c:275:54: note: Parameter 'data' can be declared as pointer to const hnb-1.9.18/src/ui_binding.c:398:52: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/ui_cli.c:203:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cli_precmd [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/ui_cli.c:246:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/ui_cli.c:68:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/ui_cli.c:84:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/ui_cli.c:98:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/ui_cli.c:107:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/ui_cli.c:116:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/ui_cli.c:121:4: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/ui_cli.c:131:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/ui_cli.c:133:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/ui_cli.c:135:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/ui_cli.c:191:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/ui_cli.c:168:7: style: Condition 'recurse' is always false [knownConditionTrueFalse] hnb-1.9.18/src/ui_cli.c:159:16: note: Assignment 'recurse=0', assigned value is 0 hnb-1.9.18/src/ui_cli.c:168:7: note: Condition 'recurse' is always false hnb-1.9.18/src/ui_cli.c:177:3: style: Condition 'indicate_sub' is always true [knownConditionTrueFalse] hnb-1.9.18/src/ui_cli.c:160:21: note: Assignment 'indicate_sub=1', assigned value is 1 hnb-1.9.18/src/ui_cli.c:177:3: note: Condition 'indicate_sub' is always true hnb-1.9.18/src/ui_cli.c:183:7: style: Condition 'recurse' is always false [knownConditionTrueFalse] hnb-1.9.18/src/ui_cli.c:159:16: note: Assignment 'recurse=0', assigned value is 0 hnb-1.9.18/src/ui_cli.c:183:7: note: Condition 'recurse' is always false hnb-1.9.18/src/ui_cli.c:135:2: style:inconclusive: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] hnb-1.9.18/src/ui_cli.c:142:8: style: Variable 'c' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/ui_draw.c:48:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flags [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/ui_draw.c:172:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/ui_draw.c:454:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_NORMAL [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/ui_draw.c:648:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLS [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/ui_draw.c:718:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/ui_draw.c:536:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/ui_draw.c:621:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/ui_draw.c:361:6: error: Array 'path[512]' accessed at index -1, which is out of bounds. [negativeIndex] hnb-1.9.18/src/ui_draw.c:342:12: note: Assignment 'pos=0', assigned value is 0 hnb-1.9.18/src/ui_draw.c:348:25: note: Assuming condition is false hnb-1.9.18/src/ui_draw.c:361:6: note: Negative array index hnb-1.9.18/src/ui_draw.c:448:17: style: Condition 'drawmode!=drawmode_test' is always true [knownConditionTrueFalse] hnb-1.9.18/src/ui_draw.c:355:3: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] hnb-1.9.18/src/ui_draw.c:394:2: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] hnb-1.9.18/src/ui_draw.c:257:60: style: Parameter 'node' can be declared as pointer to const. However it seems that 'draw_dummy' is a callback function, if 'node' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hnb-1.9.18/src/ui_draw.c:505:55: note: You might need to cast the function pointer here hnb-1.9.18/src/ui_draw.c:257:60: note: Parameter 'node' can be declared as pointer to const hnb-1.9.18/src/ui_draw.c:273:62: style: Parameter 'node' can be declared as pointer to const. However it seems that 'draw_spacing' is a callback function, if 'node' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hnb-1.9.18/src/ui_draw.c:505:15: note: You might need to cast the function pointer here hnb-1.9.18/src/ui_draw.c:273:62: note: Parameter 'node' can be declared as pointer to const hnb-1.9.18/src/ui_draw.c:424:8: style: Variable 'got' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/ui_draw.c:528:54: style: Parameter 'data' can be declared as pointer to const. However it seems that 'display_format_cmd' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hnb-1.9.18/src/ui_draw.c:830:37: note: You might need to cast the function pointer here hnb-1.9.18/src/ui_draw.c:528:54: note: Parameter 'data' can be declared as pointer to const hnb-1.9.18/src/ui_draw.c:694:33: style: Parameter 'input' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/ui_edit.c:185:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable right [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/ui_edit.c:234:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/ui_edit.c:350:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/ui_edit.c:51:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/ui_edit.c:70:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/ui_edit.c:218:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/ui_edit.c:110:46: warning: Either the condition 'cursor_pos' is redundant or the array 'input[4096]' is accessed at index -1, which is out of bounds. [negativeIndex] hnb-1.9.18/src/ui_edit.c:108:12: note: Assuming that condition 'cursor_pos' is not redundant hnb-1.9.18/src/ui_edit.c:110:46: note: Negative array index hnb-1.9.18/src/ui_edit.c:185:10: warning: Possible null pointer dereference: (pos)?(pos->down):0 [nullPointer] hnb-1.9.18/src/ui_edit.c:224:12: style: Variable 'c' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/ui_edit.c:285:12: style: Variable 'tmpcommand' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/ui_menu.c:55:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/ui_menu.c:115:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/ui_menu.c:145:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/ui_menu.c:61:12: style: Variable 'c' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/ui_menu.c:117:9: style: Variable 'submenu' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/ui_menu.c:118:9: style: Variable 'label' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/ui_menu.c:119:9: style: Variable 'command' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/ui_overlay.c:70:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/ui_overlay.c:81:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLS [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/ui_overlay.c:171:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/ui_overlay.c:51:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/ui_overlay.c:141:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/ui_overlay.c:92:15: style: Condition '1+1==2' is always true [knownConditionTrueFalse] hnb-1.9.18/src/ui_overlay.c:90:3: warning: If memory allocation fails, then there is a possible null pointer dereference: bp [nullPointerOutOfMemory] hnb-1.9.18/src/ui_overlay.c:86:21: note: Assuming allocation function fails hnb-1.9.18/src/ui_overlay.c:86:12: note: Assignment 'bp=tbuf=malloc(width)', assigned value is 0 hnb-1.9.18/src/ui_overlay.c:90:3: note: Null pointer dereference hnb-1.9.18/src/ui_overlay.c:90:9: warning: If memory allocation fails, then there is a possible null pointer dereference: wp [nullPointerOutOfMemory] hnb-1.9.18/src/ui_overlay.c:87:21: note: Assuming allocation function fails hnb-1.9.18/src/ui_overlay.c:87:12: note: Assignment 'wp=word=malloc(width)', assigned value is 0 hnb-1.9.18/src/ui_overlay.c:90:9: note: Null pointer dereference hnb-1.9.18/src/ui_overlay.c:47:58: style: Parameter 'data' can be declared as pointer to const. However it seems that 'ui_helptext_cmd' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hnb-1.9.18/src/ui_overlay.c:211:31: note: You might need to cast the function pointer here hnb-1.9.18/src/ui_overlay.c:47:58: note: Parameter 'data' can be declared as pointer to const hnb-1.9.18/src/ui_overlay.c:60:27: style: Parameter 'message' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/ui_overlay.c:78:27: style: Variable 'dp' can be declared as pointer to const [constVariablePointer] hnb-1.9.18/src/ui_overlay.c:132:56: style: Parameter 'data' can be declared as pointer to const. However it seems that 'ui_status_cmd' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hnb-1.9.18/src/ui_overlay.c:215:27: note: You might need to cast the function pointer here hnb-1.9.18/src/ui_overlay.c:132:56: note: Parameter 'data' can be declared as pointer to const hnb-1.9.18/src/ui_style.c:95:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLOR_WHITE [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/ui_style.c:149:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_NORMAL [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/ui_style.c:127:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/ui_style.c:140:4: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/ui_style.c:169:2: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] hnb-1.9.18/src/ui_style.c:98:32: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/ui_style.c:119:55: style: Parameter 'data' can be declared as pointer to const. However it seems that 'ui_style_cmd' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hnb-1.9.18/src/ui_style.c:178:28: note: You might need to cast the function pointer here hnb-1.9.18/src/ui_style.c:119:55: note: Parameter 'data' can be declared as pointer to const hnb-1.9.18/src/util_string.c:26:26: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/xml_tok.c:439:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] hnb-1.9.18/src/xml_tok.c:418:26: warning: Either the condition 'level>=0' is redundant or the array 'opentags[64][64]' is accessed at index -1, which is out of bounds. [negativeIndex] hnb-1.9.18/src/xml_tok.c:417:14: note: Assuming that condition 'level>=0' is not redundant hnb-1.9.18/src/xml_tok.c:418:26: note: Negative array index hnb-1.9.18/src/xml_tok.c:425:20: warning: Either the condition 'level>=0' is redundant or the array 'opentags[64][64]' is accessed at index -1, which is out of bounds. [negativeIndex] hnb-1.9.18/src/xml_tok.c:417:14: note: Assuming that condition 'level>=0' is not redundant hnb-1.9.18/src/xml_tok.c:425:20: note: Negative array index hnb-1.9.18/src/xml_tok.c:285:15: style: Condition '2+2==4' is always true [knownConditionTrueFalse] hnb-1.9.18/src/xml_tok.c:368:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] hnb-1.9.18/src/xml_tok.c:367:15: note: Assuming allocation function fails hnb-1.9.18/src/xml_tok.c:367:15: note: Assignment 'ret=calloc(1,sizeof(struct xml_tok_state))', assigned value is 0 hnb-1.9.18/src/xml_tok.c:368:2: note: Null pointer dereference hnb-1.9.18/src/xml_tok.c:369:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] hnb-1.9.18/src/xml_tok.c:367:15: note: Assuming allocation function fails hnb-1.9.18/src/xml_tok.c:367:15: note: Assignment 'ret=calloc(1,sizeof(struct xml_tok_state))', assigned value is 0 hnb-1.9.18/src/xml_tok.c:369:2: note: Null pointer dereference hnb-1.9.18/src/xml_tok.c:308:21: style: Same expression on both sides of '&&' because '!squote' and '!dquote' represent the same value. [knownConditionTrueFalse] hnb-1.9.18/src/xml_tok.c:294:17: note: 'squote' is assigned value '0' here. hnb-1.9.18/src/xml_tok.c:295:17: note: 'dquote' is assigned value '0' here. hnb-1.9.18/src/xml_tok.c:308:21: note: Same expression on both sides of '&&' because '!squote' and '!dquote' represent the same value. hnb-1.9.18/src/xml_tok.c:312:21: style: Same expression on both sides of '&&' because '!squote' and '!dquote' represent the same value. [knownConditionTrueFalse] hnb-1.9.18/src/xml_tok.c:294:17: note: 'squote' is assigned value '0' here. hnb-1.9.18/src/xml_tok.c:295:17: note: 'dquote' is assigned value '0' here. hnb-1.9.18/src/xml_tok.c:312:21: note: Same expression on both sides of '&&' because '!squote' and '!dquote' represent the same value. hnb-1.9.18/src/xml_tok.c:397:35: style:inconclusive: Function 'html_tok_get' argument 1 names different: declaration 't' definition 's'. [funcArgNamesDifferent] hnb-1.9.18/src/xml_tok.h:58:35: note: Function 'html_tok_get' argument 1 names different: declaration 't' definition 's'. hnb-1.9.18/src/xml_tok.c:397:35: note: Function 'html_tok_get' argument 1 names different: declaration 't' definition 's'. hnb-1.9.18/src/xml_tok.c:102:33: style: Parameter 'chars' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/xml_tok.c:249:36: style: Parameter 'chars' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/xml_tok.c:386:28: style: Parameter 's' can be declared as pointer to const [constParameterPointer] hnb-1.9.18/src/xml_tok.c:93:6: style: struct member 'state_entry::resetbuf' is never used. [unusedStructMember] hnb-1.9.18/src/node.c:91:8: error: Null pointer dereference: node [ctunullpointer] hnb-1.9.18/src/evilloop.c:240:18: note: Calling function node_set, 1st argument is null hnb-1.9.18/src/node.c:91:8: note: Dereferencing argument node that is null hnb-1.9.18/src/tree.c:121:9: error: Null pointer dereference: node [ctunullpointer] hnb-1.9.18/src/tree.c:371:16: note: Calling function 'node_remove', 1st argument '(root)?(root->down):0' value is 0 hnb-1.9.18/src/tree.c:192:34: note: Calling function node_insert_down, 1st argument is null hnb-1.9.18/src/tree.c:121:9: note: Dereferencing argument node that is null hnb-1.9.18/src/tree.c:187:14: error: Null pointer dereference: node [ctunullpointer] hnb-1.9.18/src/file_xml.c:195:17: note: Calling function node_remove, 1st argument is null hnb-1.9.18/src/tree.c:187:14: note: Dereferencing argument node that is null diff: head hnb-1.9.18/src/actions.c:51:8: style: Variable 'start' can be declared as pointer to const [constVariablePointer] 2.20.0 hnb-1.9.18/src/file_binary.c:150:5: warning: If memory allocation fails, then there is a possible null pointer dereference: att_name [nullPointerOutOfMemory] hnb-1.9.18/src/file_binary.c:148:20: note: Assuming allocation function fails hnb-1.9.18/src/file_binary.c:148:20: note: Assignment 'att_name=malloc(len+1)', assigned value is 0 hnb-1.9.18/src/file_binary.c:150:5: note: Null pointer dereference 2.20.0 hnb-1.9.18/src/file_binary.c:154:5: warning: If memory allocation fails, then there is a possible null pointer dereference: att_data [nullPointerOutOfMemory] hnb-1.9.18/src/file_binary.c:152:20: note: Assuming allocation function fails hnb-1.9.18/src/file_binary.c:152:20: note: Assignment 'att_data=malloc(len+1)', assigned value is 0 hnb-1.9.18/src/file_binary.c:154:5: note: Null pointer dereference head hnb-1.9.18/src/file_xml.c:182:8: style: Variable 'tdata' can be declared as pointer to const [constVariablePointer] head hnb-1.9.18/src/libcli/cli.c:133:59: style:inconclusive: Function 'cli_add_item' argument 5 names different: declaration '' definition 'usage'. [funcArgNamesDifferentUnnamed] DONE