2026-05-01 15:11 ftp://ftp.de.debian.org/debian/pool/main/d/didiwiki/didiwiki_3.0.4.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 181 209 elapsed-time: 5.0 4.5 head-timing-info: old-timing-info: head results: ciwiki-3.0.4/src/ci.c:22:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ciwiki-3.0.4/src/ci.c:72:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no_argument [valueFlowBailoutIncompleteVar] ciwiki-3.0.4/src/ci.c:70:26: style: Variable 'long_options' can be declared as const array [constVariable] ciwiki-3.0.4/src/http.c:187:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_LOCAL0 [valueFlowBailoutIncompleteVar] ciwiki-3.0.4/src/http.c:354:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] ciwiki-3.0.4/src/http.c:575:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ciwiki-3.0.4/src/http.c:682:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ciwiki-3.0.4/src/http.c:702:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ciwiki-3.0.4/src/http.c:715:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_LOCAL0 [valueFlowBailoutIncompleteVar] ciwiki-3.0.4/src/http.c:731:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_LOCAL0 [valueFlowBailoutIncompleteVar] ciwiki-3.0.4/src/http.c:773:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] ciwiki-3.0.4/src/http.c:79:24: style: Condition 'data' is always true [knownConditionTrueFalse] ciwiki-3.0.4/src/http.c:83:24: style: Condition 'data' is always true [knownConditionTrueFalse] ciwiki-3.0.4/src/http.c:98:32: style: Condition 'data' is always true [knownConditionTrueFalse] ciwiki-3.0.4/src/http.c:381:7: style: Condition 'token' is always true [knownConditionTrueFalse] ciwiki-3.0.4/src/http.c:393:7: style: Condition 'token' is always true [knownConditionTrueFalse] ciwiki-3.0.4/src/http.c:399:7: style: Condition '&token[i]' is always true [knownConditionTrueFalse] ciwiki-3.0.4/src/http.c:87:25: warning: If memory allocation fails, then there is a possible null pointer dereference: filename [nullPointerOutOfMemory] ciwiki-3.0.4/src/http.c:85:41: note: Assuming allocation function fails ciwiki-3.0.4/src/http.c:85:41: note: Assignment 'filename=strndup(data,k)', assigned value is 0 ciwiki-3.0.4/src/http.c:87:25: note: Null pointer dereference ciwiki-3.0.4/src/http.c:232:11: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] ciwiki-3.0.4/src/http.c:468:43: note: Assuming allocation function fails ciwiki-3.0.4/src/http.c:468:43: note: Calling function 'http_request_parse_params', 2nd argument 'strdup(getenv("QUERY_STRING"))' value is 0 ciwiki-3.0.4/src/http.c:232:11: note: Null pointer dereference ciwiki-3.0.4/src/http.c:236:23: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] ciwiki-3.0.4/src/http.c:468:43: note: Assuming allocation function fails ciwiki-3.0.4/src/http.c:468:43: note: Calling function 'http_request_parse_params', 2nd argument 'strdup(getenv("QUERY_STRING"))' value is 0 ciwiki-3.0.4/src/http.c:236:23: note: Null pointer dereference ciwiki-3.0.4/src/http.c:359:10: warning: If memory allocation fails, then there is a possible null pointer dereference: req [nullPointerOutOfMemory] ciwiki-3.0.4/src/http.c:358:15: note: Assuming allocation function fails ciwiki-3.0.4/src/http.c:358:15: note: Assignment 'req=malloc(sizeof(struct HttpRequest))', assigned value is 0 ciwiki-3.0.4/src/http.c:359:10: note: Null pointer dereference ciwiki-3.0.4/src/http.c:489:21: warning: If memory allocation fails, then there is a possible null pointer dereference: post_data [nullPointerOutOfMemory] ciwiki-3.0.4/src/http.c:488:27: note: Assuming allocation function fails ciwiki-3.0.4/src/http.c:488:27: note: Assignment 'post_data=malloc(len+1)', assigned value is 0 ciwiki-3.0.4/src/http.c:489:21: note: Null pointer dereference ciwiki-3.0.4/src/http.c:496:21: warning: If memory allocation fails, then there is a possible null pointer dereference: post_data [nullPointerOutOfMemory] ciwiki-3.0.4/src/http.c:495:27: note: Assuming allocation function fails ciwiki-3.0.4/src/http.c:495:27: note: Assignment 'post_data=malloc(len+1)', assigned value is 0 ciwiki-3.0.4/src/http.c:496:21: note: Null pointer dereference ciwiki-3.0.4/src/http.c:524:10: warning: If memory allocation fails, then there is a possible null pointer dereference: res [nullPointerOutOfMemory] ciwiki-3.0.4/src/http.c:523:15: note: Assuming allocation function fails ciwiki-3.0.4/src/http.c:523:15: note: Assignment 'res=malloc(sizeof(struct HttpResponse))', assigned value is 0 ciwiki-3.0.4/src/http.c:524:10: note: Null pointer dereference ciwiki-3.0.4/src/http.c:526:3: warning: If memory allocation fails, then there is a possible null pointer dereference: res [nullPointerOutOfMemory] ciwiki-3.0.4/src/http.c:523:15: note: Assuming allocation function fails ciwiki-3.0.4/src/http.c:523:15: note: Assignment 'res=malloc(sizeof(struct HttpResponse))', assigned value is 0 ciwiki-3.0.4/src/http.c:526:3: note: Null pointer dereference ciwiki-3.0.4/src/http.c:527:3: warning: If memory allocation fails, then there is a possible null pointer dereference: res [nullPointerOutOfMemory] ciwiki-3.0.4/src/http.c:523:15: note: Assuming allocation function fails ciwiki-3.0.4/src/http.c:523:15: note: Assignment 'res=malloc(sizeof(struct HttpResponse))', assigned value is 0 ciwiki-3.0.4/src/http.c:527:3: note: Null pointer dereference ciwiki-3.0.4/src/http.c:528:3: warning: If memory allocation fails, then there is a possible null pointer dereference: res [nullPointerOutOfMemory] ciwiki-3.0.4/src/http.c:523:15: note: Assuming allocation function fails ciwiki-3.0.4/src/http.c:523:15: note: Assignment 'res=malloc(sizeof(struct HttpResponse))', assigned value is 0 ciwiki-3.0.4/src/http.c:528:3: note: Null pointer dereference ciwiki-3.0.4/src/http.c:631:10: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] ciwiki-3.0.4/src/http.c:629:17: note: Assuming allocation function fails ciwiki-3.0.4/src/http.c:629:17: note: Assignment 'fp=fopen(filename,"rb")', assigned value is 0 ciwiki-3.0.4/src/http.c:631:10: note: Null pointer dereference ciwiki-3.0.4/src/http.c:697:10: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] ciwiki-3.0.4/src/http.c:695:17: note: Assuming allocation function fails ciwiki-3.0.4/src/http.c:695:17: note: Assignment 'fp=fopen(filename,"rb")', assigned value is 0 ciwiki-3.0.4/src/http.c:697:10: note: Null pointer dereference ciwiki-3.0.4/src/http.c:68:17: warning: Either the condition 'data' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] ciwiki-3.0.4/src/http.c:67:12: note: Assuming that condition 'data' is not redundant ciwiki-3.0.4/src/http.c:68:17: note: Null pointer addition ciwiki-3.0.4/src/http.c:86:27: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ciwiki-3.0.4/src/http.c:85:41: note: Assuming allocation function fails ciwiki-3.0.4/src/http.c:85:41: note: Assignment 'filename=strndup(data,k)', assigned value is 0 ciwiki-3.0.4/src/http.c:86:27: note: Null pointer addition ciwiki-3.0.4/src/http.c:141:38: warning: Either the condition 'data' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] ciwiki-3.0.4/src/http.c:140:36: note: Assuming that condition 'data' is not redundant ciwiki-3.0.4/src/http.c:141:38: note: Null pointer addition ciwiki-3.0.4/src/http.c:145:38: warning: Either the condition 'data' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] ciwiki-3.0.4/src/http.c:144:36: note: Assuming that condition 'data' is not redundant ciwiki-3.0.4/src/http.c:145:38: note: Null pointer addition ciwiki-3.0.4/src/http.c:270:48: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] ciwiki-3.0.4/src/http.c:282:53: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] ciwiki-3.0.4/src/http.c:296:40: style: Parameter 'req' can be declared as pointer to const [constParameterPointer] ciwiki-3.0.4/src/http.c:319:35: style: Parameter 'req' can be declared as pointer to const [constParameterPointer] ciwiki-3.0.4/src/http.c:325:41: style: Parameter 'req' can be declared as pointer to const [constParameterPointer] ciwiki-3.0.4/src/http.c:331:44: style: Parameter 'req' can be declared as pointer to const [constParameterPointer] ciwiki-3.0.4/src/http.c:337:38: style: Parameter 'req' can be declared as pointer to const [constParameterPointer] ciwiki-3.0.4/src/http.c:534:57: style: Parameter 'type' can be declared as pointer to const [constParameterPointer] ciwiki-3.0.4/src/http.c:541:54: style: Parameter 'header' can be declared as pointer to const [constParameterPointer] ciwiki-3.0.4/src/http.c:609:19: style: Parameter 'status_desc' can be declared as pointer to const [constParameterPointer] ciwiki-3.0.4/src/http.c:625:29: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] ciwiki-3.0.4/src/http.c:648:42: style: Parameter 'res' can be declared as pointer to const [constParameterPointer] ciwiki-3.0.4/src/http.c:689:31: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] ciwiki-3.0.4/src/http.c:761:22: style: Variable 'reuse' is assigned a value that is never used. [unreadVariable] ciwiki-3.0.4/src/http.c:576:11: error: va_list 'ap' was opened but not closed by va_end(). [va_end_missing] ciwiki-3.0.4/src/util.c:28:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ciwiki-3.0.4/src/util.c:294:5: error: Memory leak: fullKey [memleak] ciwiki-3.0.4/src/util.c:294:5: error: Memory leak: crypt [memleak] ciwiki-3.0.4/src/util.c:294:5: error: Memory leak: coordphrase [memleak] ciwiki-3.0.4/src/util.c:294:5: error: Memory leak: coordphrase_cle [memleak] ciwiki-3.0.4/src/util.c:294:5: error: Memory leak: newcoord [memleak] ciwiki-3.0.4/src/util.c:294:5: error: Memory leak: coordcrypt [memleak] ciwiki-3.0.4/src/util.c:341:5: error: Memory leak: fullKey [memleak] ciwiki-3.0.4/src/util.c:341:5: error: Memory leak: decrypt [memleak] ciwiki-3.0.4/src/util.c:341:5: error: Memory leak: coordcrypt [memleak] ciwiki-3.0.4/src/util.c:285:43: warning: Either the condition 'str==NULL' is redundant or there is possible null pointer dereference: str. [nullPointerRedundantCheck] ciwiki-3.0.4/src/util.c:292:41: note: Assuming that condition 'str==NULL' is not redundant ciwiki-3.0.4/src/util.c:285:43: note: Null pointer dereference ciwiki-3.0.4/src/util.c:286:41: warning: Either the condition 'str==NULL' is redundant or there is possible null pointer dereference: str. [nullPointerRedundantCheck] ciwiki-3.0.4/src/util.c:292:41: note: Assuming that condition 'str==NULL' is not redundant ciwiki-3.0.4/src/util.c:286:41: note: Null pointer dereference ciwiki-3.0.4/src/util.c:287:45: warning: Either the condition 'str==NULL' is redundant or there is possible null pointer dereference: str. [nullPointerRedundantCheck] ciwiki-3.0.4/src/util.c:292:41: note: Assuming that condition 'str==NULL' is not redundant ciwiki-3.0.4/src/util.c:287:45: note: Null pointer dereference ciwiki-3.0.4/src/util.c:288:49: warning: Either the condition 'str==NULL' is redundant or there is possible null pointer dereference: str. [nullPointerRedundantCheck] ciwiki-3.0.4/src/util.c:292:41: note: Assuming that condition 'str==NULL' is not redundant ciwiki-3.0.4/src/util.c:288:49: note: Null pointer dereference ciwiki-3.0.4/src/util.c:289:42: warning: Either the condition 'str==NULL' is redundant or there is possible null pointer dereference: str. [nullPointerRedundantCheck] ciwiki-3.0.4/src/util.c:292:41: note: Assuming that condition 'str==NULL' is not redundant ciwiki-3.0.4/src/util.c:289:42: note: Null pointer dereference ciwiki-3.0.4/src/util.c:290:44: warning: Either the condition 'str==NULL' is redundant or there is possible null pointer dereference: str. [nullPointerRedundantCheck] ciwiki-3.0.4/src/util.c:292:41: note: Assuming that condition 'str==NULL' is not redundant ciwiki-3.0.4/src/util.c:290:44: note: Null pointer dereference ciwiki-3.0.4/src/util.c:335:43: warning: Either the condition 'str==NULL' is redundant or there is possible null pointer dereference: str. [nullPointerRedundantCheck] ciwiki-3.0.4/src/util.c:339:41: note: Assuming that condition 'str==NULL' is not redundant ciwiki-3.0.4/src/util.c:335:43: note: Null pointer dereference ciwiki-3.0.4/src/util.c:336:43: warning: Either the condition 'str==NULL' is redundant or there is possible null pointer dereference: str. [nullPointerRedundantCheck] ciwiki-3.0.4/src/util.c:339:41: note: Assuming that condition 'str==NULL' is not redundant ciwiki-3.0.4/src/util.c:336:43: note: Null pointer dereference ciwiki-3.0.4/src/util.c:337:44: warning: Either the condition 'str==NULL' is redundant or there is possible null pointer dereference: str. [nullPointerRedundantCheck] ciwiki-3.0.4/src/util.c:339:41: note: Assuming that condition 'str==NULL' is not redundant ciwiki-3.0.4/src/util.c:337:44: note: Null pointer dereference ciwiki-3.0.4/src/util.c:260:18: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] ciwiki-3.0.4/src/util.c:279:12: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] ciwiki-3.0.4/src/util.c:279:23: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] ciwiki-3.0.4/src/util.c:283:8: style: Variable 'alpha' can be declared as const array [constVariable] ciwiki-3.0.4/src/util.c:329:14: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] ciwiki-3.0.4/src/util.c:329:25: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] ciwiki-3.0.4/src/util.c:333:8: style: Variable 'alpha' can be declared as const array [constVariable] ciwiki-3.0.4/src/util.c:290:35: style: Variable 'coordcrypt' is allocated memory that is never used. [unusedAllocatedMemory] ciwiki-3.0.4/src/wiki.c:813:35: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] ciwiki-3.0.4/src/wikiashtml.c:110:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_LOCAL0 [valueFlowBailoutIncompleteVar] ciwiki-3.0.4/src/wikiashtml.c:554:14: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] ciwiki-3.0.4/src/wikiashtml.c:116:14: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikiashtml.c:115:19: note: Assuming allocation function fails ciwiki-3.0.4/src/wikiashtml.c:115:19: note: Assignment 'url=malloc(sizeof(char)*((p-start)+2))', assigned value is 0 ciwiki-3.0.4/src/wikiashtml.c:116:14: note: Null pointer dereference ciwiki-3.0.4/src/wikiashtml.c:117:15: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikiashtml.c:115:19: note: Assuming allocation function fails ciwiki-3.0.4/src/wikiashtml.c:115:19: note: Assignment 'url=malloc(sizeof(char)*((p-start)+2))', assigned value is 0 ciwiki-3.0.4/src/wikiashtml.c:117:15: note: Null pointer dereference ciwiki-3.0.4/src/wikiashtml.c:143:14: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikiashtml.c:142:19: note: Assuming allocation function fails ciwiki-3.0.4/src/wikiashtml.c:142:19: note: Assignment 'url=malloc(sizeof(char)*((p-start)+2))', assigned value is 0 ciwiki-3.0.4/src/wikiashtml.c:143:14: note: Null pointer dereference ciwiki-3.0.4/src/wikiashtml.c:144:15: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikiashtml.c:142:19: note: Assuming allocation function fails ciwiki-3.0.4/src/wikiashtml.c:142:19: note: Assignment 'url=malloc(sizeof(char)*((p-start)+2))', assigned value is 0 ciwiki-3.0.4/src/wikiashtml.c:144:15: note: Null pointer dereference ciwiki-3.0.4/src/wikiashtml.c:166:14: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikiashtml.c:165:19: note: Assuming allocation function fails ciwiki-3.0.4/src/wikiashtml.c:165:19: note: Assignment 'url=malloc(sizeof(char)*((p-start)+2))', assigned value is 0 ciwiki-3.0.4/src/wikiashtml.c:166:14: note: Null pointer dereference ciwiki-3.0.4/src/wikiashtml.c:167:15: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikiashtml.c:165:19: note: Assuming allocation function fails ciwiki-3.0.4/src/wikiashtml.c:165:19: note: Assignment 'url=malloc(sizeof(char)*((p-start)+2))', assigned value is 0 ciwiki-3.0.4/src/wikiashtml.c:167:15: note: Null pointer dereference ciwiki-3.0.4/src/wikiashtml.c:188:14: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikiashtml.c:187:19: note: Assuming allocation function fails ciwiki-3.0.4/src/wikiashtml.c:187:19: note: Assignment 'url=malloc(sizeof(char)*((p-start)+2))', assigned value is 0 ciwiki-3.0.4/src/wikiashtml.c:188:14: note: Null pointer dereference ciwiki-3.0.4/src/wikiashtml.c:189:15: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikiashtml.c:187:19: note: Assuming allocation function fails ciwiki-3.0.4/src/wikiashtml.c:187:19: note: Assignment 'url=malloc(sizeof(char)*((p-start)+2))', assigned value is 0 ciwiki-3.0.4/src/wikiashtml.c:189:15: note: Null pointer dereference ciwiki-3.0.4/src/wikiashtml.c:213:14: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikiashtml.c:212:19: note: Assuming allocation function fails ciwiki-3.0.4/src/wikiashtml.c:212:19: note: Assignment 'url=malloc(sizeof(char)*((p-start)+2))', assigned value is 0 ciwiki-3.0.4/src/wikiashtml.c:213:14: note: Null pointer dereference ciwiki-3.0.4/src/wikiashtml.c:214:15: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikiashtml.c:212:19: note: Assuming allocation function fails ciwiki-3.0.4/src/wikiashtml.c:212:19: note: Assignment 'url=malloc(sizeof(char)*((p-start)+2))', assigned value is 0 ciwiki-3.0.4/src/wikiashtml.c:214:15: note: Null pointer dereference ciwiki-3.0.4/src/wikiashtml.c:245:14: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikiashtml.c:244:19: note: Assuming allocation function fails ciwiki-3.0.4/src/wikiashtml.c:244:19: note: Assignment 'url=malloc(sizeof(char)*((p-start)+2))', assigned value is 0 ciwiki-3.0.4/src/wikiashtml.c:245:14: note: Null pointer dereference ciwiki-3.0.4/src/wikiashtml.c:246:15: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikiashtml.c:244:19: note: Assuming allocation function fails ciwiki-3.0.4/src/wikiashtml.c:244:19: note: Assignment 'url=malloc(sizeof(char)*((p-start)+2))', assigned value is 0 ciwiki-3.0.4/src/wikiashtml.c:246:15: note: Null pointer dereference ciwiki-3.0.4/src/wikiashtml.c:271:14: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikiashtml.c:270:19: note: Assuming allocation function fails ciwiki-3.0.4/src/wikiashtml.c:270:19: note: Assignment 'url=malloc(sizeof(char)*((p-start)+2))', assigned value is 0 ciwiki-3.0.4/src/wikiashtml.c:271:14: note: Null pointer dereference ciwiki-3.0.4/src/wikiashtml.c:272:15: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikiashtml.c:270:19: note: Assuming allocation function fails ciwiki-3.0.4/src/wikiashtml.c:270:19: note: Assignment 'url=malloc(sizeof(char)*((p-start)+2))', assigned value is 0 ciwiki-3.0.4/src/wikiashtml.c:272:15: note: Null pointer dereference ciwiki-3.0.4/src/wikiashtml.c:310:14: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikiashtml.c:309:19: note: Assuming allocation function fails ciwiki-3.0.4/src/wikiashtml.c:309:19: note: Assignment 'url=malloc(sizeof(char)*((p-start)+2))', assigned value is 0 ciwiki-3.0.4/src/wikiashtml.c:310:14: note: Null pointer dereference ciwiki-3.0.4/src/wikiashtml.c:311:15: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikiashtml.c:309:19: note: Assuming allocation function fails ciwiki-3.0.4/src/wikiashtml.c:309:19: note: Assignment 'url=malloc(sizeof(char)*((p-start)+2))', assigned value is 0 ciwiki-3.0.4/src/wikiashtml.c:311:15: note: Null pointer dereference ciwiki-3.0.4/src/wikiashtml.c:500:4: warning: If memory allocation fails, then there is a possible null pointer dereference: *sectionlist [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikiashtml.c:476:24: note: Assuming allocation function fails ciwiki-3.0.4/src/wikiashtml.c:476:24: note: Assignment '*sectionlist=malloc(lg)', assigned value is 0 ciwiki-3.0.4/src/wikiashtml.c:500:4: note: Null pointer dereference ciwiki-3.0.4/src/wikiashtml.c:711:7: style: Variable 'p' is reassigned a value before the old one has been used. [redundantAssignment] ciwiki-3.0.4/src/wikiashtml.c:691:9: note: p is assigned ciwiki-3.0.4/src/wikiashtml.c:711:7: note: p is overwritten ciwiki-3.0.4/src/wikiashtml.c:950:22: style: Variable 'str_ptr' is reassigned a value before the old one has been used. [redundantAssignment] ciwiki-3.0.4/src/wikiashtml.c:925:23: note: str_ptr is assigned ciwiki-3.0.4/src/wikiashtml.c:950:22: note: str_ptr is overwritten ciwiki-3.0.4/src/wikiashtml.c:950:22: style: Variable 'str_ptr' is reassigned a value before the old one has been used. [redundantAssignment] ciwiki-3.0.4/src/wikiashtml.c:929:23: note: str_ptr is assigned ciwiki-3.0.4/src/wikiashtml.c:950:22: note: str_ptr is overwritten ciwiki-3.0.4/src/wikiashtml.c:72:9: style: Variable 'title' can be declared as pointer to const [constVariablePointer] ciwiki-3.0.4/src/wikiashtml.c:78:9: style: Variable 'position_pic_str' can be declared as pointer to const [constVariablePointer] ciwiki-3.0.4/src/wikiashtml.c:78:28: style: Variable 'new_tab_str' can be declared as pointer to const [constVariablePointer] ciwiki-3.0.4/src/wikiashtml.c:376:17: style: Variable 'extra_attr' can be declared as pointer to const [constVariablePointer] ciwiki-3.0.4/src/wikiashtml.c:473:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] ciwiki-3.0.4/src/wikiashtml.c:567:11: style: Variable 'line_start' can be declared as pointer to const [constVariablePointer] ciwiki-3.0.4/src/wikiashtml.c:79:18: style: Variable 'lgasprintf' is assigned a value that is never used. [unreadVariable] ciwiki-3.0.4/src/wikiashtml.c:111:20: style: Variable 'lgasprintf' is assigned a value that is never used. [unreadVariable] ciwiki-3.0.4/src/wikiashtml.c:124:22: style: Variable 'lgasprintf' is assigned a value that is never used. [unreadVariable] ciwiki-3.0.4/src/wikiashtml.c:126:21: style: Variable 'lgasprintf' is assigned a value that is never used. [unreadVariable] ciwiki-3.0.4/src/wikiashtml.c:129:20: style: Variable 'lgasprintf' is assigned a value that is never used. [unreadVariable] ciwiki-3.0.4/src/wikiashtml.c:147:18: style: Variable 'lgasprintf' is assigned a value that is never used. [unreadVariable] ciwiki-3.0.4/src/wikiashtml.c:170:18: style: Variable 'lgasprintf' is assigned a value that is never used. [unreadVariable] ciwiki-3.0.4/src/wikiashtml.c:192:18: style: Variable 'lgasprintf' is assigned a value that is never used. [unreadVariable] ciwiki-3.0.4/src/wikiashtml.c:217:18: style: Variable 'lgasprintf' is assigned a value that is never used. [unreadVariable] ciwiki-3.0.4/src/wikiashtml.c:249:18: style: Variable 'lgasprintf' is assigned a value that is never used. [unreadVariable] ciwiki-3.0.4/src/wikiashtml.c:275:18: style: Variable 'lgasprintf' is assigned a value that is never used. [unreadVariable] ciwiki-3.0.4/src/wikiashtml.c:357:30: style: Variable 'lgasprintf' is assigned a value that is never used. [unreadVariable] ciwiki-3.0.4/src/wikiashtml.c:360:30: style: Variable 'lgasprintf' is assigned a value that is never used. [unreadVariable] ciwiki-3.0.4/src/wikiashtml.c:367:30: style: Variable 'lgasprintf' is assigned a value that is never used. [unreadVariable] ciwiki-3.0.4/src/wikiashtml.c:370:30: style: Variable 'lgasprintf' is assigned a value that is never used. [unreadVariable] ciwiki-3.0.4/src/wikiashtml.c:392:24: style: Variable 'lgasprintf' is assigned a value that is never used. [unreadVariable] ciwiki-3.0.4/src/wikiashtml.c:394:24: style: Variable 'lgasprintf' is assigned a value that is never used. [unreadVariable] ciwiki-3.0.4/src/wikiashtml.c:445:18: style: Variable 'str_ptr' is assigned a value that is never used. [unreadVariable] ciwiki-3.0.4/src/wikiashtml.c:447:23: style: Variable 'str_ptr' is assigned a value that is never used. [unreadVariable] ciwiki-3.0.4/src/wikiashtml.c:887:24: style: Variable 'item_depth' is assigned a value that is never used. [unreadVariable] ciwiki-3.0.4/src/wikichanges.c:85:13: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] ciwiki-3.0.4/src/wikichanges.c:208:11: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] ciwiki-3.0.4/src/wikichanges.c:47:33: warning: If memory allocation fails, then there is a possible null pointer dereference: done [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikichanges.c:44:16: note: Assuming allocation function fails ciwiki-3.0.4/src/wikichanges.c:44:16: note: Assignment 'done=malloc((1+n_pages)*sizeof(int))', assigned value is 0 ciwiki-3.0.4/src/wikichanges.c:47:33: note: Null pointer dereference ciwiki-3.0.4/src/wikichanges.c:47:44: warning: If memory allocation fails, then there is a possible null pointer dereference: table [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikichanges.c:43:17: note: Assuming allocation function fails ciwiki-3.0.4/src/wikichanges.c:43:17: note: Assignment 'table=malloc((1+n_pages)*sizeof(int))', assigned value is 0 ciwiki-3.0.4/src/wikichanges.c:47:44: note: Null pointer dereference ciwiki-3.0.4/src/wikichanges.c:50:10: warning: If memory allocation fails, then there is a possible null pointer dereference: done [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikichanges.c:44:16: note: Assuming allocation function fails ciwiki-3.0.4/src/wikichanges.c:44:16: note: Assignment 'done=malloc((1+n_pages)*sizeof(int))', assigned value is 0 ciwiki-3.0.4/src/wikichanges.c:50:10: note: Null pointer dereference ciwiki-3.0.4/src/wikichanges.c:120:11: warning: If memory allocation fails, then there is a possible null pointer dereference: current [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikichanges.c:119:25: note: Assuming allocation function fails ciwiki-3.0.4/src/wikichanges.c:119:25: note: Assignment 'current=strdup(page)', assigned value is 0 ciwiki-3.0.4/src/wikichanges.c:120:11: note: Null pointer dereference ciwiki-3.0.4/src/wikichanges.c:122:45: warning: If memory allocation fails, then there is a possible null pointer dereference: current [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikichanges.c:119:25: note: Assuming allocation function fails ciwiki-3.0.4/src/wikichanges.c:119:25: note: Assignment 'current=strdup(page)', assigned value is 0 ciwiki-3.0.4/src/wikichanges.c:122:45: note: Null pointer dereference ciwiki-3.0.4/src/wikichanges.c:37:9: style: Variable 'str_ptr' can be declared as pointer to const [constVariablePointer] ciwiki-3.0.4/src/wikichanges.c:70:20: style: Variable 'pTm' can be declared as pointer to const [constVariablePointer] ciwiki-3.0.4/src/wikichanges.c:107:55: style: Parameter 'page' can be declared as pointer to const [constParameterPointer] ciwiki-3.0.4/src/wikichanges.c:205:18: style: Variable 'pTm' can be declared as pointer to const [constVariablePointer] ciwiki-3.0.4/src/wikientries.c:83:10: error: Array 'tag[255]' accessed at index 255, which is out of bounds. [arrayIndexOutOfBounds] ciwiki-3.0.4/src/wikientries.c:80:26: note: Assignment 'lg=255', assigned value is 255 ciwiki-3.0.4/src/wikientries.c:83:10: note: Array index out of bounds ciwiki-3.0.4/src/wikientries.c:63:15: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikientries.c:61:23: note: Assuming allocation function fails ciwiki-3.0.4/src/wikientries.c:61:9: note: Assignment 'str=(char*)malloc(sizeof(char)*(st.st_size+1))', assigned value is 0 ciwiki-3.0.4/src/wikientries.c:63:15: note: Null pointer dereference ciwiki-3.0.4/src/wikientries.c:103:22: warning: If memory allocation fails, then there is a possible null pointer dereference: movethis [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikientries.c:100:34: note: Assuming allocation function fails ciwiki-3.0.4/src/wikientries.c:100:34: note: Assignment 'movethis=strdup(str_ptr1)', assigned value is 0 ciwiki-3.0.4/src/wikientries.c:103:22: note: Null pointer dereference ciwiki-3.0.4/src/wikientries.c:135:15: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikientries.c:133:23: note: Assuming allocation function fails ciwiki-3.0.4/src/wikientries.c:133:9: note: Assignment 'str=(char*)malloc(sizeof(char)*(st.st_size+1))', assigned value is 0 ciwiki-3.0.4/src/wikientries.c:135:15: note: Null pointer dereference ciwiki-3.0.4/src/wikientries.c:216:15: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikientries.c:214:23: note: Assuming allocation function fails ciwiki-3.0.4/src/wikientries.c:214:9: note: Assignment 'str=(char*)malloc(sizeof(char)*(st.st_size+4))', assigned value is 0 ciwiki-3.0.4/src/wikientries.c:216:15: note: Null pointer dereference ciwiki-3.0.4/src/wikientries.c:328:15: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikientries.c:326:23: note: Assuming allocation function fails ciwiki-3.0.4/src/wikientries.c:326:9: note: Assignment 'str=(char*)malloc(sizeof(char)*(st.st_size+1))', assigned value is 0 ciwiki-3.0.4/src/wikientries.c:328:15: note: Null pointer dereference ciwiki-3.0.4/src/wikientries.c:413:15: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikientries.c:411:23: note: Assuming allocation function fails ciwiki-3.0.4/src/wikientries.c:411:9: note: Assignment 'str=(char*)malloc(sizeof(char)*(st.st_size+1))', assigned value is 0 ciwiki-3.0.4/src/wikientries.c:413:15: note: Null pointer dereference ciwiki-3.0.4/src/wikientries.c:217:11: style: Unsigned expression 'len' can't be negative so it is unnecessary to test it. [unsignedPositive] ciwiki-3.0.4/src/wikientries.c:329:11: style: Unsigned expression 'len' can't be negative so it is unnecessary to test it. [unsignedPositive] ciwiki-3.0.4/src/wikientries.c:29:57: style: Parameter 'form_nb' can be declared as pointer to const [constParameterPointer] ciwiki-3.0.4/src/wikientries.c:100:17: style: Variable 'movethis' can be declared as pointer to const [constVariablePointer] ciwiki-3.0.4/src/wikientries.c:120:16: style: Variable 'str_ptr1' can be declared as pointer to const [constVariablePointer] ciwiki-3.0.4/src/wikientries.c:200:16: style: Variable 'str_ptr1' can be declared as pointer to const [constVariablePointer] ciwiki-3.0.4/src/wikientries.c:313:16: style: Variable 'str_ptr1' can be declared as pointer to const [constVariablePointer] ciwiki-3.0.4/src/wikientries.c:398:16: style: Variable 'str_ptr1' can be declared as pointer to const [constVariablePointer] ciwiki-3.0.4/src/wikientries.c:71:16: style: Variable 'data_num' is assigned a value that is never used. [unreadVariable] ciwiki-3.0.4/src/wikilogin.c:292:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_LOCAL0 [valueFlowBailoutIncompleteVar] ciwiki-3.0.4/src/wikilogin.c:496:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_LOCAL0 [valueFlowBailoutIncompleteVar] ciwiki-3.0.4/src/wikilogin.c:181:11: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] ciwiki-3.0.4/src/wikilogin.c:180:13: note: Assuming allocation function fails ciwiki-3.0.4/src/wikilogin.c:180:13: note: Assignment 'fp=fopen("permission/.session.txt","a")', assigned value is 0 ciwiki-3.0.4/src/wikilogin.c:181:11: note: Null pointer dereference ciwiki-3.0.4/src/wikilogin.c:182:10: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] ciwiki-3.0.4/src/wikilogin.c:180:13: note: Assuming allocation function fails ciwiki-3.0.4/src/wikilogin.c:180:13: note: Assignment 'fp=fopen("permission/.session.txt","a")', assigned value is 0 ciwiki-3.0.4/src/wikilogin.c:182:10: note: Null pointer dereference ciwiki-3.0.4/src/wikilogin.c:383:11: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] ciwiki-3.0.4/src/wikilogin.c:382:13: note: Assuming allocation function fails ciwiki-3.0.4/src/wikilogin.c:382:13: note: Assignment 'fp=fopen("permission/.failed_attempts.txt","a")', assigned value is 0 ciwiki-3.0.4/src/wikilogin.c:383:11: note: Null pointer dereference ciwiki-3.0.4/src/wikilogin.c:384:10: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] ciwiki-3.0.4/src/wikilogin.c:382:13: note: Assuming allocation function fails ciwiki-3.0.4/src/wikilogin.c:382:13: note: Assignment 'fp=fopen("permission/.failed_attempts.txt","a")', assigned value is 0 ciwiki-3.0.4/src/wikilogin.c:384:10: note: Null pointer dereference ciwiki-3.0.4/src/wikilogin.c:602:9: style: Local variable 'code' shadows outer function [shadowFunction] ciwiki-3.0.4/src/util.h:29:1: note: Shadowed declaration ciwiki-3.0.4/src/wikilogin.c:602:9: note: Shadow variable ciwiki-3.0.4/src/wikilogin.c:59:12: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] ciwiki-3.0.4/src/wikilogin.c:70:24: style: Parameter 'ipsrc' can be declared as pointer to const [constParameterPointer] ciwiki-3.0.4/src/wikilogin.c:74:9: style: Variable 'str_ptr' can be declared as pointer to const [constVariablePointer] ciwiki-3.0.4/src/wikilogin.c:110:9: style: Variable 'str_ptr' can be declared as pointer to const [constVariablePointer] ciwiki-3.0.4/src/wikilogin.c:144:31: style: Parameter 'ipsrc' can be declared as pointer to const [constParameterPointer] ciwiki-3.0.4/src/wikilogin.c:144:44: style: Parameter 'username' can be declared as pointer to const [constParameterPointer] ciwiki-3.0.4/src/wikilogin.c:149:9: style: Variable 'str_ptr' can be declared as pointer to const [constVariablePointer] ciwiki-3.0.4/src/wikilogin.c:193:31: style: Parameter 'ipsrc' can be declared as pointer to const [constParameterPointer] ciwiki-3.0.4/src/wikilogin.c:198:9: style: Variable 'str_ptr' can be declared as pointer to const [constVariablePointer] ciwiki-3.0.4/src/wikilogin.c:269:23: style: Parameter 'ipsrc' can be declared as pointer to const [constParameterPointer] ciwiki-3.0.4/src/wikilogin.c:274:9: style: Variable 'str_ptr' can be declared as pointer to const [constVariablePointer] ciwiki-3.0.4/src/wikilogin.c:411:25: style: Parameter 'email' can be declared as pointer to const [constParameterPointer] ciwiki-3.0.4/src/wikilogin.c:411:38: style: Parameter 'code' can be declared as pointer to const [constParameterPointer] ciwiki-3.0.4/src/wikilogin.c:412:25: style: Parameter 'newaccount' can be declared as pointer to const [constParameterPointer] ciwiki-3.0.4/src/wikilogin.c:417:9: style: Variable 'str_ptr' can be declared as pointer to const [constVariablePointer] ciwiki-3.0.4/src/wikilogin.c:596:44: style: Parameter 'ipsrc' can be declared as pointer to const [constParameterPointer] ciwiki-3.0.4/src/wikilogin.c:601:19: style: Variable 'email' can be declared as pointer to const [constVariablePointer] ciwiki-3.0.4/src/wikilogin.c:602:9: style: Variable 'code' can be declared as pointer to const [constVariablePointer] ciwiki-3.0.4/src/wikilogin.c:659:27: style: Parameter 'ipsrc' can be declared as pointer to const [constParameterPointer] ciwiki-3.0.4/src/wikilogin.c:700:9: style: Variable 'str_ptr' can be declared as pointer to const [constVariablePointer] ciwiki-3.0.4/src/wikilogin.c:701:10: style: Variable 'username' can be declared as pointer to const [constVariablePointer] ciwiki-3.0.4/src/wikilogin.c:82:36: style: Variable 'str_ptr' is assigned a value that is never used. [unreadVariable] ciwiki-3.0.4/src/http.c:232:11: warning: If memory allocation fails, then there is a possible null pointer dereference: data [ctunullpointerOutOfMemory] ciwiki-3.0.4/src/http.c:468:43: note: Assuming allocation function fails ciwiki-3.0.4/src/http.c:468:31: note: Calling function http_request_parse_params, 2nd argument is null ciwiki-3.0.4/src/http.c:232:11: note: Dereferencing argument data that is null diff: 2.20.0 ciwiki-3.0.4/src/http.c:490:9: warning: If memory allocation fails, then there is a possible null pointer dereference: post_data [nullPointerOutOfMemory] ciwiki-3.0.4/src/http.c:488:27: note: Assuming allocation function fails ciwiki-3.0.4/src/http.c:488:27: note: Assignment 'post_data=malloc(len+1)', assigned value is 0 ciwiki-3.0.4/src/http.c:490:9: note: Null pointer dereference 2.20.0 ciwiki-3.0.4/src/http.c:497:9: warning: If memory allocation fails, then there is a possible null pointer dereference: post_data [nullPointerOutOfMemory] ciwiki-3.0.4/src/http.c:495:27: note: Assuming allocation function fails ciwiki-3.0.4/src/http.c:495:27: note: Assignment 'post_data=malloc(len+1)', assigned value is 0 ciwiki-3.0.4/src/http.c:497:9: note: Null pointer dereference 2.20.0 ciwiki-3.0.4/src/http.c:632:34: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] ciwiki-3.0.4/src/http.c:629:17: note: Assuming allocation function fails ciwiki-3.0.4/src/http.c:629:17: note: Assignment 'fp=fopen(filename,"rb")', assigned value is 0 ciwiki-3.0.4/src/http.c:632:34: note: Null pointer dereference 2.20.0 ciwiki-3.0.4/src/http.c:635:11: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] ciwiki-3.0.4/src/http.c:629:17: note: Assuming allocation function fails ciwiki-3.0.4/src/http.c:629:17: note: Assignment 'fp=fopen(filename,"rb")', assigned value is 0 ciwiki-3.0.4/src/http.c:633:16: note: Assuming condition is false ciwiki-3.0.4/src/http.c:635:11: note: Null pointer dereference 2.20.0 ciwiki-3.0.4/src/http.c:68:46: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ciwiki-3.0.4/src/http.c:495:27: note: Assuming allocation function fails ciwiki-3.0.4/src/http.c:495:27: note: Assignment 'post_data=malloc(len+1)', assigned value is 0 ciwiki-3.0.4/src/http.c:500:40: note: Calling function 'save_dump_file', 1st argument 'post_data' value is 0 ciwiki-3.0.4/src/http.c:68:46: note: Null pointer addition 2.20.0 ciwiki-3.0.4/src/http.c:698:34: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] ciwiki-3.0.4/src/http.c:695:17: note: Assuming allocation function fails ciwiki-3.0.4/src/http.c:695:17: note: Assignment 'fp=fopen(filename,"rb")', assigned value is 0 ciwiki-3.0.4/src/http.c:698:34: note: Null pointer dereference 2.20.0 ciwiki-3.0.4/src/http.c:700:11: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] ciwiki-3.0.4/src/http.c:695:17: note: Assuming allocation function fails ciwiki-3.0.4/src/http.c:695:17: note: Assignment 'fp=fopen(filename,"rb")', assigned value is 0 ciwiki-3.0.4/src/http.c:700:11: note: Null pointer dereference 2.20.0 ciwiki-3.0.4/src/http.c:702:17: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] ciwiki-3.0.4/src/http.c:695:17: note: Assuming allocation function fails ciwiki-3.0.4/src/http.c:695:17: note: Assignment 'fp=fopen(filename,"rb")', assigned value is 0 ciwiki-3.0.4/src/http.c:702:17: note: Null pointer dereference 2.20.0 ciwiki-3.0.4/src/http.c:703:10: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] ciwiki-3.0.4/src/http.c:695:17: note: Assuming allocation function fails ciwiki-3.0.4/src/http.c:695:17: note: Assignment 'fp=fopen(filename,"rb")', assigned value is 0 ciwiki-3.0.4/src/http.c:703:10: note: Null pointer dereference 2.20.0 ciwiki-3.0.4/src/wikiashtml.c:123:27: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikiashtml.c:115:19: note: Assuming allocation function fails ciwiki-3.0.4/src/wikiashtml.c:115:19: note: Assignment 'url=malloc(sizeof(char)*((p-start)+2))', assigned value is 0 ciwiki-3.0.4/src/wikiashtml.c:123:27: note: Null pointer dereference 2.20.0 ciwiki-3.0.4/src/wikiashtml.c:129:68: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikiashtml.c:115:19: note: Assuming allocation function fails ciwiki-3.0.4/src/wikiashtml.c:115:19: note: Assignment 'url=malloc(sizeof(char)*((p-start)+2))', assigned value is 0 ciwiki-3.0.4/src/wikiashtml.c:129:68: note: Null pointer dereference 2.20.0 ciwiki-3.0.4/src/wikiashtml.c:129:72: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikiashtml.c:115:19: note: Assuming allocation function fails ciwiki-3.0.4/src/wikiashtml.c:115:19: note: Assignment 'url=malloc(sizeof(char)*((p-start)+2))', assigned value is 0 ciwiki-3.0.4/src/wikiashtml.c:129:72: note: Null pointer dereference 2.20.0 ciwiki-3.0.4/src/wikiashtml.c:153:11: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikiashtml.c:142:19: note: Assuming allocation function fails ciwiki-3.0.4/src/wikiashtml.c:142:19: note: Assignment 'url=malloc(sizeof(char)*((p-start)+2))', assigned value is 0 ciwiki-3.0.4/src/wikiashtml.c:153:11: note: Null pointer dereference 2.20.0 ciwiki-3.0.4/src/wikiashtml.c:153:7: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikiashtml.c:142:19: note: Assuming allocation function fails ciwiki-3.0.4/src/wikiashtml.c:142:19: note: Assignment 'url=malloc(sizeof(char)*((p-start)+2))', assigned value is 0 ciwiki-3.0.4/src/wikiashtml.c:153:7: note: Null pointer dereference 2.20.0 ciwiki-3.0.4/src/wikiashtml.c:175:11: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikiashtml.c:165:19: note: Assuming allocation function fails ciwiki-3.0.4/src/wikiashtml.c:165:19: note: Assignment 'url=malloc(sizeof(char)*((p-start)+2))', assigned value is 0 ciwiki-3.0.4/src/wikiashtml.c:175:11: note: Null pointer dereference 2.20.0 ciwiki-3.0.4/src/wikiashtml.c:175:7: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikiashtml.c:165:19: note: Assuming allocation function fails ciwiki-3.0.4/src/wikiashtml.c:165:19: note: Assignment 'url=malloc(sizeof(char)*((p-start)+2))', assigned value is 0 ciwiki-3.0.4/src/wikiashtml.c:175:7: note: Null pointer dereference 2.20.0 ciwiki-3.0.4/src/wikiashtml.c:199:11: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikiashtml.c:187:19: note: Assuming allocation function fails ciwiki-3.0.4/src/wikiashtml.c:187:19: note: Assignment 'url=malloc(sizeof(char)*((p-start)+2))', assigned value is 0 ciwiki-3.0.4/src/wikiashtml.c:199:11: note: Null pointer dereference 2.20.0 ciwiki-3.0.4/src/wikiashtml.c:199:7: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikiashtml.c:187:19: note: Assuming allocation function fails ciwiki-3.0.4/src/wikiashtml.c:187:19: note: Assignment 'url=malloc(sizeof(char)*((p-start)+2))', assigned value is 0 ciwiki-3.0.4/src/wikiashtml.c:199:7: note: Null pointer dereference 2.20.0 ciwiki-3.0.4/src/wikiashtml.c:226:12: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikiashtml.c:212:19: note: Assuming allocation function fails ciwiki-3.0.4/src/wikiashtml.c:212:19: note: Assignment 'url=malloc(sizeof(char)*((p-start)+2))', assigned value is 0 ciwiki-3.0.4/src/wikiashtml.c:226:12: note: Null pointer dereference 2.20.0 ciwiki-3.0.4/src/wikiashtml.c:226:7: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikiashtml.c:212:19: note: Assuming allocation function fails ciwiki-3.0.4/src/wikiashtml.c:212:19: note: Assignment 'url=malloc(sizeof(char)*((p-start)+2))', assigned value is 0 ciwiki-3.0.4/src/wikiashtml.c:226:7: note: Null pointer dereference 2.20.0 ciwiki-3.0.4/src/wikiashtml.c:252:18: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikiashtml.c:244:19: note: Assuming allocation function fails ciwiki-3.0.4/src/wikiashtml.c:244:19: note: Assignment 'url=malloc(sizeof(char)*((p-start)+2))', assigned value is 0 ciwiki-3.0.4/src/wikiashtml.c:252:18: note: Null pointer dereference 2.20.0 ciwiki-3.0.4/src/wikiashtml.c:252:7: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikiashtml.c:244:19: note: Assuming allocation function fails ciwiki-3.0.4/src/wikiashtml.c:244:19: note: Assignment 'url=malloc(sizeof(char)*((p-start)+2))', assigned value is 0 ciwiki-3.0.4/src/wikiashtml.c:252:7: note: Null pointer dereference 2.20.0 ciwiki-3.0.4/src/wikiashtml.c:277:9: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikiashtml.c:270:19: note: Assuming allocation function fails ciwiki-3.0.4/src/wikiashtml.c:270:19: note: Assignment 'url=malloc(sizeof(char)*((p-start)+2))', assigned value is 0 ciwiki-3.0.4/src/wikiashtml.c:277:9: note: Null pointer dereference head ciwiki-3.0.4/src/wikichanges.c:205:18: style: Variable 'pTm' can be declared as pointer to const [constVariablePointer] 2.20.0 ciwiki-3.0.4/src/wikientries.c:136:17: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikientries.c:133:23: note: Assuming allocation function fails ciwiki-3.0.4/src/wikientries.c:133:9: note: Assignment 'str=(char*)malloc(sizeof(char)*(st.st_size+1))', assigned value is 0 ciwiki-3.0.4/src/wikientries.c:136:17: note: Null pointer dereference 2.20.0 ciwiki-3.0.4/src/wikientries.c:217:17: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikientries.c:214:23: note: Assuming allocation function fails ciwiki-3.0.4/src/wikientries.c:214:9: note: Assignment 'str=(char*)malloc(sizeof(char)*(st.st_size+4))', assigned value is 0 ciwiki-3.0.4/src/wikientries.c:217:17: note: Null pointer dereference 2.20.0 ciwiki-3.0.4/src/wikientries.c:329:17: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikientries.c:326:23: note: Assuming allocation function fails ciwiki-3.0.4/src/wikientries.c:326:9: note: Assignment 'str=(char*)malloc(sizeof(char)*(st.st_size+1))', assigned value is 0 ciwiki-3.0.4/src/wikientries.c:329:17: note: Null pointer dereference 2.20.0 ciwiki-3.0.4/src/wikientries.c:414:17: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikientries.c:411:23: note: Assuming allocation function fails ciwiki-3.0.4/src/wikientries.c:411:9: note: Assignment 'str=(char*)malloc(sizeof(char)*(st.st_size+1))', assigned value is 0 ciwiki-3.0.4/src/wikientries.c:414:17: note: Null pointer dereference 2.20.0 ciwiki-3.0.4/src/wikientries.c:64:17: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikientries.c:61:23: note: Assuming allocation function fails ciwiki-3.0.4/src/wikientries.c:61:9: note: Assignment 'str=(char*)malloc(sizeof(char)*(st.st_size+1))', assigned value is 0 ciwiki-3.0.4/src/wikientries.c:64:17: note: Null pointer dereference 2.20.0 ciwiki-3.0.4/src/wikientries.c:74:28: warning: If memory allocation fails, then there is a possible null pointer dereference: str_ptr1 [nullPointerOutOfMemory] ciwiki-3.0.4/src/wikientries.c:61:23: note: Assuming allocation function fails ciwiki-3.0.4/src/wikientries.c:61:9: note: Assignment 'str=(char*)malloc(sizeof(char)*(st.st_size+1))', assigned value is 0 ciwiki-3.0.4/src/wikientries.c:72:12: note: Assignment 'str_ptr1=str', assigned value is 0 ciwiki-3.0.4/src/wikientries.c:74:28: note: Null pointer dereference DONE