2025-07-04 07:55 ftp://ftp.de.debian.org/debian/pool/main/libc/libcitadel/libcitadel_917.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 --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: a214e76 (2025-07-03 20:23:32 +0200) count: 424 413 elapsed-time: 2.8 3.0 head-timing-info: old-timing-info: head results: libcitadel/lib/b64/cencode.c:17:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable step_A [valueFlowBailoutIncompleteVar] libcitadel/lib/b64/cencode.c:46:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable step_A [valueFlowBailoutIncompleteVar] libcitadel/lib/b64/cdecode.c:21:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable step_a [valueFlowBailoutIncompleteVar] libcitadel/lib/b64/cdecode.c:41:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable step_a [valueFlowBailoutIncompleteVar] libcitadel/lib/b64/cdecode.c:16:17: warning: Either the condition 'value_in>decoding_size' is redundant or the array 'decoding[80]' is accessed at index 80, which is out of bounds. [arrayIndexOutOfBoundsCond] libcitadel/lib/b64/cdecode.c:15:31: note: Assuming that condition 'value_in>decoding_size' is not redundant libcitadel/lib/b64/cdecode.c:16:17: note: Array index out of bounds libcitadel/lib/b64/cencode.c:82:64: style: Parameter 'state_in' can be declared as pointer to const [constParameterPointer] libcitadel/lib/json.c:66:9: warning: If memory allocation fails, then there is a possible null pointer dereference: Ret [nullPointerOutOfMemory] libcitadel/lib/json.c:65:27: note: Assuming allocation function fails libcitadel/lib/json.c:65:8: note: Assignment 'Ret=(struct JsonValue*)malloc(sizeof(struct JsonValue))', assigned value is 0 libcitadel/lib/json.c:66:9: note: Null pointer dereference libcitadel/lib/json.c:67:2: warning: If memory allocation fails, then there is a possible null pointer dereference: Ret [nullPointerOutOfMemory] libcitadel/lib/json.c:65:27: note: Assuming allocation function fails libcitadel/lib/json.c:65:8: note: Assignment 'Ret=(struct JsonValue*)malloc(sizeof(struct JsonValue))', assigned value is 0 libcitadel/lib/json.c:67:2: note: Null pointer dereference libcitadel/lib/json.c:70:2: warning: If memory allocation fails, then there is a possible null pointer dereference: Ret [nullPointerOutOfMemory] libcitadel/lib/json.c:65:27: note: Assuming allocation function fails libcitadel/lib/json.c:65:8: note: Assignment 'Ret=(struct JsonValue*)malloc(sizeof(struct JsonValue))', assigned value is 0 libcitadel/lib/json.c:70:2: note: Null pointer dereference libcitadel/lib/json.c:79:9: warning: If memory allocation fails, then there is a possible null pointer dereference: Ret [nullPointerOutOfMemory] libcitadel/lib/json.c:78:27: note: Assuming allocation function fails libcitadel/lib/json.c:78:8: note: Assignment 'Ret=(struct JsonValue*)malloc(sizeof(struct JsonValue))', assigned value is 0 libcitadel/lib/json.c:79:9: note: Null pointer dereference libcitadel/lib/json.c:80:2: warning: If memory allocation fails, then there is a possible null pointer dereference: Ret [nullPointerOutOfMemory] libcitadel/lib/json.c:78:27: note: Assuming allocation function fails libcitadel/lib/json.c:78:8: note: Assignment 'Ret=(struct JsonValue*)malloc(sizeof(struct JsonValue))', assigned value is 0 libcitadel/lib/json.c:80:2: note: Null pointer dereference libcitadel/lib/json.c:83:2: warning: If memory allocation fails, then there is a possible null pointer dereference: Ret [nullPointerOutOfMemory] libcitadel/lib/json.c:78:27: note: Assuming allocation function fails libcitadel/lib/json.c:78:8: note: Assignment 'Ret=(struct JsonValue*)malloc(sizeof(struct JsonValue))', assigned value is 0 libcitadel/lib/json.c:83:2: note: Null pointer dereference libcitadel/lib/json.c:93:9: warning: If memory allocation fails, then there is a possible null pointer dereference: Ret [nullPointerOutOfMemory] libcitadel/lib/json.c:92:27: note: Assuming allocation function fails libcitadel/lib/json.c:92:8: note: Assignment 'Ret=(struct JsonValue*)malloc(sizeof(struct JsonValue))', assigned value is 0 libcitadel/lib/json.c:93:9: note: Null pointer dereference libcitadel/lib/json.c:94:2: warning: If memory allocation fails, then there is a possible null pointer dereference: Ret [nullPointerOutOfMemory] libcitadel/lib/json.c:92:27: note: Assuming allocation function fails libcitadel/lib/json.c:92:8: note: Assignment 'Ret=(struct JsonValue*)malloc(sizeof(struct JsonValue))', assigned value is 0 libcitadel/lib/json.c:94:2: note: Null pointer dereference libcitadel/lib/json.c:97:2: warning: If memory allocation fails, then there is a possible null pointer dereference: Ret [nullPointerOutOfMemory] libcitadel/lib/json.c:92:27: note: Assuming allocation function fails libcitadel/lib/json.c:92:8: note: Assignment 'Ret=(struct JsonValue*)malloc(sizeof(struct JsonValue))', assigned value is 0 libcitadel/lib/json.c:97:2: note: Null pointer dereference libcitadel/lib/json.c:98:15: warning: If memory allocation fails, then there is a possible null pointer dereference: Ret [nullPointerOutOfMemory] libcitadel/lib/json.c:92:27: note: Assuming allocation function fails libcitadel/lib/json.c:92:8: note: Assignment 'Ret=(struct JsonValue*)malloc(sizeof(struct JsonValue))', assigned value is 0 libcitadel/lib/json.c:98:15: note: Null pointer dereference libcitadel/lib/json.c:109:9: warning: If memory allocation fails, then there is a possible null pointer dereference: Ret [nullPointerOutOfMemory] libcitadel/lib/json.c:108:27: note: Assuming allocation function fails libcitadel/lib/json.c:108:8: note: Assignment 'Ret=(struct JsonValue*)malloc(sizeof(struct JsonValue))', assigned value is 0 libcitadel/lib/json.c:109:9: note: Null pointer dereference libcitadel/lib/json.c:110:2: warning: If memory allocation fails, then there is a possible null pointer dereference: Ret [nullPointerOutOfMemory] libcitadel/lib/json.c:108:27: note: Assuming allocation function fails libcitadel/lib/json.c:108:8: note: Assignment 'Ret=(struct JsonValue*)malloc(sizeof(struct JsonValue))', assigned value is 0 libcitadel/lib/json.c:110:2: note: Null pointer dereference libcitadel/lib/json.c:113:2: warning: If memory allocation fails, then there is a possible null pointer dereference: Ret [nullPointerOutOfMemory] libcitadel/lib/json.c:108:27: note: Assuming allocation function fails libcitadel/lib/json.c:108:8: note: Assignment 'Ret=(struct JsonValue*)malloc(sizeof(struct JsonValue))', assigned value is 0 libcitadel/lib/json.c:113:2: note: Null pointer dereference libcitadel/lib/json.c:114:15: warning: If memory allocation fails, then there is a possible null pointer dereference: Ret [nullPointerOutOfMemory] libcitadel/lib/json.c:108:27: note: Assuming allocation function fails libcitadel/lib/json.c:108:8: note: Assignment 'Ret=(struct JsonValue*)malloc(sizeof(struct JsonValue))', assigned value is 0 libcitadel/lib/json.c:114:15: note: Null pointer dereference libcitadel/lib/json.c:123:9: warning: If memory allocation fails, then there is a possible null pointer dereference: Ret [nullPointerOutOfMemory] libcitadel/lib/json.c:122:27: note: Assuming allocation function fails libcitadel/lib/json.c:122:8: note: Assignment 'Ret=(struct JsonValue*)malloc(sizeof(struct JsonValue))', assigned value is 0 libcitadel/lib/json.c:123:9: note: Null pointer dereference libcitadel/lib/json.c:124:2: warning: If memory allocation fails, then there is a possible null pointer dereference: Ret [nullPointerOutOfMemory] libcitadel/lib/json.c:122:27: note: Assuming allocation function fails libcitadel/lib/json.c:122:8: note: Assignment 'Ret=(struct JsonValue*)malloc(sizeof(struct JsonValue))', assigned value is 0 libcitadel/lib/json.c:124:2: note: Null pointer dereference libcitadel/lib/json.c:127:2: warning: If memory allocation fails, then there is a possible null pointer dereference: Ret [nullPointerOutOfMemory] libcitadel/lib/json.c:122:27: note: Assuming allocation function fails libcitadel/lib/json.c:122:8: note: Assignment 'Ret=(struct JsonValue*)malloc(sizeof(struct JsonValue))', assigned value is 0 libcitadel/lib/json.c:127:2: note: Null pointer dereference libcitadel/lib/json.c:136:9: warning: If memory allocation fails, then there is a possible null pointer dereference: Ret [nullPointerOutOfMemory] libcitadel/lib/json.c:135:27: note: Assuming allocation function fails libcitadel/lib/json.c:135:8: note: Assignment 'Ret=(struct JsonValue*)malloc(sizeof(struct JsonValue))', assigned value is 0 libcitadel/lib/json.c:136:9: note: Null pointer dereference libcitadel/lib/json.c:137:2: warning: If memory allocation fails, then there is a possible null pointer dereference: Ret [nullPointerOutOfMemory] libcitadel/lib/json.c:135:27: note: Assuming allocation function fails libcitadel/lib/json.c:135:8: note: Assignment 'Ret=(struct JsonValue*)malloc(sizeof(struct JsonValue))', assigned value is 0 libcitadel/lib/json.c:137:2: note: Null pointer dereference libcitadel/lib/json.c:140:2: warning: If memory allocation fails, then there is a possible null pointer dereference: Ret [nullPointerOutOfMemory] libcitadel/lib/json.c:135:27: note: Assuming allocation function fails libcitadel/lib/json.c:135:8: note: Assignment 'Ret=(struct JsonValue*)malloc(sizeof(struct JsonValue))', assigned value is 0 libcitadel/lib/json.c:140:2: note: Null pointer dereference libcitadel/lib/json.c:149:9: warning: If memory allocation fails, then there is a possible null pointer dereference: Ret [nullPointerOutOfMemory] libcitadel/lib/json.c:148:27: note: Assuming allocation function fails libcitadel/lib/json.c:148:8: note: Assignment 'Ret=(struct JsonValue*)malloc(sizeof(struct JsonValue))', assigned value is 0 libcitadel/lib/json.c:149:9: note: Null pointer dereference libcitadel/lib/json.c:150:2: warning: If memory allocation fails, then there is a possible null pointer dereference: Ret [nullPointerOutOfMemory] libcitadel/lib/json.c:148:27: note: Assuming allocation function fails libcitadel/lib/json.c:148:8: note: Assignment 'Ret=(struct JsonValue*)malloc(sizeof(struct JsonValue))', assigned value is 0 libcitadel/lib/json.c:150:2: note: Null pointer dereference libcitadel/lib/json.c:153:2: warning: If memory allocation fails, then there is a possible null pointer dereference: Ret [nullPointerOutOfMemory] libcitadel/lib/json.c:148:27: note: Assuming allocation function fails libcitadel/lib/json.c:148:8: note: Assignment 'Ret=(struct JsonValue*)malloc(sizeof(struct JsonValue))', assigned value is 0 libcitadel/lib/json.c:153:2: note: Null pointer dereference libcitadel/lib/json.c:162:9: warning: If memory allocation fails, then there is a possible null pointer dereference: Ret [nullPointerOutOfMemory] libcitadel/lib/json.c:161:27: note: Assuming allocation function fails libcitadel/lib/json.c:161:8: note: Assignment 'Ret=(struct JsonValue*)malloc(sizeof(struct JsonValue))', assigned value is 0 libcitadel/lib/json.c:162:9: note: Null pointer dereference libcitadel/lib/json.c:163:2: warning: If memory allocation fails, then there is a possible null pointer dereference: Ret [nullPointerOutOfMemory] libcitadel/lib/json.c:161:27: note: Assuming allocation function fails libcitadel/lib/json.c:161:8: note: Assignment 'Ret=(struct JsonValue*)malloc(sizeof(struct JsonValue))', assigned value is 0 libcitadel/lib/json.c:163:2: note: Null pointer dereference libcitadel/lib/json.c:167:3: warning: If memory allocation fails, then there is a possible null pointer dereference: Ret [nullPointerOutOfMemory] libcitadel/lib/json.c:161:27: note: Assuming allocation function fails libcitadel/lib/json.c:161:8: note: Assignment 'Ret=(struct JsonValue*)malloc(sizeof(struct JsonValue))', assigned value is 0 libcitadel/lib/json.c:167:3: note: Null pointer dereference libcitadel/lib/json.c:169:3: warning: If memory allocation fails, then there is a possible null pointer dereference: Ret [nullPointerOutOfMemory] libcitadel/lib/json.c:161:27: note: Assuming allocation function fails libcitadel/lib/json.c:161:8: note: Assignment 'Ret=(struct JsonValue*)malloc(sizeof(struct JsonValue))', assigned value is 0 libcitadel/lib/json.c:169:3: note: Null pointer dereference libcitadel/lib/json.c:118:64: style: Parameter 'CopyMe' can be declared as pointer to const [constParameterPointer] libcitadel/lib/urlhandling.c:51:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] libcitadel/lib/urlhandling.c:49:9: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] libcitadel/lib/urlhandling.c:48:38: note: Assuming allocation function fails libcitadel/lib/urlhandling.c:48:19: note: Assignment 'url=(struct ParsedURL*)malloc(sizeof(struct ParsedURL))', assigned value is 0 libcitadel/lib/urlhandling.c:49:9: note: Null pointer dereference libcitadel/lib/urlhandling.c:51:2: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] libcitadel/lib/urlhandling.c:48:38: note: Assuming allocation function fails libcitadel/lib/urlhandling.c:48:19: note: Assignment 'url=(struct ParsedURL*)malloc(sizeof(struct ParsedURL))', assigned value is 0 libcitadel/lib/urlhandling.c:51:2: note: Null pointer dereference libcitadel/lib/urlhandling.c:52:2: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] libcitadel/lib/urlhandling.c:48:38: note: Assuming allocation function fails libcitadel/lib/urlhandling.c:48:19: note: Assignment 'url=(struct ParsedURL*)malloc(sizeof(struct ParsedURL))', assigned value is 0 libcitadel/lib/urlhandling.c:52:2: note: Null pointer dereference libcitadel/lib/urlhandling.c:56:2: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] libcitadel/lib/urlhandling.c:48:38: note: Assuming allocation function fails libcitadel/lib/urlhandling.c:48:19: note: Assignment 'url=(struct ParsedURL*)malloc(sizeof(struct ParsedURL))', assigned value is 0 libcitadel/lib/urlhandling.c:56:2: note: Null pointer dereference libcitadel/lib/urlhandling.c:57:2: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] libcitadel/lib/urlhandling.c:48:38: note: Assuming allocation function fails libcitadel/lib/urlhandling.c:48:19: note: Assignment 'url=(struct ParsedURL*)malloc(sizeof(struct ParsedURL))', assigned value is 0 libcitadel/lib/urlhandling.c:57:2: note: Null pointer dereference libcitadel/lib/urlhandling.c:57:27: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] libcitadel/lib/urlhandling.c:48:38: note: Assuming allocation function fails libcitadel/lib/urlhandling.c:48:19: note: Assignment 'url=(struct ParsedURL*)malloc(sizeof(struct ParsedURL))', assigned value is 0 libcitadel/lib/urlhandling.c:57:27: note: Null pointer dereference libcitadel/lib/urlhandling.c:58:2: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] libcitadel/lib/urlhandling.c:48:38: note: Assuming allocation function fails libcitadel/lib/urlhandling.c:48:19: note: Assignment 'url=(struct ParsedURL*)malloc(sizeof(struct ParsedURL))', assigned value is 0 libcitadel/lib/urlhandling.c:58:2: note: Null pointer dereference libcitadel/lib/urlhandling.c:59:6: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] libcitadel/lib/urlhandling.c:48:38: note: Assuming allocation function fails libcitadel/lib/urlhandling.c:48:19: note: Assignment 'url=(struct ParsedURL*)malloc(sizeof(struct ParsedURL))', assigned value is 0 libcitadel/lib/urlhandling.c:59:6: note: Null pointer dereference libcitadel/lib/urlhandling.c:71:6: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] libcitadel/lib/urlhandling.c:48:38: note: Assuming allocation function fails libcitadel/lib/urlhandling.c:48:19: note: Assignment 'url=(struct ParsedURL*)malloc(sizeof(struct ParsedURL))', assigned value is 0 libcitadel/lib/urlhandling.c:71:6: note: Null pointer dereference libcitadel/lib/urlhandling.c:75:28: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] libcitadel/lib/urlhandling.c:48:38: note: Assuming allocation function fails libcitadel/lib/urlhandling.c:48:19: note: Assignment 'url=(struct ParsedURL*)malloc(sizeof(struct ParsedURL))', assigned value is 0 libcitadel/lib/urlhandling.c:75:28: note: Null pointer dereference libcitadel/lib/urlhandling.c:76:18: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] libcitadel/lib/urlhandling.c:48:38: note: Assuming allocation function fails libcitadel/lib/urlhandling.c:48:19: note: Assignment 'url=(struct ParsedURL*)malloc(sizeof(struct ParsedURL))', assigned value is 0 libcitadel/lib/urlhandling.c:76:18: note: Null pointer dereference libcitadel/lib/urlhandling.c:45:39: style: Parameter 'UrlStr' can be declared as pointer to const [constParameterPointer] libcitadel/lib/tools.c:69:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libcitadel/lib/tools.c:658:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libcitadel/lib/vcard.c:54:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vCard [valueFlowBailoutIncompleteVar] libcitadel/lib/vcard.c:99:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vCardProp [valueFlowBailoutIncompleteVar] libcitadel/lib/vcard.c:173:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vCardProp [valueFlowBailoutIncompleteVar] libcitadel/lib/vcard.c:218:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] libcitadel/lib/vcard.c:247:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CTDL_VCARD_MAGIC [valueFlowBailoutIncompleteVar] libcitadel/lib/vcard.c:273:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CTDL_VCARD_MAGIC [valueFlowBailoutIncompleteVar] libcitadel/lib/vcard.c:308:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CTDL_VCARD_MAGIC [valueFlowBailoutIncompleteVar] libcitadel/lib/hash.c:927:12: warning: Identical condition 'Hash==NULL', second condition is always false [identicalConditionAfterEarlyExit] libcitadel/lib/hash.c:923:11: note: If condition 'Hash==NULL' is true, the function will return/exit libcitadel/lib/hash.c:927:12: note: Testing identical condition 'Hash==NULL' libcitadel/lib/hash.c:602:20: style: Condition 'SearchPos>0' is always true [knownConditionTrueFalse] libcitadel/lib/hash.c:585:20: note: Assuming that condition 'SearchPos>0' is not redundant libcitadel/lib/hash.c:589:41: note: Assuming condition is false libcitadel/lib/hash.c:602:20: note: Condition 'SearchPos>0' is always true libcitadel/lib/hash.c:930:20: style: Condition 'At->Position>Hash->nLookupTableItems' is always false [knownConditionTrueFalse] libcitadel/lib/hash.c:928:20: note: Assuming that condition 'At->Position>=Hash->nLookupTableItems' is not redundant libcitadel/lib/hash.c:930:20: note: Condition 'At->Position>Hash->nLookupTableItems' is always false libcitadel/lib/hash.c:982:20: style: Condition 'At->Position>Hash->nLookupTableItems' is always false [knownConditionTrueFalse] libcitadel/lib/hash.c:980:20: note: Assuming that condition 'At->Position>=Hash->nLookupTableItems' is not redundant libcitadel/lib/hash.c:982:20: note: Condition 'At->Position>Hash->nLookupTableItems' is always false libcitadel/lib/hash.c:1018:20: style: Condition 'At->Position>Hash->nLookupTableItems' is always false [knownConditionTrueFalse] libcitadel/lib/hash.c:1016:20: note: Assuming that condition 'At->Position>=Hash->nLookupTableItems' is not redundant libcitadel/lib/hash.c:1018:20: note: Condition 'At->Position>Hash->nLookupTableItems' is always false libcitadel/lib/hash.c:1051:20: style: Condition 'At->Position>Hash->nLookupTableItems' is always false [knownConditionTrueFalse] libcitadel/lib/hash.c:1049:20: note: Assuming that condition 'At->Position>=Hash->nLookupTableItems' is not redundant libcitadel/lib/hash.c:1051:20: note: Condition 'At->Position>Hash->nLookupTableItems' is always false libcitadel/lib/hash.c:1073:20: style: Condition 'At->Position>Hash->nLookupTableItems' is always false [knownConditionTrueFalse] libcitadel/lib/hash.c:1071:20: note: Assuming that condition 'At->Position>=Hash->nLookupTableItems' is not redundant libcitadel/lib/hash.c:1073:20: note: Condition 'At->Position>Hash->nLookupTableItems' is always false libcitadel/lib/hash.c:1084:18: style: Condition 'At->Position>Hash->nLookupTableItems' is always false [knownConditionTrueFalse] libcitadel/lib/hash.c:1082:25: note: Assuming that condition 'At->Position>=Hash->nLookupTableItems' is not redundant libcitadel/lib/hash.c:1084:18: note: Condition 'At->Position>Hash->nLookupTableItems' is always false libcitadel/lib/hash.c:792:59: style:inconclusive: Function 'GetKey' argument 4 names different: declaration 'Data' definition 'Payload'. [funcArgNamesDifferent] libcitadel/lib/libcitadel.h:532:59: note: Function 'GetKey' argument 4 names different: declaration 'Data' definition 'Payload'. libcitadel/lib/hash.c:792:59: note: Function 'GetKey' argument 4 names different: declaration 'Data' definition 'Payload'. libcitadel/lib/hash.c:1282:22: style:inconclusive: Function 'ParseMSet' argument 1 names different: declaration 'MsetList' definition 'MSetList'. [funcArgNamesDifferent] libcitadel/lib/libcitadel.h:556:22: note: Function 'ParseMSet' argument 1 names different: declaration 'MsetList' definition 'MSetList'. libcitadel/lib/hash.c:1282:22: note: Function 'ParseMSet' argument 1 names different: declaration 'MsetList' definition 'MSetList'. libcitadel/lib/hash.c:252:32: style: Parameter 'TestHash' can be declared as pointer to const [constParameterPointer] libcitadel/lib/hash.c:314:24: style: Parameter 'Hash' can be declared as pointer to const [constParameterPointer] libcitadel/lib/hash.c:550:41: style: Parameter 'Hash' can be declared as pointer to const [constParameterPointer] libcitadel/lib/hash.c:792:22: style: Parameter 'Hash' can be declared as pointer to const [constParameterPointer] libcitadel/lib/hash.c:792:34: style: Parameter 'HKey' can be declared as pointer to const [constParameterPointer] libcitadel/lib/hash.c:977:33: style: Parameter 'Hash' can be declared as pointer to const [constParameterPointer] libcitadel/lib/hash.c:977:48: style: Parameter 'At' can be declared as pointer to const [constParameterPointer] libcitadel/lib/hash.c:1044:41: style: Parameter 'At' can be declared as pointer to const [constParameterPointer] libcitadel/lib/hash.c:1068:27: style: Parameter 'Hash' can be declared as pointer to const [constParameterPointer] libcitadel/lib/hash.c:1144:11: style: Variable 'HKey1' can be declared as pointer to const [constVariablePointer] libcitadel/lib/hash.c:1144:19: style: Variable 'HKey2' can be declared as pointer to const [constVariablePointer] libcitadel/lib/hash.c:1159:11: style: Variable 'HKey1' can be declared as pointer to const [constVariablePointer] libcitadel/lib/hash.c:1159:19: style: Variable 'HKey2' can be declared as pointer to const [constVariablePointer] libcitadel/lib/hash.c:1174:11: style: Variable 'HKey1' can be declared as pointer to const [constVariablePointer] libcitadel/lib/hash.c:1174:19: style: Variable 'HKey2' can be declared as pointer to const [constVariablePointer] libcitadel/lib/hash.c:1261:35: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] libcitadel/lib/hash.c:1282:40: style: Parameter 'MSetStr' can be declared as pointer to const [constParameterPointer] libcitadel/lib/vnote.c:50:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vnote [valueFlowBailoutIncompleteVar] libcitadel/lib/vnote.c:188:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CTDL_VNOTE_MAGIC [valueFlowBailoutIncompleteVar] libcitadel/lib/vnote.c:250:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CTDL_VNOTE_MAGIC [valueFlowBailoutIncompleteVar] libcitadel/lib/vnote.c:85:11: warning: If memory allocation fails, then there is a possible null pointer dereference: thisline [nullPointerOutOfMemory] libcitadel/lib/vnote.c:84:21: note: Assuming allocation function fails libcitadel/lib/vnote.c:84:21: note: Assignment 'thisline=malloc(thisline_len+2)', assigned value is 0 libcitadel/lib/vnote.c:85:11: note: Null pointer dereference libcitadel/lib/vnote.c:86:4: warning: If memory allocation fails, then there is a possible null pointer dereference: thisline [nullPointerOutOfMemory] libcitadel/lib/vnote.c:84:21: note: Assuming allocation function fails libcitadel/lib/vnote.c:84:21: note: Assignment 'thisline=malloc(thisline_len+2)', assigned value is 0 libcitadel/lib/vnote.c:86:4: note: Null pointer dereference libcitadel/lib/vnote.c:91:26: warning: If memory allocation fails, then there is a possible null pointer dereference: thisline [nullPointerOutOfMemory] libcitadel/lib/vnote.c:90:21: note: Assuming allocation function fails libcitadel/lib/vnote.c:90:21: note: Assignment 'thisline=strdup(ptr)', assigned value is 0 libcitadel/lib/vnote.c:91:26: note: Null pointer dereference libcitadel/lib/vnote.c:200:71: style: Parameter 'label' can be declared as pointer to const [constParameterPointer] libcitadel/lib/vnote.c:205:8: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] libcitadel/lib/vcard.c:155:11: warning: If memory allocation fails, then there is a possible null pointer dereference: namebuf [nullPointerOutOfMemory] libcitadel/lib/vcard.c:153:20: note: Assuming allocation function fails libcitadel/lib/vcard.c:153:20: note: Assignment 'namebuf=malloc(colonpos+1)', assigned value is 0 libcitadel/lib/vcard.c:155:11: note: Null pointer dereference libcitadel/lib/vcard.c:156:4: warning: If memory allocation fails, then there is a possible null pointer dereference: namebuf [nullPointerOutOfMemory] libcitadel/lib/vcard.c:153:20: note: Assuming allocation function fails libcitadel/lib/vcard.c:153:20: note: Assignment 'namebuf=malloc(colonpos+1)', assigned value is 0 libcitadel/lib/vcard.c:156:4: note: Null pointer dereference libcitadel/lib/vcard.c:157:11: warning: If memory allocation fails, then there is a possible null pointer dereference: valuebuf [nullPointerOutOfMemory] libcitadel/lib/vcard.c:154:21: note: Assuming allocation function fails libcitadel/lib/vcard.c:154:21: note: Assignment 'valuebuf=malloc(nlpos-colonpos+1)', assigned value is 0 libcitadel/lib/vcard.c:157:11: note: Null pointer dereference libcitadel/lib/vcard.c:158:4: warning: If memory allocation fails, then there is a possible null pointer dereference: valuebuf [nullPointerOutOfMemory] libcitadel/lib/vcard.c:154:21: note: Assuming allocation function fails libcitadel/lib/vcard.c:154:21: note: Assignment 'valuebuf=malloc(nlpos-colonpos+1)', assigned value is 0 libcitadel/lib/vcard.c:158:4: note: Null pointer dereference libcitadel/lib/vcard.c:160:20: warning: If memory allocation fails, then there is a possible null pointer dereference: namebuf [nullPointerOutOfMemory] libcitadel/lib/vcard.c:153:20: note: Assuming allocation function fails libcitadel/lib/vcard.c:153:20: note: Assignment 'namebuf=malloc(colonpos+1)', assigned value is 0 libcitadel/lib/vcard.c:160:20: note: Null pointer dereference libcitadel/lib/vcard.c:114:32: style: Parameter 'vtext' can be declared as pointer to const [constParameterPointer] libcitadel/lib/vcard.c:212:45: style: Parameter 'propname' can be declared as pointer to const [constParameterPointer] libcitadel/lib/vcard.c:270:44: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] libcitadel/lib/vcard.c:270:56: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] libcitadel/lib/vcard.c:305:14: style: Variable 'is_utf8' is assigned a value that is never used. [unreadVariable] libcitadel/lib/wildfire.c:51:12: style:inconclusive: Function 'WildFireMessage' argument 3 names different: declaration 'lineno' definition 'LineNo'. [funcArgNamesDifferent] libcitadel/lib/libcitadel.h:661:12: note: Function 'WildFireMessage' argument 3 names different: declaration 'lineno' definition 'LineNo'. libcitadel/lib/wildfire.c:51:12: note: Function 'WildFireMessage' argument 3 names different: declaration 'lineno' definition 'LineNo'. libcitadel/lib/xdgmime/test-mime.c:120:23: style: Parameter 'argv' can be declared as const array [constParameter] libcitadel/lib/tools.c:369:11: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] libcitadel/lib/tools.c:368:25: note: Assuming allocation function fails libcitadel/lib/tools.c:368:11: note: Assignment 'result=(char*)malloc(sizeof("=?UTF-8?B?")+4+length*2)', assigned value is 0 libcitadel/lib/tools.c:369:11: note: Null pointer dereference libcitadel/lib/tools.c:371:16: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] libcitadel/lib/tools.c:368:25: note: Assuming allocation function fails libcitadel/lib/tools.c:368:11: note: Assignment 'result=(char*)malloc(sizeof("=?UTF-8?B?")+4+length*2)', assigned value is 0 libcitadel/lib/tools.c:371:16: note: Null pointer dereference libcitadel/lib/tools.c:372:9: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] libcitadel/lib/tools.c:368:25: note: Assuming allocation function fails libcitadel/lib/tools.c:368:11: note: Assignment 'result=(char*)malloc(sizeof("=?UTF-8?B?")+4+length*2)', assigned value is 0 libcitadel/lib/tools.c:372:9: note: Null pointer dereference libcitadel/lib/tools.c:373:2: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] libcitadel/lib/tools.c:368:25: note: Assuming allocation function fails libcitadel/lib/tools.c:368:11: note: Assignment 'result=(char*)malloc(sizeof("=?UTF-8?B?")+4+length*2)', assigned value is 0 libcitadel/lib/tools.c:373:2: note: Null pointer dereference libcitadel/lib/tools.c:374:2: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] libcitadel/lib/tools.c:368:25: note: Assuming allocation function fails libcitadel/lib/tools.c:368:11: note: Assignment 'result=(char*)malloc(sizeof("=?UTF-8?B?")+4+length*2)', assigned value is 0 libcitadel/lib/tools.c:374:2: note: Null pointer dereference libcitadel/lib/tools.c:370:26: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libcitadel/lib/tools.c:368:25: note: Assuming allocation function fails libcitadel/lib/tools.c:368:11: note: Assignment 'result=(char*)malloc(sizeof("=?UTF-8?B?")+4+length*2)', assigned value is 0 libcitadel/lib/tools.c:370:26: note: Null pointer addition libcitadel/lib/tools.c:209:12: style: Variable 's' can be declared as pointer to const [constVariablePointer] libcitadel/lib/tools.c:384:8: style: Variable 'a' can be declared as pointer to const [constVariablePointer] libcitadel/lib/tools.c:413:8: style: Variable 'last_nonspace' can be declared as pointer to const [constVariablePointer] libcitadel/lib/tools.c:690:47: style: Parameter 'strbuf' can be declared as pointer to const [constParameterPointer] libcitadel/lib/tools.c:693:8: style: Variable 'ec' can be declared as pointer to const [constVariablePointer] libcitadel/lib/tools.c:780:26: style: Variable 'p' can be declared as pointer to const [constVariablePointer] libcitadel/lib/tools.c:865:26: style: Variable 'p' can be declared as pointer to const [constVariablePointer] libcitadel/lib/tools.c:999:20: style: Parameter 'search' can be declared as pointer to const [constParameterPointer] libcitadel/lib/tools.c:999:34: style: Parameter 'patn' can be declared as pointer to const [constParameterPointer] libcitadel/lib/xdgmime/test-mime-data.c:130:7: error: Resource leak: file [resourceLeak] libcitadel/lib/xdgmime/test-mime-data.c:189:9: style: Variable 'testfile' can be declared as pointer to const [constVariablePointer] libcitadel/lib/xdgmime/test-mime-data.c:189:20: style: Variable 'mimetype' can be declared as pointer to const [constVariablePointer] libcitadel/lib/xdgmime/test-mime-data.c:189:31: style: Variable 'flags' can be declared as pointer to const [constVariablePointer] libcitadel/lib/tools.c:647:11: style: Variable 'len' is assigned a value that is never used. [unreadVariable] libcitadel/lib/xdgmime/xdgmimealias.c:69:3: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmimealias.c:67:17: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmimealias.c:67:17: note: Assignment 'list=malloc(sizeof(struct XdgAliasList))', assigned value is 0 libcitadel/lib/xdgmime/xdgmimealias.c:69:3: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmimealias.c:70:3: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmimealias.c:67:17: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmimealias.c:67:17: note: Assignment 'list=malloc(sizeof(struct XdgAliasList))', assigned value is 0 libcitadel/lib/xdgmime/xdgmimealias.c:70:3: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmimealias.c:99:44: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] libcitadel/lib/xdgmime/xdgmimealias.c:169:42: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] libcitadel/lib/xdgmime/xdgmime.c:146:4: error: Common realloc mistake: '_xdg_mime_caches' nulled but not freed upon failure [memleakOnRealloc] libcitadel/lib/xdgmime/xdgmime.c:103:3: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:102:19: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:102:19: note: Assignment 'retval=calloc(1,sizeof(struct XdgDirTimeList))', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:103:3: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmime.c:132:11: warning: If memory allocation fails, then there is a possible null pointer dereference: file_name [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:131:22: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:131:22: note: Assignment 'file_name=malloc(strlen(directory)+strlen("/mime/mime.cache")+1)', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:132:11: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmime.c:132:42: warning: If memory allocation fails, then there is a possible null pointer dereference: file_name [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:131:22: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:131:22: note: Assignment 'file_name=malloc(strlen(directory)+strlen("/mime/mime.cache")+1)', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:132:42: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmime.c:157:11: warning: If memory allocation fails, then there is a possible null pointer dereference: file_name [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:156:22: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:156:22: note: Assignment 'file_name=malloc(strlen(directory)+strlen("/mime/globs")+1)', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:157:11: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmime.c:157:42: warning: If memory allocation fails, then there is a possible null pointer dereference: file_name [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:156:22: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:156:22: note: Assignment 'file_name=malloc(strlen(directory)+strlen("/mime/globs")+1)', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:157:42: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmime.c:174:11: warning: If memory allocation fails, then there is a possible null pointer dereference: file_name [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:173:22: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:173:22: note: Assignment 'file_name=malloc(strlen(directory)+strlen("/mime/magic")+1)', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:174:11: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmime.c:174:42: warning: If memory allocation fails, then there is a possible null pointer dereference: file_name [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:173:22: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:173:22: note: Assignment 'file_name=malloc(strlen(directory)+strlen("/mime/magic")+1)', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:174:42: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmime.c:191:11: warning: If memory allocation fails, then there is a possible null pointer dereference: file_name [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:190:22: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:190:22: note: Assignment 'file_name=malloc(strlen(directory)+strlen("/mime/aliases")+1)', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:191:11: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmime.c:191:42: warning: If memory allocation fails, then there is a possible null pointer dereference: file_name [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:190:22: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:190:22: note: Assignment 'file_name=malloc(strlen(directory)+strlen("/mime/aliases")+1)', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:191:42: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmime.c:196:11: warning: If memory allocation fails, then there is a possible null pointer dereference: file_name [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:195:22: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:195:22: note: Assignment 'file_name=malloc(strlen(directory)+strlen("/mime/subclasses")+1)', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:196:11: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmime.c:196:42: warning: If memory allocation fails, then there is a possible null pointer dereference: file_name [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:195:22: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:195:22: note: Assignment 'file_name=malloc(strlen(directory)+strlen("/mime/subclasses")+1)', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:196:42: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmime.c:229:12: warning: If memory allocation fails, then there is a possible null pointer dereference: guessed_xdg_home [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:228:30: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:228:30: note: Assignment 'guessed_xdg_home=malloc(strlen(home)+strlen("/.local/share/")+1)', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:229:12: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmime.c:230:12: warning: If memory allocation fails, then there is a possible null pointer dereference: guessed_xdg_home [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:228:30: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:228:30: note: Assignment 'guessed_xdg_home=malloc(strlen(home)+strlen("/.local/share/")+1)', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:230:12: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmime.c:267:16: warning: If memory allocation fails, then there is a possible null pointer dereference: dir [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:266:20: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:266:20: note: Assignment 'dir=malloc(len+1)', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:267:16: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmime.c:268:7: warning: If memory allocation fails, then there is a possible null pointer dereference: dir [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:266:20: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:266:20: note: Assignment 'dir=malloc(len+1)', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:268:7: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmime.c:285:43: warning: If memory allocation fails, then there is a possible null pointer dereference: file_path [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:336:22: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:336:22: note: Assignment 'file_name=malloc(strlen(directory)+strlen("/mime/mime.cache")+1)', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:339:42: note: Calling function 'xdg_lookup_cache_for_file', 1st argument 'file_name' value is 0 libcitadel/lib/xdgmime/xdgmime.c:285:43: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmime.c:337:11: warning: If memory allocation fails, then there is a possible null pointer dereference: file_name [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:336:22: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:336:22: note: Assignment 'file_name=malloc(strlen(directory)+strlen("/mime/mime.cache")+1)', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:337:11: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmime.c:337:42: warning: If memory allocation fails, then there is a possible null pointer dereference: file_name [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:336:22: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:336:22: note: Assignment 'file_name=malloc(strlen(directory)+strlen("/mime/mime.cache")+1)', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:337:42: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmime.c:355:11: warning: If memory allocation fails, then there is a possible null pointer dereference: file_name [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:354:22: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:354:22: note: Assignment 'file_name=malloc(strlen(directory)+strlen("/mime/globs")+1)', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:355:11: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmime.c:355:42: warning: If memory allocation fails, then there is a possible null pointer dereference: file_name [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:354:22: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:354:22: note: Assignment 'file_name=malloc(strlen(directory)+strlen("/mime/globs")+1)', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:355:42: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmime.c:366:11: warning: If memory allocation fails, then there is a possible null pointer dereference: file_name [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:365:22: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:365:22: note: Assignment 'file_name=malloc(strlen(directory)+strlen("/mime/magic")+1)', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:366:11: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmime.c:366:42: warning: If memory allocation fails, then there is a possible null pointer dereference: file_name [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:365:22: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:365:22: note: Assignment 'file_name=malloc(strlen(directory)+strlen("/mime/magic")+1)', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:366:42: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmime.c:790:11: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:789:29: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:789:12: note: Assignment 'result=(char**)malloc(n)', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:790:11: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmime.c:831:3: warning: If memory allocation fails, then there is a possible null pointer dereference: list_el [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:830:20: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:830:20: note: Assignment 'list_el=calloc(1,sizeof(struct XdgCallbackList))', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:831:3: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmime.c:832:3: warning: If memory allocation fails, then there is a possible null pointer dereference: list_el [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:830:20: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:830:20: note: Assignment 'list_el=calloc(1,sizeof(struct XdgCallbackList))', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:832:3: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmime.c:833:3: warning: If memory allocation fails, then there is a possible null pointer dereference: list_el [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:830:20: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:830:20: note: Assignment 'list_el=calloc(1,sizeof(struct XdgCallbackList))', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:833:3: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmime.c:834:3: warning: If memory allocation fails, then there is a possible null pointer dereference: list_el [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:830:20: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:830:20: note: Assignment 'list_el=calloc(1,sizeof(struct XdgCallbackList))', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:834:3: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmime.c:835:3: warning: If memory allocation fails, then there is a possible null pointer dereference: list_el [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:830:20: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:830:20: note: Assignment 'list_el=calloc(1,sizeof(struct XdgCallbackList))', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:835:3: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmime.c:836:7: warning: If memory allocation fails, then there is a possible null pointer dereference: list_el [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:830:20: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:830:20: note: Assignment 'list_el=calloc(1,sizeof(struct XdgCallbackList))', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:836:7: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmime.c:648:41: style:inconclusive: Function 'xdg_mime_unalias_mime_type' argument 1 names different: declaration 'mime' definition 'mime_type'. [funcArgNamesDifferent] libcitadel/lib/xdgmime/xdgmime.h:98:58: note: Function 'xdg_mime_unalias_mime_type' argument 1 names different: declaration 'mime' definition 'mime_type'. libcitadel/lib/xdgmime/xdgmime.c:648:41: note: Function 'xdg_mime_unalias_mime_type' argument 1 names different: declaration 'mime' definition 'mime_type'. libcitadel/lib/xdgmime/xdgmime.c:763:42: style:inconclusive: Function 'xdg_mime_mime_type_subclass' argument 1 names different: declaration 'mime_a' definition 'mime'. [funcArgNamesDifferent] libcitadel/lib/xdgmime/xdgmime.h:89:65: note: Function 'xdg_mime_mime_type_subclass' argument 1 names different: declaration 'mime_a' definition 'mime'. libcitadel/lib/xdgmime/xdgmime.c:763:42: note: Function 'xdg_mime_mime_type_subclass' argument 1 names different: declaration 'mime_a' definition 'mime'. libcitadel/lib/xdgmime/xdgmime.c:764:21: style:inconclusive: Function 'xdg_mime_mime_type_subclass' argument 2 names different: declaration 'mime_b' definition 'base'. [funcArgNamesDifferent] libcitadel/lib/xdgmime/xdgmime.h:90:23: note: Function 'xdg_mime_mime_type_subclass' argument 2 names different: declaration 'mime_b' definition 'base'. libcitadel/lib/xdgmime/xdgmime.c:764:21: note: Function 'xdg_mime_mime_type_subclass' argument 2 names different: declaration 'mime_b' definition 'base'. libcitadel/lib/xdgmime/xdgmime.c:683:9: style: Variable 'sep' can be declared as pointer to const [constVariablePointer] libcitadel/lib/xdgmime/xdgmimeint.c:70:22: style: Variable 'bytelength' is assigned a value that is never used. [unreadVariable] libcitadel/lib/xdgmime/xdgmimemagic.c:177:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] libcitadel/lib/xdgmime/xdgmimemagic.c:213:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] libcitadel/lib/xdgmime/xdgmimemagic.c:256:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] libcitadel/lib/xdgmime/xdgmimemagic.c:301:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] libcitadel/lib/xdgmime/xdgmimemagic.c:326:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] libcitadel/lib/stringbuf.c:2897:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gz_magic [valueFlowBailoutIncompleteVar] libcitadel/lib/stringbuf.c:2929:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] libcitadel/lib/stringbuf.c:4694:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libcitadel/lib/stringbuf.c:4773:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libcitadel/lib/stringbuf.c:4845:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libcitadel/lib/stringbuf.c:4874:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] libcitadel/lib/stringbuf.c:4944:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] libcitadel/lib/stringbuf.c:5020:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] libcitadel/lib/stringbuf.c:5188:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] libcitadel/lib/stringbuf.c:5308:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] libcitadel/lib/stringbuf.c:5442:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] libcitadel/lib/xdgmime/xdgmimemagic.c:683:13: style: Condition 'had_match' is always true [knownConditionTrueFalse] libcitadel/lib/xdgmime/xdgmimemagic.c:188:4: error: Common realloc mistake: 'retval' nulled but not freed upon failure [memleakOnRealloc] libcitadel/lib/xdgmime/xdgmimemagic.c:107:3: warning: If memory allocation fails, then there is a possible null pointer dereference: matchlet [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmimemagic.c:105:21: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmimemagic.c:105:21: note: Assignment 'matchlet=malloc(sizeof(struct XdgMimeMagicMatchlet))', assigned value is 0 libcitadel/lib/xdgmime/xdgmimemagic.c:107:3: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmimemagic.c:108:3: warning: If memory allocation fails, then there is a possible null pointer dereference: matchlet [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmimemagic.c:105:21: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmimemagic.c:105:21: note: Assignment 'matchlet=malloc(sizeof(struct XdgMimeMagicMatchlet))', assigned value is 0 libcitadel/lib/xdgmime/xdgmimemagic.c:108:3: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmimemagic.c:109:3: warning: If memory allocation fails, then there is a possible null pointer dereference: matchlet [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmimemagic.c:105:21: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmimemagic.c:105:21: note: Assignment 'matchlet=malloc(sizeof(struct XdgMimeMagicMatchlet))', assigned value is 0 libcitadel/lib/xdgmime/xdgmimemagic.c:109:3: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmimemagic.c:110:3: warning: If memory allocation fails, then there is a possible null pointer dereference: matchlet [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmimemagic.c:105:21: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmimemagic.c:105:21: note: Assignment 'matchlet=malloc(sizeof(struct XdgMimeMagicMatchlet))', assigned value is 0 libcitadel/lib/xdgmime/xdgmimemagic.c:110:3: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmimemagic.c:111:3: warning: If memory allocation fails, then there is a possible null pointer dereference: matchlet [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmimemagic.c:105:21: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmimemagic.c:105:21: note: Assignment 'matchlet=malloc(sizeof(struct XdgMimeMagicMatchlet))', assigned value is 0 libcitadel/lib/xdgmime/xdgmimemagic.c:111:3: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmimemagic.c:112:3: warning: If memory allocation fails, then there is a possible null pointer dereference: matchlet [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmimemagic.c:105:21: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmimemagic.c:105:21: note: Assignment 'matchlet=malloc(sizeof(struct XdgMimeMagicMatchlet))', assigned value is 0 libcitadel/lib/xdgmime/xdgmimemagic.c:112:3: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmimemagic.c:113:3: warning: If memory allocation fails, then there is a possible null pointer dereference: matchlet [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmimemagic.c:105:21: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmimemagic.c:105:21: note: Assignment 'matchlet=malloc(sizeof(struct XdgMimeMagicMatchlet))', assigned value is 0 libcitadel/lib/xdgmime/xdgmimemagic.c:113:3: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmimemagic.c:114:3: warning: If memory allocation fails, then there is a possible null pointer dereference: matchlet [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmimemagic.c:105:21: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmimemagic.c:105:21: note: Assignment 'matchlet=malloc(sizeof(struct XdgMimeMagicMatchlet))', assigned value is 0 libcitadel/lib/xdgmime/xdgmimemagic.c:114:3: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmimemagic.c:522:65: style: Parameter 'matchlet' can be declared as pointer to const [constParameterPointer] libcitadel/lib/xdgmime/xdgmimemagic.c:652:51: style: Parameter 'mime_magic' can be declared as pointer to const [constParameterPointer] libcitadel/lib/xdgmime/xdgmimemagic.c:223:26: style: Variable 'number_string[pos]' is assigned a value that is never used. [unreadVariable] libcitadel/lib/xdgmime/xdgmimeglob.c:341:19: style:inconclusive: Function '_xdg_glob_hash_lookup_file_name' argument 2 names different: declaration 'text' definition 'file_name'. [funcArgNamesDifferent] libcitadel/lib/xdgmime/xdgmimeglob.h:58:25: note: Function '_xdg_glob_hash_lookup_file_name' argument 2 names different: declaration 'text' definition 'file_name'. libcitadel/lib/xdgmime/xdgmimeglob.c:341:19: note: Function '_xdg_glob_hash_lookup_file_name' argument 2 names different: declaration 'text' definition 'file_name'. libcitadel/lib/xdgmime/xdgmimeparent.c:70:3: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmimeparent.c:68:17: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmimeparent.c:68:17: note: Assignment 'list=malloc(sizeof(struct XdgParentList))', assigned value is 0 libcitadel/lib/xdgmime/xdgmimeparent.c:70:3: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmimeparent.c:71:3: warning: If memory allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmimeparent.c:68:17: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmimeparent.c:68:17: note: Assignment 'list=malloc(sizeof(struct XdgParentList))', assigned value is 0 libcitadel/lib/xdgmime/xdgmimeparent.c:71:3: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmimeparent.c:104:46: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] libcitadel/lib/xdgmime/xdgmimeparent.c:204:44: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] libcitadel/lib/xdgmime/xdgmimeparent.c:115:24: error: Uninitialized variable: &key.n_parents [uninitvar] libcitadel/tests/hashlist_test.c:316:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CU_FALSE [valueFlowBailoutIncompleteVar] libcitadel/tests/hashlist_test.c:35:4: warning: If memory allocation fails, then there is a possible null pointer dereference: val [nullPointerOutOfMemory] libcitadel/tests/hashlist_test.c:34:22: note: Assuming allocation function fails libcitadel/tests/hashlist_test.c:34:9: note: Assignment 'val=(int*)malloc(sizeof(int))', assigned value is 0 libcitadel/tests/hashlist_test.c:35:4: note: Null pointer dereference libcitadel/tests/hashlist_test.c:116:3: warning: If memory allocation fails, then there is a possible null pointer dereference: val [nullPointerOutOfMemory] libcitadel/tests/hashlist_test.c:115:21: note: Assuming allocation function fails libcitadel/tests/hashlist_test.c:115:8: note: Assignment 'val=(int*)malloc(sizeof(int))', assigned value is 0 libcitadel/tests/hashlist_test.c:116:3: note: Null pointer dereference libcitadel/tests/hashlist_test.c:133:3: warning: If memory allocation fails, then there is a possible null pointer dereference: val [nullPointerOutOfMemory] libcitadel/tests/hashlist_test.c:132:21: note: Assuming allocation function fails libcitadel/tests/hashlist_test.c:132:8: note: Assignment 'val=(int*)malloc(sizeof(int))', assigned value is 0 libcitadel/tests/hashlist_test.c:133:3: note: Null pointer dereference libcitadel/tests/hashlist_test.c:306:8: style: Variable 'pTest' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/tests/hashlist_test.c:305:8: note: pTest is assigned libcitadel/tests/hashlist_test.c:306:8: note: pTest is overwritten libcitadel/tests/hashlist_test.c:307:8: style: Variable 'pTest' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/tests/hashlist_test.c:306:8: note: pTest is assigned libcitadel/tests/hashlist_test.c:307:8: note: pTest is overwritten libcitadel/tests/hashlist_test.c:43:41: style: Parameter 'testh' can be declared as pointer to const [constParameterPointer] libcitadel/tests/hashlist_test.c:232:14: style: Variable 'ScanMe' can be declared as pointer to const [constVariablePointer] libcitadel/tests/hashlist_test.c:235:10: style: Variable 'end' can be declared as pointer to const [constVariablePointer] libcitadel/tests/hashlist_test.c:307:8: style: Variable 'pTest' is assigned a value that is never used. [unreadVariable] libcitadel/tests/html_to_ascii_test.c:203:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] libcitadel/tests/mime_xdg_lookup_type.c:38:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] libcitadel/tests/html_to_ascii_test.c:117:9: style: Variable 'Source' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/tests/html_to_ascii_test.c:113:9: note: Source is assigned libcitadel/tests/html_to_ascii_test.c:117:9: note: Source is overwritten libcitadel/tests/html_to_ascii_test.c:181:10: style: Variable 'pTest' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/tests/html_to_ascii_test.c:180:10: note: pTest is assigned libcitadel/tests/html_to_ascii_test.c:181:10: note: pTest is overwritten libcitadel/tests/html_to_ascii_test.c:182:10: style: Variable 'pTest' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/tests/html_to_ascii_test.c:181:10: note: pTest is assigned libcitadel/tests/html_to_ascii_test.c:182:10: note: pTest is overwritten libcitadel/tests/html_to_ascii_test.c:183:10: style: Variable 'pTest' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/tests/html_to_ascii_test.c:182:10: note: pTest is assigned libcitadel/tests/html_to_ascii_test.c:183:10: note: pTest is overwritten libcitadel/tests/html_to_ascii_test.c:28:42: style: Parameter 'Buf' can be declared as pointer to const [constParameterPointer] libcitadel/tests/html_to_ascii_test.c:183:10: style: Variable 'pTest' is assigned a value that is never used. [unreadVariable] libcitadel/tests/html_to_ascii_test.c:186:10: style: Variable 'pTest' is assigned a value that is never used. [unreadVariable] libcitadel/tests/html_to_ascii_test.c:190:10: style: Variable 'pTest' is assigned a value that is never used. [unreadVariable] libcitadel/tests/html_to_ascii_test.c:193:10: style: Variable 'pTest' is assigned a value that is never used. [unreadVariable] libcitadel/tests/mime_xdg_lookup_type.c:22:8: style: Variable 'filename' can be declared as pointer to const [constVariablePointer] libcitadel/tests/mime_xdg_lookup_type.c:23:8: style: Variable 'IconDir' can be declared as pointer to const [constVariablePointer] libcitadel/tests/stringbuf_IO_test.c:136:35: debug: Function::addArguments found argument 'Sock' with varid 0. [varid0] libcitadel/tests/mimeparser_test.c:221:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] libcitadel/lib/xdgmime/xdgmimecache.c:896:11: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmimecache.c:895:29: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmimecache.c:895:12: note: Assignment 'result=(char**)malloc(p*sizeof(char*))', assigned value is 0 libcitadel/lib/xdgmime/xdgmimecache.c:896:11: note: Null pointer dereference libcitadel/lib/xdgmime/xdgmimecache.c:771:49: style:inconclusive: Function '_xdg_mime_cache_mime_type_subclass' argument 1 names different: declaration 'mime_a' definition 'mime'. [funcArgNamesDifferent] libcitadel/lib/xdgmime/xdgmimecache.h:68:72: note: Function '_xdg_mime_cache_mime_type_subclass' argument 1 names different: declaration 'mime_a' definition 'mime'. libcitadel/lib/xdgmime/xdgmimecache.c:771:49: note: Function '_xdg_mime_cache_mime_type_subclass' argument 1 names different: declaration 'mime_a' definition 'mime'. libcitadel/lib/xdgmime/xdgmimecache.c:772:21: style:inconclusive: Function '_xdg_mime_cache_mime_type_subclass' argument 2 names different: declaration 'mime_b' definition 'base'. [funcArgNamesDifferent] libcitadel/lib/xdgmime/xdgmimecache.h:69:23: note: Function '_xdg_mime_cache_mime_type_subclass' argument 2 names different: declaration 'mime_b' definition 'base'. libcitadel/lib/xdgmime/xdgmimecache.c:772:21: note: Function '_xdg_mime_cache_mime_type_subclass' argument 2 names different: declaration 'mime_b' definition 'base'. libcitadel/lib/xdgmime/xdgmimecache.c:157:53: style: Parameter 'cache' can be declared as pointer to const [constParameterPointer] libcitadel/lib/xdgmime/xdgmimecache.c:319:21: style: Variable 'cache' can be declared as pointer to const [constVariablePointer] libcitadel/lib/xdgmime/xdgmimecache.c:359:21: style: Variable 'cache' can be declared as pointer to const [constVariablePointer] libcitadel/lib/xdgmime/xdgmimecache.c:404:21: style: Variable 'cache' can be declared as pointer to const [constVariablePointer] libcitadel/lib/xdgmime/xdgmimecache.c:540:21: style: Variable 'cache' can be declared as pointer to const [constVariablePointer] libcitadel/lib/xdgmime/xdgmimecache.c:616:21: style: Variable 'cache' can be declared as pointer to const [constVariablePointer] libcitadel/lib/xdgmime/xdgmimecache.c:673:19: style: Parameter 'statbuf' can be declared as pointer to const [constParameterPointer] libcitadel/lib/xdgmime/xdgmimecache.c:804:21: style: Variable 'cache' can be declared as pointer to const [constVariablePointer] libcitadel/lib/xdgmime/xdgmimecache.c:867:21: style: Variable 'cache' can be declared as pointer to const [constVariablePointer] libcitadel/tests/mimeparser_test.c:35:34: style: Parameter 'name' can be declared as pointer to const. However it seems that 'list_this_part' is a callback function, if 'name' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libcitadel/tests/mimeparser_test.c:263:21: note: You might need to cast the function pointer here libcitadel/tests/mimeparser_test.c:35:34: note: Parameter 'name' can be declared as pointer to const libcitadel/tests/mimeparser_test.c:36:13: style: Parameter 'filename' can be declared as pointer to const. However it seems that 'list_this_part' is a callback function, if 'filename' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libcitadel/tests/mimeparser_test.c:263:21: note: You might need to cast the function pointer here libcitadel/tests/mimeparser_test.c:36:13: note: Parameter 'filename' can be declared as pointer to const libcitadel/tests/mimeparser_test.c:37:13: style: Parameter 'partnum' can be declared as pointer to const. However it seems that 'list_this_part' is a callback function, if 'partnum' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libcitadel/tests/mimeparser_test.c:263:21: note: You might need to cast the function pointer here libcitadel/tests/mimeparser_test.c:37:13: note: Parameter 'partnum' can be declared as pointer to const libcitadel/tests/mimeparser_test.c:38:13: style: Parameter 'disp' can be declared as pointer to const. However it seems that 'list_this_part' is a callback function, if 'disp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libcitadel/tests/mimeparser_test.c:263:21: note: You might need to cast the function pointer here libcitadel/tests/mimeparser_test.c:38:13: note: Parameter 'disp' can be declared as pointer to const libcitadel/lib/xdgmime/xdgmimecache.c:81:11: style: struct member '_XdgMimeCache::size' is never used. [unusedStructMember] libcitadel/tests/mimeparser_test.c:39:13: style: Parameter 'content' can be declared as pointer to const. However it seems that 'list_this_part' is a callback function, if 'content' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libcitadel/tests/mimeparser_test.c:263:21: note: You might need to cast the function pointer here libcitadel/tests/mimeparser_test.c:39:13: note: Parameter 'content' can be declared as pointer to const libcitadel/tests/mimeparser_test.c:40:13: style: Parameter 'cbtype' can be declared as pointer to const. However it seems that 'list_this_part' is a callback function, if 'cbtype' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libcitadel/tests/mimeparser_test.c:263:21: note: You might need to cast the function pointer here libcitadel/tests/mimeparser_test.c:40:13: note: Parameter 'cbtype' can be declared as pointer to const libcitadel/tests/mimeparser_test.c:41:13: style: Parameter 'cbcharset' can be declared as pointer to const. However it seems that 'list_this_part' is a callback function, if 'cbcharset' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libcitadel/tests/mimeparser_test.c:263:21: note: You might need to cast the function pointer here libcitadel/tests/mimeparser_test.c:41:13: note: Parameter 'cbcharset' can be declared as pointer to const libcitadel/tests/mimeparser_test.c:43:13: style: Parameter 'encoding' can be declared as pointer to const. However it seems that 'list_this_part' is a callback function, if 'encoding' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libcitadel/tests/mimeparser_test.c:263:21: note: You might need to cast the function pointer here libcitadel/tests/mimeparser_test.c:43:13: note: Parameter 'encoding' can be declared as pointer to const libcitadel/tests/mimeparser_test.c:44:13: style: Parameter 'cbid' can be declared as pointer to const. However it seems that 'list_this_part' is a callback function, if 'cbid' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libcitadel/tests/mimeparser_test.c:263:21: note: You might need to cast the function pointer here libcitadel/tests/mimeparser_test.c:44:13: note: Parameter 'cbid' can be declared as pointer to const libcitadel/tests/mimeparser_test.c:47:18: style: Variable 'ma' can be declared as pointer to const [constVariablePointer] libcitadel/tests/mimeparser_test.c:68:13: style: Parameter 'partnum' can be declared as pointer to const. However it seems that 'list_this_pref' is a callback function, if 'partnum' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libcitadel/tests/mimeparser_test.c:264:21: note: You might need to cast the function pointer here libcitadel/tests/mimeparser_test.c:68:13: note: Parameter 'partnum' can be declared as pointer to const libcitadel/tests/mimeparser_test.c:71:13: style: Parameter 'cbtype' can be declared as pointer to const. However it seems that 'list_this_pref' is a callback function, if 'cbtype' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libcitadel/tests/mimeparser_test.c:264:21: note: You might need to cast the function pointer here libcitadel/tests/mimeparser_test.c:71:13: note: Parameter 'cbtype' can be declared as pointer to const libcitadel/tests/mimeparser_test.c:95:13: style: Parameter 'partnum' can be declared as pointer to const. However it seems that 'list_this_suff' is a callback function, if 'partnum' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libcitadel/tests/mimeparser_test.c:265:21: note: You might need to cast the function pointer here libcitadel/tests/mimeparser_test.c:95:13: note: Parameter 'partnum' can be declared as pointer to const libcitadel/tests/mimeparser_test.c:98:13: style: Parameter 'cbtype' can be declared as pointer to const. However it seems that 'list_this_suff' is a callback function, if 'cbtype' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libcitadel/tests/mimeparser_test.c:265:21: note: You might need to cast the function pointer here libcitadel/tests/mimeparser_test.c:98:13: note: Parameter 'cbtype' can be declared as pointer to const libcitadel/tests/mimeparser_test.c:122:12: style: Parameter 'partnum' can be declared as pointer to const. However it seems that 'mime_download' is a callback function, if 'partnum' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libcitadel/tests/mimeparser_test.c:269:9: note: You might need to cast the function pointer here libcitadel/tests/mimeparser_test.c:122:12: note: Parameter 'partnum' can be declared as pointer to const libcitadel/tests/mimeparser_test.c:136:18: style: Variable 'ma' can be declared as pointer to const [constVariablePointer] libcitadel/tests/stringbuf_IO_test.c:85:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] libcitadel/tests/stringbuf_IO_test.c:153:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libcitadel/tests/stringbuf_IO_test.c:429:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] libcitadel/tests/mimeparser_test.c:132:9: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] libcitadel/tests/mimeparser_test.c:153:7: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] libcitadel/tests/mimeparser_test.c:156:7: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] libcitadel/tests/stringbuf_stream.c:80:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] libcitadel/tests/stringbuf_stream.c:144:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] libcitadel/tests/stringbuf_conversion.c:437:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] libcitadel/tests/stringbuf_IO_test.c:102:6: portability: Non reentrant function 'getprotobyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getprotobyname_r'. [prohibitedgetprotobynameCalled] libcitadel/tests/stringbuf_IO_test.c:122:3: error: Resource leak: s [resourceLeak] libcitadel/tests/stringbuf_IO_test.c:126:3: error: Resource leak: s [resourceLeak] libcitadel/tests/stringbuf_IO_test.c:292:6: style: Local variable 'blobsize' shadows outer variable [shadowVariable] libcitadel/tests/stringbuf_IO_test.c:59:5: note: Shadowed declaration libcitadel/tests/stringbuf_IO_test.c:292:6: note: Shadow variable libcitadel/tests/stringbuf_IO_test.c:65:42: style: Parameter 'Buf' can be declared as pointer to const [constParameterPointer] libcitadel/tests/stringbuf_IO_test.c:78:32: style: Parameter 'ip_addr' can be declared as pointer to const [constParameterPointer] libcitadel/tests/stringbuf_conversion.c:271:9: style: Variable 'Source' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/tests/stringbuf_conversion.c:267:9: note: Source is assigned libcitadel/tests/stringbuf_conversion.c:271:9: note: Source is overwritten libcitadel/tests/stringbuf_conversion.c:395:10: style: Variable 'pTest' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/tests/stringbuf_conversion.c:394:10: note: pTest is assigned libcitadel/tests/stringbuf_conversion.c:395:10: note: pTest is overwritten libcitadel/tests/stringbuf_conversion.c:396:10: style: Variable 'pTest' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/tests/stringbuf_conversion.c:395:10: note: pTest is assigned libcitadel/tests/stringbuf_conversion.c:396:10: note: pTest is overwritten libcitadel/tests/stringbuf_conversion.c:397:10: style: Variable 'pTest' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/tests/stringbuf_conversion.c:396:10: note: pTest is assigned libcitadel/tests/stringbuf_conversion.c:397:10: note: pTest is overwritten libcitadel/tests/stringbuf_IO_test.c:414:9: style: Variable 'pTest' is assigned a value that is never used. [unreadVariable] libcitadel/tests/stringbuf_IO_test.c:416:9: style: Variable 'pTest' is assigned a value that is never used. [unreadVariable] libcitadel/tests/stringbuf_IO_test.c:418:9: style: Variable 'pTest' is assigned a value that is never used. [unreadVariable] libcitadel/tests/stringbuf_conversion.c:32:42: style: Parameter 'Buf' can be declared as pointer to const [constParameterPointer] libcitadel/tests/stringbuf_conversion.c:384:10: style: Variable 'pTest' is assigned a value that is never used. [unreadVariable] libcitadel/tests/stringbuf_conversion.c:387:10: style: Variable 'pTest' is assigned a value that is never used. [unreadVariable] libcitadel/tests/stringbuf_conversion.c:390:10: style: Variable 'pTest' is assigned a value that is never used. [unreadVariable] libcitadel/tests/stringbuf_conversion.c:397:10: style: Variable 'pTest' is assigned a value that is never used. [unreadVariable] libcitadel/tests/stringbuf_conversion.c:402:11: style: Variable 'pTest' is assigned a value that is never used. [unreadVariable] libcitadel/tests/stringbuf_conversion.c:406:16: style: Variable 'pTest' is assigned a value that is never used. [unreadVariable] libcitadel/tests/stringbuf_conversion.c:409:16: style: Variable 'pTest' is assigned a value that is never used. [unreadVariable] libcitadel/tests/stringbuf_conversion.c:412:16: style: Variable 'pTest' is assigned a value that is never used. [unreadVariable] libcitadel/tests/stringbuf_conversion.c:415:16: style: Variable 'pTest' is assigned a value that is never used. [unreadVariable] libcitadel/tests/stringbuf_conversion.c:418:16: style: Variable 'pTest' is assigned a value that is never used. [unreadVariable] libcitadel/tests/stringbuf_conversion.c:421:16: style: Variable 'pTest' is assigned a value that is never used. [unreadVariable] libcitadel/tests/stringbuf_stream.c:119:10: style: Variable 'err' is assigned a value that is never used. [unreadVariable] libcitadel/tests/token_test.c:14:8: style: Variable 'i' is assigned a value that is never used. [unreadVariable] libcitadel/tests/token_test.c:10:10: style: Unused variable: lostr [unusedVariable] libcitadel/tests/stripallbut_test.c:100:5: style: Variable 'l' is assigned a value that is never used. [unreadVariable] libcitadel/tests/token_test.c:11:10: style: Unused variable: histr [unusedVariable] libcitadel/tests/token_test.c:14:6: style: Variable 'i' is assigned a value that is never used. [unreadVariable] libcitadel/tests/stripallbut_test.c:124:8: style: Variable 'pTest' is assigned a value that is never used. [unreadVariable] libcitadel/tests/stringbuf_test.c:628:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CU_FALSE [valueFlowBailoutIncompleteVar] libcitadel/tests/stringbuf_test.c:135:6: style: Variable 'len' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/tests/stringbuf_test.c:118:6: note: len is assigned libcitadel/tests/stringbuf_test.c:135:6: note: len is overwritten libcitadel/tests/stringbuf_test.c:592:8: style: Variable 'pTest' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/tests/stringbuf_test.c:591:8: note: pTest is assigned libcitadel/tests/stringbuf_test.c:592:8: note: pTest is overwritten libcitadel/tests/stringbuf_test.c:593:8: style: Variable 'pTest' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/tests/stringbuf_test.c:592:8: note: pTest is assigned libcitadel/tests/stringbuf_test.c:593:8: note: pTest is overwritten libcitadel/tests/stringbuf_test.c:594:8: style: Variable 'pTest' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/tests/stringbuf_test.c:593:8: note: pTest is assigned libcitadel/tests/stringbuf_test.c:594:8: note: pTest is overwritten libcitadel/tests/stringbuf_test.c:598:8: style: Variable 'pTest' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/tests/stringbuf_test.c:594:8: note: pTest is assigned libcitadel/tests/stringbuf_test.c:598:8: note: pTest is overwritten libcitadel/tests/stringbuf_test.c:599:8: style: Variable 'pTest' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/tests/stringbuf_test.c:598:8: note: pTest is assigned libcitadel/tests/stringbuf_test.c:599:8: note: pTest is overwritten libcitadel/tests/stringbuf_test.c:600:8: style: Variable 'pTest' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/tests/stringbuf_test.c:599:8: note: pTest is assigned libcitadel/tests/stringbuf_test.c:600:8: note: pTest is overwritten libcitadel/tests/stringbuf_test.c:601:8: style: Variable 'pTest' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/tests/stringbuf_test.c:600:8: note: pTest is assigned libcitadel/tests/stringbuf_test.c:601:8: note: pTest is overwritten libcitadel/tests/stringbuf_test.c:602:8: style: Variable 'pTest' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/tests/stringbuf_test.c:601:8: note: pTest is assigned libcitadel/tests/stringbuf_test.c:602:8: note: pTest is overwritten libcitadel/tests/stringbuf_test.c:603:8: style: Variable 'pTest' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/tests/stringbuf_test.c:602:8: note: pTest is assigned libcitadel/tests/stringbuf_test.c:603:8: note: pTest is overwritten libcitadel/tests/stringbuf_test.c:604:8: style: Variable 'pTest' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/tests/stringbuf_test.c:603:8: note: pTest is assigned libcitadel/tests/stringbuf_test.c:604:8: note: pTest is overwritten libcitadel/tests/stringbuf_test.c:608:8: style: Variable 'pTest' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/tests/stringbuf_test.c:604:8: note: pTest is assigned libcitadel/tests/stringbuf_test.c:608:8: note: pTest is overwritten libcitadel/tests/stringbuf_test.c:609:8: style: Variable 'pTest' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/tests/stringbuf_test.c:608:8: note: pTest is assigned libcitadel/tests/stringbuf_test.c:609:8: note: pTest is overwritten libcitadel/tests/stringbuf_test.c:610:8: style: Variable 'pTest' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/tests/stringbuf_test.c:609:8: note: pTest is assigned libcitadel/tests/stringbuf_test.c:610:8: note: pTest is overwritten libcitadel/tests/stringbuf_test.c:611:8: style: Variable 'pTest' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/tests/stringbuf_test.c:610:8: note: pTest is assigned libcitadel/tests/stringbuf_test.c:611:8: note: pTest is overwritten libcitadel/tests/stringbuf_test.c:612:9: style: Variable 'pTest' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/tests/stringbuf_test.c:611:8: note: pTest is assigned libcitadel/tests/stringbuf_test.c:612:9: note: pTest is overwritten libcitadel/tests/stringbuf_test.c:615:8: style: Variable 'pTest' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/tests/stringbuf_test.c:612:9: note: pTest is assigned libcitadel/tests/stringbuf_test.c:615:8: note: pTest is overwritten libcitadel/tests/stringbuf_test.c:618:8: style: Variable 'pTest' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/tests/stringbuf_test.c:615:8: note: pTest is assigned libcitadel/tests/stringbuf_test.c:618:8: note: pTest is overwritten libcitadel/tests/stringbuf_test.c:41:42: style: Parameter 'Buf' can be declared as pointer to const [constParameterPointer] libcitadel/tests/stringbuf_test.c:419:15: style: Variable 'teststring' can be declared as pointer to const [constVariablePointer] libcitadel/tests/stringbuf_test.c:429:8: style: Variable 'n' is assigned a value that is never used. [unreadVariable] libcitadel/tests/stringbuf_test.c:445:6: style: Variable 'n' is assigned a value that is never used. [unreadVariable] libcitadel/tests/stringbuf_test.c:618:8: style: Variable 'pTest' is assigned a value that is never used. [unreadVariable] libcitadel/tests/stringbuf_test.c:628:14: style: Variable 'Run' is assigned a value that is never used. [unreadVariable] libcitadel/lib/html_to_ascii.c:54:16: style: Variable 'inbuf_len' is assigned a value that is never used. [unreadVariable] libcitadel/lib/html_to_ascii.c:608:3: style: Variable 'output_len' is assigned a value that is never used. [unreadVariable] libcitadel/lib/mime_parser.c:524:46: style: Redundant condition: The condition 'SubMimeHeaders->content_length != -1' is redundant since 'SubMimeHeaders->content_length > 10' is sufficient. [redundantCondition] libcitadel/lib/mime_parser.c:548:46: style: Redundant condition: The condition 'SubMimeHeaders->content_length != -1' is redundant since 'SubMimeHeaders->content_length > 10' is sufficient. [redundantCondition] libcitadel/lib/mime_parser.c:304:3: warning: Either the condition 'decoded==NULL' is redundant or there is possible null pointer dereference: decoded. [nullPointerRedundantCheck] libcitadel/lib/mime_parser.c:332:14: note: Assuming that condition 'decoded==NULL' is not redundant libcitadel/lib/mime_parser.c:304:3: note: Null pointer dereference libcitadel/lib/mime_parser.c:331:3: warning: Either the condition 'decoded==NULL' is redundant or there is possible null pointer dereference: decoded. [nullPointerRedundantCheck] libcitadel/lib/mime_parser.c:332:14: note: Assuming that condition 'decoded==NULL' is not redundant libcitadel/lib/mime_parser.c:331:3: note: Null pointer dereference libcitadel/lib/mime_parser.c:379:7: warning: If memory allocation fails, then there is a possible null pointer dereference: m [nullPointerOutOfMemory] libcitadel/lib/mime_parser.c:387:40: note: Assuming allocation function fails libcitadel/lib/mime_parser.c:387:6: note: Assignment 'm=(struct interesting_mime_headers*)malloc(sizeof(struct interesting_mime_headers))', assigned value is 0 libcitadel/lib/mime_parser.c:389:24: note: Calling function 'FlushInterestingMimes', 1st argument 'm' value is 0 libcitadel/lib/mime_parser.c:379:7: note: Null pointer dereference libcitadel/lib/mime_parser.c:380:7: warning: If memory allocation fails, then there is a possible null pointer dereference: m [nullPointerOutOfMemory] libcitadel/lib/mime_parser.c:387:40: note: Assuming allocation function fails libcitadel/lib/mime_parser.c:387:6: note: Assignment 'm=(struct interesting_mime_headers*)malloc(sizeof(struct interesting_mime_headers))', assigned value is 0 libcitadel/lib/mime_parser.c:389:24: note: Calling function 'FlushInterestingMimes', 1st argument 'm' value is 0 libcitadel/lib/mime_parser.c:380:7: note: Null pointer dereference libcitadel/lib/mime_parser.c:382:2: warning: If memory allocation fails, then there is a possible null pointer dereference: m [nullPointerOutOfMemory] libcitadel/lib/mime_parser.c:387:40: note: Assuming allocation function fails libcitadel/lib/mime_parser.c:387:6: note: Assignment 'm=(struct interesting_mime_headers*)malloc(sizeof(struct interesting_mime_headers))', assigned value is 0 libcitadel/lib/mime_parser.c:389:24: note: Calling function 'FlushInterestingMimes', 1st argument 'm' value is 0 libcitadel/lib/mime_parser.c:382:2: note: Null pointer dereference libcitadel/lib/mime_parser.c:1085:3: warning: If memory allocation fails, then there is a possible null pointer dereference: Icon [nullPointerOutOfMemory] libcitadel/lib/mime_parser.c:1083:16: note: Assuming allocation function fails libcitadel/lib/mime_parser.c:1083:16: note: Assignment 'Icon=malloc(sizeof(struct IconName))', assigned value is 0 libcitadel/lib/mime_parser.c:1085:3: note: Null pointer dereference libcitadel/lib/mime_parser.c:1086:10: warning: If memory allocation fails, then there is a possible null pointer dereference: Icon [nullPointerOutOfMemory] libcitadel/lib/mime_parser.c:1083:16: note: Assuming allocation function fails libcitadel/lib/mime_parser.c:1083:16: note: Assignment 'Icon=malloc(sizeof(struct IconName))', assigned value is 0 libcitadel/lib/mime_parser.c:1086:10: note: Null pointer dereference libcitadel/lib/mime_parser.c:1088:3: warning: If memory allocation fails, then there is a possible null pointer dereference: Icon [nullPointerOutOfMemory] libcitadel/lib/mime_parser.c:1083:16: note: Assuming allocation function fails libcitadel/lib/mime_parser.c:1083:16: note: Assignment 'Icon=malloc(sizeof(struct IconName))', assigned value is 0 libcitadel/lib/mime_parser.c:1088:3: note: Null pointer dereference libcitadel/lib/mime_parser.c:1089:10: warning: If memory allocation fails, then there is a possible null pointer dereference: Icon [nullPointerOutOfMemory] libcitadel/lib/mime_parser.c:1083:16: note: Assuming allocation function fails libcitadel/lib/mime_parser.c:1083:16: note: Assignment 'Icon=malloc(sizeof(struct IconName))', assigned value is 0 libcitadel/lib/mime_parser.c:1089:10: note: Null pointer dereference libcitadel/lib/mime_parser.c:1090:3: warning: If memory allocation fails, then there is a possible null pointer dereference: Icon [nullPointerOutOfMemory] libcitadel/lib/mime_parser.c:1083:16: note: Assuming allocation function fails libcitadel/lib/mime_parser.c:1083:16: note: Assignment 'Icon=malloc(sizeof(struct IconName))', assigned value is 0 libcitadel/lib/mime_parser.c:1090:3: note: Null pointer dereference libcitadel/lib/mime_parser.c:1092:21: warning: If memory allocation fails, then there is a possible null pointer dereference: Icon [nullPointerOutOfMemory] libcitadel/lib/mime_parser.c:1083:16: note: Assuming allocation function fails libcitadel/lib/mime_parser.c:1083:16: note: Assignment 'Icon=malloc(sizeof(struct IconName))', assigned value is 0 libcitadel/lib/mime_parser.c:1092:21: note: Null pointer dereference libcitadel/lib/mime_parser.c:1109:17: warning: If memory allocation fails, then there is a possible null pointer dereference: Icon [nullPointerOutOfMemory] libcitadel/lib/mime_parser.c:1083:16: note: Assuming allocation function fails libcitadel/lib/mime_parser.c:1083:16: note: Assignment 'Icon=malloc(sizeof(struct IconName))', assigned value is 0 libcitadel/lib/mime_parser.c:1109:17: note: Null pointer dereference libcitadel/lib/mime_parser.c:643:13: warning: Either the condition 'part_start!=NULL' is redundant or there is overflow in pointer subtraction. [nullPointerArithmeticRedundantCheck] libcitadel/lib/mime_parser.c:660:21: note: Assuming that condition 'part_start!=NULL' is not redundant libcitadel/lib/mime_parser.c:647:17: note: Assignment to 'part_start=ptr' libcitadel/lib/mime_parser.c:643:13: note: Null pointer subtraction libcitadel/lib/mime_parser.c:145:26: style: Same expression on both sides of '||'. [duplicateExpression] libcitadel/lib/mime_parser.c:559:13: style: Variable 'srch' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/lib/mime_parser.c:558:8: note: srch is assigned libcitadel/lib/mime_parser.c:559:13: note: srch is overwritten libcitadel/lib/mime_parser.c:67:68: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] libcitadel/lib/mime_parser.c:153:31: style: Parameter 'Source' can be declared as pointer to const [constParameterPointer] libcitadel/lib/mime_parser.c:397:16: style: Parameter 'content_end' can be declared as pointer to const [constParameterPointer] libcitadel/lib/mime_parser.c:459:11: style: Variable 'clbuf' can be declared as pointer to const [constVariablePointer] libcitadel/lib/mime_parser.c:490:54: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] libcitadel/lib/mime_parser.c:506:35: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] libcitadel/lib/mime_parser.c:597:12: style: Variable 'evaluate_crlf_ptr' can be declared as pointer to const [constVariablePointer] libcitadel/lib/mime_parser.c:1047:17: style: Variable 'filedir_entry' can be declared as pointer to const [constVariablePointer] libcitadel/lib/mime_parser.c:1061:9: style: Variable 'PStart' can be declared as pointer to const [constVariablePointer] libcitadel/lib/mime_parser.c:1119:12: style: Variable 'Icon' can be declared as pointer to const [constVariablePointer] libcitadel/lib/stringbuf.c:800:15: style: Condition 'Buf->buf==pEnd' is always false [knownConditionTrueFalse] libcitadel/lib/stringbuf.c:2727:13: style: Condition 'target!=NULL' is always true [knownConditionTrueFalse] libcitadel/lib/stringbuf.c:3594:12: style: Condition 'pch!=NULL' is always true [knownConditionTrueFalse] libcitadel/lib/stringbuf.c:5050:17: style: Condition 'rlen>0' is always true [knownConditionTrueFalse] libcitadel/lib/stringbuf.c:5044:12: note: Assuming that condition 'rlen<1' is not redundant libcitadel/lib/stringbuf.c:5050:17: note: Condition 'rlen>0' is always true libcitadel/lib/stringbuf.c:5224:17: style: Condition 'rlen>0' is always true [knownConditionTrueFalse] libcitadel/lib/stringbuf.c:5218:12: note: Assuming that condition 'rlen<1' is not redundant libcitadel/lib/stringbuf.c:5224:17: note: Condition 'rlen>0' is always true libcitadel/lib/stringbuf.c:2740:4: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] libcitadel/lib/stringbuf.c:3245:5: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] libcitadel/lib/stringbuf.c:5654:4: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] libcitadel/lib/stringbuf.c:2869:10: warning: If memory allocation fails, then there is a possible null pointer dereference: stream [nullPointerOutOfMemory] libcitadel/lib/stringbuf.c:2868:35: note: Assuming allocation function fails libcitadel/lib/stringbuf.c:2868:12: note: Assignment 'stream=(struct z_enc_stream*)malloc(sizeof(struct z_enc_stream))', assigned value is 0 libcitadel/lib/stringbuf.c:2869:10: note: Null pointer dereference libcitadel/lib/stringbuf.c:2870:3: warning: If memory allocation fails, then there is a possible null pointer dereference: stream [nullPointerOutOfMemory] libcitadel/lib/stringbuf.c:2868:35: note: Assuming allocation function fails libcitadel/lib/stringbuf.c:2868:12: note: Assignment 'stream=(struct z_enc_stream*)malloc(sizeof(struct z_enc_stream))', assigned value is 0 libcitadel/lib/stringbuf.c:2870:3: note: Null pointer dereference libcitadel/lib/stringbuf.c:2871:3: warning: If memory allocation fails, then there is a possible null pointer dereference: stream [nullPointerOutOfMemory] libcitadel/lib/stringbuf.c:2868:35: note: Assuming allocation function fails libcitadel/lib/stringbuf.c:2868:12: note: Assignment 'stream=(struct z_enc_stream*)malloc(sizeof(struct z_enc_stream))', assigned value is 0 libcitadel/lib/stringbuf.c:2871:3: note: Null pointer dereference libcitadel/lib/stringbuf.c:2871:38: warning: If memory allocation fails, then there is a possible null pointer dereference: stream [nullPointerOutOfMemory] libcitadel/lib/stringbuf.c:2868:35: note: Assuming allocation function fails libcitadel/lib/stringbuf.c:2868:12: note: Assignment 'stream=(struct z_enc_stream*)malloc(sizeof(struct z_enc_stream))', assigned value is 0 libcitadel/lib/stringbuf.c:2871:38: note: Null pointer dereference libcitadel/lib/stringbuf.c:2889:10: warning: If memory allocation fails, then there is a possible null pointer dereference: stream [nullPointerOutOfMemory] libcitadel/lib/stringbuf.c:2888:35: note: Assuming allocation function fails libcitadel/lib/stringbuf.c:2888:12: note: Assignment 'stream=(struct z_enc_stream*)malloc(sizeof(struct z_enc_stream))', assigned value is 0 libcitadel/lib/stringbuf.c:2889:10: note: Null pointer dereference libcitadel/lib/stringbuf.c:2890:3: warning: If memory allocation fails, then there is a possible null pointer dereference: stream [nullPointerOutOfMemory] libcitadel/lib/stringbuf.c:2888:35: note: Assuming allocation function fails libcitadel/lib/stringbuf.c:2888:12: note: Assignment 'stream=(struct z_enc_stream*)malloc(sizeof(struct z_enc_stream))', assigned value is 0 libcitadel/lib/stringbuf.c:2890:3: note: Null pointer dereference libcitadel/lib/stringbuf.c:2891:3: warning: If memory allocation fails, then there is a possible null pointer dereference: stream [nullPointerOutOfMemory] libcitadel/lib/stringbuf.c:2888:35: note: Assuming allocation function fails libcitadel/lib/stringbuf.c:2888:12: note: Assignment 'stream=(struct z_enc_stream*)malloc(sizeof(struct z_enc_stream))', assigned value is 0 libcitadel/lib/stringbuf.c:2891:3: note: Null pointer dereference libcitadel/lib/stringbuf.c:2891:38: warning: If memory allocation fails, then there is a possible null pointer dereference: stream [nullPointerOutOfMemory] libcitadel/lib/stringbuf.c:2888:35: note: Assuming allocation function fails libcitadel/lib/stringbuf.c:2888:12: note: Assignment 'stream=(struct z_enc_stream*)malloc(sizeof(struct z_enc_stream))', assigned value is 0 libcitadel/lib/stringbuf.c:2891:38: note: Null pointer dereference libcitadel/lib/stringbuf.c:2893:3: warning: If memory allocation fails, then there is a possible null pointer dereference: stream [nullPointerOutOfMemory] libcitadel/lib/stringbuf.c:2888:35: note: Assuming allocation function fails libcitadel/lib/stringbuf.c:2888:12: note: Assignment 'stream=(struct z_enc_stream*)malloc(sizeof(struct z_enc_stream))', assigned value is 0 libcitadel/lib/stringbuf.c:2893:3: note: Null pointer dereference libcitadel/lib/stringbuf.c:2894:5: warning: If memory allocation fails, then there is a possible null pointer dereference: stream [nullPointerOutOfMemory] libcitadel/lib/stringbuf.c:2888:35: note: Assuming allocation function fails libcitadel/lib/stringbuf.c:2888:12: note: Assignment 'stream=(struct z_enc_stream*)malloc(sizeof(struct z_enc_stream))', assigned value is 0 libcitadel/lib/stringbuf.c:2894:5: note: Null pointer dereference libcitadel/lib/stringbuf.c:2895:5: warning: If memory allocation fails, then there is a possible null pointer dereference: stream [nullPointerOutOfMemory] libcitadel/lib/stringbuf.c:2888:35: note: Assuming allocation function fails libcitadel/lib/stringbuf.c:2888:12: note: Assignment 'stream=(struct z_enc_stream*)malloc(sizeof(struct z_enc_stream))', assigned value is 0 libcitadel/lib/stringbuf.c:2895:5: note: Null pointer dereference libcitadel/lib/stringbuf.c:1664:3: warning: Either the condition '(s)==NULL' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] libcitadel/lib/stringbuf.c:1657:10: note: Assuming that condition '(s)==NULL' is not redundant libcitadel/lib/stringbuf.c:1664:3: note: Null pointer addition libcitadel/lib/stringbuf.c:1732:12: warning: Either the condition '(s)==NULL' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] libcitadel/lib/stringbuf.c:1722:29: note: Assuming that condition '(s)==NULL' is not redundant libcitadel/lib/stringbuf.c:1731:12: note: Assignment '*pStart=s', assigned value is 0 libcitadel/lib/stringbuf.c:1732:12: note: Null pointer addition libcitadel/lib/stringbuf.c:3578:45: warning: Either the condition 'UserEnd==NULL' is redundant or there is overflow in pointer subtraction. [nullPointerArithmeticRedundantCheck] libcitadel/lib/stringbuf.c:3577:44: note: Assuming that condition 'UserEnd==NULL' is not redundant libcitadel/lib/stringbuf.c:3578:45: note: Null pointer subtraction libcitadel/lib/stringbuf.c:3585:51: warning: Either the condition 'EmailEnd==NULL' is redundant or there is overflow in pointer subtraction. [nullPointerArithmeticRedundantCheck] libcitadel/lib/stringbuf.c:3584:46: note: Assuming that condition 'EmailEnd==NULL' is not redundant libcitadel/lib/stringbuf.c:3585:51: note: Null pointer subtraction libcitadel/lib/stringbuf.c:1458:16: style: Variable 'dest->BufUsed' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/lib/stringbuf.c:1442:19: note: dest->BufUsed is assigned libcitadel/lib/stringbuf.c:1458:16: note: dest->BufUsed is overwritten libcitadel/lib/stringbuf.c:1678:17: style: Variable 'dest->BufUsed' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/lib/stringbuf.c:1651:19: note: dest->BufUsed is assigned libcitadel/lib/stringbuf.c:1678:17: note: dest->BufUsed is overwritten libcitadel/lib/stringbuf.c:3424:12: style: Variable 'LinePos' is reassigned a value before the old one has been used. [redundantAssignment] libcitadel/lib/stringbuf.c:3418:13: note: LinePos is assigned libcitadel/lib/stringbuf.c:3424:12: note: LinePos is overwritten libcitadel/lib/stringbuf.c:3569:6: style: Variable 'EmailStart' is assigned an expression that holds the same value. [redundantAssignment] libcitadel/lib/stringbuf.c:3562:16: note: EmailStart is assigned 'UserStart' here. libcitadel/lib/stringbuf.c:3569:6: note: Variable 'EmailStart' is assigned an expression that holds the same value. libcitadel/lib/stringbuf.c:4037:3: style: Variable 'ptr' is assigned an expression that holds the same value. [redundantAssignment] libcitadel/lib/stringbuf.c:4034:6: note: end is assigned 'ptr' here. libcitadel/lib/stringbuf.c:4037:3: note: Variable 'ptr' is assigned an expression that holds the same value. libcitadel/lib/stringbuf.c:2922:61: style:inconclusive: Function 'StrBufDestroyStreamContext' argument 2 names different: declaration 'Stream' definition 'vStream'. [funcArgNamesDifferent] libcitadel/lib/libcitadel.h:352:61: note: Function 'StrBufDestroyStreamContext' argument 2 names different: declaration 'Stream' definition 'vStream'. libcitadel/lib/stringbuf.c:2922:61: note: Function 'StrBufDestroyStreamContext' argument 2 names different: declaration 'Stream' definition 'vStream'. libcitadel/lib/stringbuf.c:2965:117: style:inconclusive: Function 'StrBufStreamTranscode' argument 6 names different: declaration 'Stream' definition 'vStream'. [funcArgNamesDifferent] libcitadel/lib/libcitadel.h:353:117: note: Function 'StrBufStreamTranscode' argument 6 names different: declaration 'Stream' definition 'vStream'. libcitadel/lib/stringbuf.c:2965:117: note: Function 'StrBufStreamTranscode' argument 6 names different: declaration 'Stream' definition 'vStream'. libcitadel/lib/stringbuf.c:5093:19: style:inconclusive: Function 'StrBufTCP_read_buffered_line_fast' argument 2 names different: declaration 'buf' definition 'IOBuf'. [funcArgNamesDifferent] libcitadel/lib/libcitadel.h:235:19: note: Function 'StrBufTCP_read_buffered_line_fast' argument 2 names different: declaration 'buf' definition 'IOBuf'. libcitadel/lib/stringbuf.c:5093:19: note: Function 'StrBufTCP_read_buffered_line_fast' argument 2 names different: declaration 'buf' definition 'IOBuf'. libcitadel/lib/stringbuf.c:5367:36: style:inconclusive: Function 'StrBufReadBLOBBuffered' argument 1 names different: declaration 'Buf' definition 'Blob'. [funcArgNamesDifferent] libcitadel/lib/libcitadel.h:220:36: note: Function 'StrBufReadBLOBBuffered' argument 1 names different: declaration 'Buf' definition 'Blob'. libcitadel/lib/stringbuf.c:5367:36: note: Function 'StrBufReadBLOBBuffered' argument 1 names different: declaration 'Buf' definition 'Blob'. libcitadel/lib/stringbuf.c:5369:20: style:inconclusive: Function 'StrBufReadBLOBBuffered' argument 3 names different: declaration 'BufPos' definition 'Pos'. [funcArgNamesDifferent] libcitadel/lib/libcitadel.h:222:20: note: Function 'StrBufReadBLOBBuffered' argument 3 names different: declaration 'BufPos' definition 'Pos'. libcitadel/lib/stringbuf.c:5369:20: note: Function 'StrBufReadBLOBBuffered' argument 3 names different: declaration 'BufPos' definition 'Pos'. libcitadel/lib/stringbuf.c:1034:38: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] libcitadel/lib/stringbuf.c:1175:8: style: Variable 'pche' can be declared as pointer to const [constVariablePointer] libcitadel/lib/stringbuf.c:1217:14: style: Variable 'pche' can be declared as pointer to const [constVariablePointer] libcitadel/lib/stringbuf.c:1237:14: style: Variable 'pche' can be declared as pointer to const [constVariablePointer] libcitadel/lib/stringbuf.c:1298:14: style: Variable 'pche' can be declared as pointer to const [constVariablePointer] libcitadel/lib/stringbuf.c:1327:16: style: Variable 'end' can be declared as pointer to const [constVariablePointer] libcitadel/lib/stringbuf.c:1533:8: style: Variable 'pnum' can be declared as pointer to const [constVariablePointer] libcitadel/lib/stringbuf.c:1798:8: style: Variable 'pnum' can be declared as pointer to const [constVariablePointer] libcitadel/lib/stringbuf.c:1833:13: style: Variable 'pte' can be declared as pointer to const [constVariablePointer] libcitadel/lib/stringbuf.c:1893:13: style: Variable 'pte' can be declared as pointer to const [constVariablePointer] libcitadel/lib/stringbuf.c:1959:13: style: Variable 'pte' can be declared as pointer to const [constVariablePointer] libcitadel/lib/stringbuf.c:2058:13: style: Variable 'pte' can be declared as pointer to const [constVariablePointer] libcitadel/lib/stringbuf.c:2163:15: style: Variable 'eptr' can be declared as pointer to const [constVariablePointer] libcitadel/lib/stringbuf.c:2274:15: style: Variable 'eptr' can be declared as pointer to const [constVariablePointer] libcitadel/lib/stringbuf.c:2341:15: style: Variable 'eptr' can be declared as pointer to const [constVariablePointer] libcitadel/lib/stringbuf.c:2534:15: style: Variable 'eptr' can be declared as pointer to const [constVariablePointer] libcitadel/lib/stringbuf.c:3170:14: style: Variable 'pche' can be declared as pointer to const [constVariablePointer] libcitadel/lib/stringbuf.c:3352:15: style: Variable 'OEptr' can be declared as pointer to const [constVariablePointer] libcitadel/lib/stringbuf.c:3435:13: style: Parameter 'UserName' can be declared as pointer to const [constParameterPointer] libcitadel/lib/stringbuf.c:3436:13: style: Parameter 'EmailAddress' can be declared as pointer to const [constParameterPointer] libcitadel/lib/stringbuf.c:3628:8: style: Variable 'pche' can be declared as pointer to const [constVariablePointer] libcitadel/lib/stringbuf.c:3628:15: style: Variable 'pchS' can be declared as pointer to const [constVariablePointer] libcitadel/lib/stringbuf.c:3666:71: style: Parameter 'pic' can be declared as pointer to const [constParameterPointer] libcitadel/lib/stringbuf.c:3726:28: style: Parameter 'ConvertBuf' can be declared as pointer to const [constParameterPointer] libcitadel/lib/stringbuf.c:3726:48: style: Parameter 'TmpBuf' can be declared as pointer to const [constParameterPointer] libcitadel/lib/stringbuf.c:3726:62: style: Parameter 'pic' can be declared as pointer to const [constParameterPointer] libcitadel/lib/stringbuf.c:4101:8: style: Variable 'aptr' can be declared as pointer to const [constVariablePointer] libcitadel/lib/stringbuf.c:4101:15: style: Variable 'eptr' can be declared as pointer to const [constVariablePointer] libcitadel/lib/stringbuf.c:4130:15: style: Variable 'eptr' can be declared as pointer to const [constVariablePointer] libcitadel/lib/stringbuf.c:4237:28: style: Parameter 'Buf' can be declared as pointer to const [constParameterPointer] libcitadel/lib/stringbuf.c:4408:15: style: Variable 'xptr' can be declared as pointer to const [constVariablePointer] libcitadel/lib/stringbuf.c:4486:40: style: Parameter 'FB' can be declared as pointer to const [constParameterPointer] libcitadel/lib/stringbuf.c:4999:8: style: Variable 'pch' can be declared as pointer to const [constVariablePointer] libcitadel/lib/stringbuf.c:5536:15: style: Variable 'xptr' can be declared as pointer to const [constVariablePointer] libcitadel/lib/stringbuf.c:5599:8: style: Variable 'a' can be declared as pointer to const [constVariablePointer] libcitadel/lib/stringbuf.c:4100:8: style: Variable 'm' is assigned a value that is never used. [unreadVariable] libcitadel/lib/stringbuf.c:4131:15: style: Variable 'm' is assigned a value that is never used. [unreadVariable] libcitadel/lib/stringbuf.c:4421:14: style: Variable 'aptr' is assigned a value that is never used. [unreadVariable] libcitadel/lib/stringbuf.c:4423:14: style: Variable 'aptr' is assigned a value that is never used. [unreadVariable] libcitadel/lib/stringbuf.c:4562:10: style: Unused variable: sent [unusedVariable] libcitadel/lib/stringbuf.c:4562:16: style: Unused variable: pipesize [unusedVariable] libcitadel/lib/stringbuf.c:4722:16: style: Unused variable: pipesize [unusedVariable] libcitadel/lib/stringbuf.c:4794:16: style: Unused variable: pipesize [unusedVariable] libcitadel/lib/stringbuf.c:5549:14: style: Variable 'aptr' is assigned a value that is never used. [unreadVariable] libcitadel/lib/stringbuf.c:5551:14: style: Variable 'aptr' is assigned a value that is never used. [unreadVariable] diff: 2.17.0 libcitadel/lib/mime_parser.c:1058:26: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] head libcitadel/lib/stringbuf.c:2871:38: warning: If memory allocation fails, then there is a possible null pointer dereference: stream [nullPointerOutOfMemory] libcitadel/lib/stringbuf.c:2868:35: note: Assuming allocation function fails libcitadel/lib/stringbuf.c:2868:12: note: Assignment 'stream=(struct z_enc_stream*)malloc(sizeof(struct z_enc_stream))', assigned value is 0 libcitadel/lib/stringbuf.c:2871:38: note: Null pointer dereference head libcitadel/lib/stringbuf.c:2891:38: warning: If memory allocation fails, then there is a possible null pointer dereference: stream [nullPointerOutOfMemory] libcitadel/lib/stringbuf.c:2888:35: note: Assuming allocation function fails libcitadel/lib/stringbuf.c:2888:12: note: Assignment 'stream=(struct z_enc_stream*)malloc(sizeof(struct z_enc_stream))', assigned value is 0 libcitadel/lib/stringbuf.c:2891:38: note: Null pointer dereference 2.17.0 libcitadel/lib/tools.c:370:26: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libcitadel/lib/tools.c:368:25: note: Assuming allocation function fails libcitadel/lib/tools.c:368:11: note: Assignment 'result=(char*)malloc(sizeof("=?UTF-8?B?")+4+length*2)', assigned value is 0 libcitadel/lib/tools.c:370:26: note: Null pointer addition head libcitadel/lib/tools.c:370:26: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libcitadel/lib/tools.c:368:25: note: Assuming allocation function fails libcitadel/lib/tools.c:368:11: note: Assignment 'result=(char*)malloc(sizeof("=?UTF-8?B?")+4+length*2)', assigned value is 0 libcitadel/lib/tools.c:370:26: note: Null pointer addition head libcitadel/lib/urlhandling.c:57:27: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] libcitadel/lib/urlhandling.c:48:38: note: Assuming allocation function fails libcitadel/lib/urlhandling.c:48:19: note: Assignment 'url=(struct ParsedURL*)malloc(sizeof(struct ParsedURL))', assigned value is 0 libcitadel/lib/urlhandling.c:57:27: note: Null pointer dereference head libcitadel/lib/xdgmime/xdgmime.c:132:42: warning: If memory allocation fails, then there is a possible null pointer dereference: file_name [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:131:22: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:131:22: note: Assignment 'file_name=malloc(strlen(directory)+strlen("/mime/mime.cache")+1)', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:132:42: note: Null pointer dereference head libcitadel/lib/xdgmime/xdgmime.c:157:42: warning: If memory allocation fails, then there is a possible null pointer dereference: file_name [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:156:22: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:156:22: note: Assignment 'file_name=malloc(strlen(directory)+strlen("/mime/globs")+1)', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:157:42: note: Null pointer dereference head libcitadel/lib/xdgmime/xdgmime.c:174:42: warning: If memory allocation fails, then there is a possible null pointer dereference: file_name [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:173:22: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:173:22: note: Assignment 'file_name=malloc(strlen(directory)+strlen("/mime/magic")+1)', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:174:42: note: Null pointer dereference head libcitadel/lib/xdgmime/xdgmime.c:191:42: warning: If memory allocation fails, then there is a possible null pointer dereference: file_name [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:190:22: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:190:22: note: Assignment 'file_name=malloc(strlen(directory)+strlen("/mime/aliases")+1)', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:191:42: note: Null pointer dereference head libcitadel/lib/xdgmime/xdgmime.c:196:42: warning: If memory allocation fails, then there is a possible null pointer dereference: file_name [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:195:22: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:195:22: note: Assignment 'file_name=malloc(strlen(directory)+strlen("/mime/subclasses")+1)', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:196:42: note: Null pointer dereference head libcitadel/lib/xdgmime/xdgmime.c:337:42: warning: If memory allocation fails, then there is a possible null pointer dereference: file_name [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:336:22: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:336:22: note: Assignment 'file_name=malloc(strlen(directory)+strlen("/mime/mime.cache")+1)', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:337:42: note: Null pointer dereference head libcitadel/lib/xdgmime/xdgmime.c:355:42: warning: If memory allocation fails, then there is a possible null pointer dereference: file_name [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:354:22: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:354:22: note: Assignment 'file_name=malloc(strlen(directory)+strlen("/mime/globs")+1)', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:355:42: note: Null pointer dereference head libcitadel/lib/xdgmime/xdgmime.c:366:42: warning: If memory allocation fails, then there is a possible null pointer dereference: file_name [nullPointerOutOfMemory] libcitadel/lib/xdgmime/xdgmime.c:365:22: note: Assuming allocation function fails libcitadel/lib/xdgmime/xdgmime.c:365:22: note: Assignment 'file_name=malloc(strlen(directory)+strlen("/mime/magic")+1)', assigned value is 0 libcitadel/lib/xdgmime/xdgmime.c:366:42: note: Null pointer dereference head libcitadel/tests/token_test.c:14:6: style: Variable 'i' is assigned a value that is never used. [unreadVariable] DONE