2025-08-31 03:35 ftp://ftp.de.debian.org/debian/pool/main/g/gmrender-resurrect/gmrender-resurrect_0.3.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --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-79-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: 2ee39fe (2025-08-30 22:07:31 +0200) count: 109 109 elapsed-time: 1.3 1.5 head-timing-info: old-timing-info: head results: gmrender-resurrect-0.3/src/logging.c:64:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] gmrender-resurrect-0.3/src/logging.c:93:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iov_len [valueFlowBailoutIncompleteVar] gmrender-resurrect-0.3/src/main.c:42:0: error: #error "To have gmrender any useful, you need to have libupnp installed." [preprocessorErrorDirective] gmrender-resurrect-0.3/src/main.c:42:3: error: #error "To have gmrender any useful, you need to have libupnp installed." [preprocessorErrorDirective] gmrender-resurrect-0.3/src/output.c:51:0: error: #error "No output configured. You need to ./configure --with-gstreamer" [preprocessorErrorDirective] gmrender-resurrect-0.3/src/output.c:51:2: error: #error "No output configured. You need to ./configure --with-gstreamer" [preprocessorErrorDirective] gmrender-resurrect-0.3/src/output_gstreamer.c:59:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GST_TYPE_ELEMENT_FACTORY [valueFlowBailoutIncompleteVar] gmrender-resurrect-0.3/src/output_gstreamer.c:140:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GST_STATE_PLAYING [valueFlowBailoutIncompleteVar] gmrender-resurrect-0.3/src/output_gstreamer.c:148:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GST_STATE_PAUSED [valueFlowBailoutIncompleteVar] gmrender-resurrect-0.3/src/output_gstreamer.c:165:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GST_STATE_READY [valueFlowBailoutIncompleteVar] gmrender-resurrect-0.3/src/output_gstreamer.c:174:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GST_STATE_PAUSED [valueFlowBailoutIncompleteVar] gmrender-resurrect-0.3/src/output_gstreamer.c:206:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GST_STATE_PLAYING [valueFlowBailoutIncompleteVar] gmrender-resurrect-0.3/src/output_gstreamer.c:240:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GST_TAG_TITLE [valueFlowBailoutIncompleteVar] gmrender-resurrect-0.3/src/output_gstreamer.c:289:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GST_STATE_READY [valueFlowBailoutIncompleteVar] gmrender-resurrect-0.3/src/output_gstreamer.c:431:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GST_STATE_PLAYING [valueFlowBailoutIncompleteVar] gmrender-resurrect-0.3/src/output_gstreamer.c:524:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] gmrender-resurrect-0.3/src/output_gstreamer.c:564:15: style: Variable 'sink' can be declared as pointer to const [constVariablePointer] gmrender-resurrect-0.3/src/output_gstreamer.c:575:15: style: Variable 'sink' can be declared as pointer to const [constVariablePointer] gmrender-resurrect-0.3/src/output_gstreamer.c:581:15: style: Variable 'sink' can be declared as pointer to const [constVariablePointer] gmrender-resurrect-0.3/src/song-meta-data.c:83:2: error: Memory leak: result [memleak] gmrender-resurrect-0.3/src/song-meta-data.c:97:31: warning: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] gmrender-resurrect-0.3/src/song-meta-data.c:185:18: note: Assuming allocation function fails gmrender-resurrect-0.3/src/song-meta-data.c:185:18: note: Assignment 'result=strdup(original_xml)', assigned value is 0 gmrender-resurrect-0.3/src/song-meta-data.c:186:26: note: Calling function 'replace_range', 1st argument 'result' value is 0 gmrender-resurrect-0.3/src/song-meta-data.c:95:14: note: Assuming condition is false gmrender-resurrect-0.3/src/song-meta-data.c:97:31: note: Null pointer dereference gmrender-resurrect-0.3/src/song-meta-data.c:98:33: warning: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] gmrender-resurrect-0.3/src/song-meta-data.c:185:18: note: Assuming allocation function fails gmrender-resurrect-0.3/src/song-meta-data.c:185:18: note: Assignment 'result=strdup(original_xml)', assigned value is 0 gmrender-resurrect-0.3/src/song-meta-data.c:186:26: note: Calling function 'replace_range', 1st argument 'result' value is 0 gmrender-resurrect-0.3/src/song-meta-data.c:95:14: note: Assuming condition is false gmrender-resurrect-0.3/src/song-meta-data.c:98:33: note: Null pointer dereference gmrender-resurrect-0.3/src/song-meta-data.c:110:10: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] gmrender-resurrect-0.3/src/song-meta-data.c:108:25: note: Assuming allocation function fails gmrender-resurrect-0.3/src/song-meta-data.c:108:12: note: Assignment 'result=(char*)malloc(total_len+new_content_len-old_content_len+1)', assigned value is 0 gmrender-resurrect-0.3/src/song-meta-data.c:110:10: note: Null pointer dereference gmrender-resurrect-0.3/src/song-meta-data.c:111:17: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] gmrender-resurrect-0.3/src/song-meta-data.c:108:25: note: Assuming allocation function fails gmrender-resurrect-0.3/src/song-meta-data.c:108:12: note: Assignment 'result=(char*)malloc(total_len+new_content_len-old_content_len+1)', assigned value is 0 gmrender-resurrect-0.3/src/song-meta-data.c:111:17: note: Null pointer addition gmrender-resurrect-0.3/src/song-meta-data.c:112:17: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] gmrender-resurrect-0.3/src/song-meta-data.c:108:25: note: Assuming allocation function fails gmrender-resurrect-0.3/src/song-meta-data.c:108:12: note: Assignment 'result=(char*)malloc(total_len+new_content_len-old_content_len+1)', assigned value is 0 gmrender-resurrect-0.3/src/song-meta-data.c:112:17: note: Null pointer addition gmrender-resurrect-0.3/src/song-meta-data.c:44:45: style:inconclusive: Function 'SongMetaData_init' argument 1 names different: declaration 'object' definition 'value'. [funcArgNamesDifferent] gmrender-resurrect-0.3/src/song-meta-data.h:37:45: note: Function 'SongMetaData_init' argument 1 names different: declaration 'object' definition 'value'. gmrender-resurrect-0.3/src/song-meta-data.c:44:45: note: Function 'SongMetaData_init' argument 1 names different: declaration 'object' definition 'value'. gmrender-resurrect-0.3/src/song-meta-data.c:47:46: style:inconclusive: Function 'SongMetaData_clear' argument 1 names different: declaration 'object' definition 'value'. [funcArgNamesDifferent] gmrender-resurrect-0.3/src/song-meta-data.h:40:46: note: Function 'SongMetaData_clear' argument 1 names different: declaration 'object' definition 'value'. gmrender-resurrect-0.3/src/song-meta-data.c:47:46: note: Function 'SongMetaData_clear' argument 1 names different: declaration 'object' definition 'value'. gmrender-resurrect-0.3/src/upnp_connmgr.c:328:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] gmrender-resurrect-0.3/src/upnp_connmgr.c:311:30: style:inconclusive: Function 'connmgr_init' argument 1 names different: declaration 'mime_filter' definition 'mime_filter_string'. [funcArgNamesDifferent] gmrender-resurrect-0.3/src/upnp_connmgr.h:37:30: note: Function 'connmgr_init' argument 1 names different: declaration 'mime_filter' definition 'mime_filter_string'. gmrender-resurrect-0.3/src/upnp_connmgr.c:311:30: note: Function 'connmgr_init' argument 1 names different: declaration 'mime_filter' definition 'mime_filter_string'. gmrender-resurrect-0.3/src/upnp_connmgr.c:263:8: style: Variable 'token' can be declared as pointer to const [constVariablePointer] gmrender-resurrect-0.3/src/upnp_connmgr.c:422:25: style: Variable 'connmgr_var_meta' can be declared as const array [constVariable] gmrender-resurrect-0.3/src/upnp_control.c:450:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] gmrender-resurrect-0.3/src/upnp_control.c:722:25: style: Variable 'control_var_meta' can be declared as const array [constVariable] gmrender-resurrect-0.3/src/upnp_device.c:78:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UPNP_E_SUCCESS [valueFlowBailoutIncompleteVar] gmrender-resurrect-0.3/src/upnp_device.c:117:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINE_SIZE [valueFlowBailoutIncompleteVar] gmrender-resurrect-0.3/src/upnp_device.c:137:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UPNP_SOAP_E_INVALID_ARGS [valueFlowBailoutIncompleteVar] gmrender-resurrect-0.3/src/upnp_device.c:177:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] gmrender-resurrect-0.3/src/upnp_device.c:257:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UPNP_SOAP_E_INVALID_ARGS [valueFlowBailoutIncompleteVar] gmrender-resurrect-0.3/src/upnp_device.c:345:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UPNP_E_SUCCESS [valueFlowBailoutIncompleteVar] gmrender-resurrect-0.3/src/upnp_device.c:437:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UPNP_E_SUCCESS [valueFlowBailoutIncompleteVar] gmrender-resurrect-0.3/src/upnp_device.c:432:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] gmrender-resurrect-0.3/src/upnp_device.c:432:23: error: Invalid usleep() argument nr 1. The value is 1000000 but the valid values are '0:999999'. [invalidFunctionArg] gmrender-resurrect-0.3/src/upnp_device.c:507:2: warning: If memory allocation fails, then there is a possible null pointer dereference: result_device [nullPointerOutOfMemory] gmrender-resurrect-0.3/src/upnp_device.c:506:65: note: Assuming allocation function fails gmrender-resurrect-0.3/src/upnp_device.c:506:38: note: Assignment 'result_device=(struct upnp_device*)malloc(sizeof(*result_device))', assigned value is 0 gmrender-resurrect-0.3/src/upnp_device.c:507:2: note: Null pointer dereference gmrender-resurrect-0.3/src/upnp_device.c:536:42: style:inconclusive: Function 'find_service' argument 2 names different: declaration 'service_name' definition 'service_id'. [funcArgNamesDifferent] gmrender-resurrect-0.3/src/upnp_device.h:79:42: note: Function 'find_service' argument 2 names different: declaration 'service_name' definition 'service_id'. gmrender-resurrect-0.3/src/upnp_device.c:536:42: note: Function 'find_service' argument 2 names different: declaration 'service_name' definition 'service_id'. gmrender-resurrect-0.3/src/upnp_device.c:370:15: style: Local variable 'actionName' shadows outer variable [shadowVariable] gmrender-resurrect-0.3/src/upnp_device.c:290:14: note: Shadowed declaration gmrender-resurrect-0.3/src/upnp_device.c:370:15: note: Shadow variable gmrender-resurrect-0.3/src/upnp_device.c:372:15: style: Local variable 'serviceID' shadows outer variable [shadowVariable] gmrender-resurrect-0.3/src/upnp_device.c:289:14: note: Shadowed declaration gmrender-resurrect-0.3/src/upnp_device.c:372:15: note: Shadow variable gmrender-resurrect-0.3/src/upnp_device.c:493:8: style: Variable 'buf' can be declared as pointer to const [constVariablePointer] gmrender-resurrect-0.3/src/upnp_device.c:495:15: style: Variable 'icon_entry' can be declared as pointer to const [constVariablePointer] gmrender-resurrect-0.3/src/upnp_device.c:531:47: style: Parameter 'device' can be declared as pointer to const [constParameterPointer] gmrender-resurrect-0.3/src/upnp_device.c:535:61: style: Parameter 'device_def' can be declared as pointer to const [constParameterPointer] gmrender-resurrect-0.3/src/upnp_device.c:573:15: style: Variable 'icon_entry' can be declared as pointer to const [constVariablePointer] gmrender-resurrect-0.3/src/upnp_device.c:592:53: style: Parameter 'device_def' can be declared as pointer to const [constParameterPointer] gmrender-resurrect-0.3/src/upnp_device.c:596:18: style: Variable 'srv' can be declared as pointer to const [constVariablePointer] gmrender-resurrect-0.3/src/upnp_renderer.c:103:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gmrender-resurrect-0.3/src/upnp_renderer.c:110:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gmrender-resurrect-0.3/src/upnp_renderer.c:117:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gmrender-resurrect-0.3/src/upnp_renderer.c:143:2: error: Memory leak: udn [memleak] gmrender-resurrect-0.3/src/upnp_renderer.c:132:38: style:inconclusive: Function 'upnp_renderer_descriptor' argument 1 names different: declaration 'name' definition 'friendly_name'. [funcArgNamesDifferent] gmrender-resurrect-0.3/src/upnp_renderer.h:32:69: note: Function 'upnp_renderer_descriptor' argument 1 names different: declaration 'name' definition 'friendly_name'. gmrender-resurrect-0.3/src/upnp_renderer.c:132:38: note: Function 'upnp_renderer_descriptor' argument 1 names different: declaration 'name' definition 'friendly_name'. gmrender-resurrect-0.3/src/upnp_renderer.c:100:8: style: Variable 'buf' can be declared as pointer to const [constVariablePointer] gmrender-resurrect-0.3/src/upnp_renderer.c:107:8: style: Variable 'buf' can be declared as pointer to const [constVariablePointer] gmrender-resurrect-0.3/src/upnp_renderer.c:114:8: style: Variable 'buf' can be declared as pointer to const [constVariablePointer] gmrender-resurrect-0.3/src/upnp_service.c:111:14: style: Condition 'act' is always true [knownConditionTrueFalse] gmrender-resurrect-0.3/src/upnp_service.c:66:58: style: Parameter 'act' can be declared as pointer to const [constParameterPointer] gmrender-resurrect-0.3/src/upnp_service.c:219:44: style: Parameter 'event_service' can be declared as pointer to const [constParameterPointer] gmrender-resurrect-0.3/src/upnp_transport.c:436:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UPNP_SOAP_E_INVALID_ARGS [valueFlowBailoutIncompleteVar] gmrender-resurrect-0.3/src/upnp_transport.c:680:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] gmrender-resurrect-0.3/src/upnp_transport.c:933:25: style: Variable 'transport_var_meta' can be declared as const array [constVariable] gmrender-resurrect-0.3/src/variable-container.c:67:9: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] gmrender-resurrect-0.3/src/variable-container.c:66:29: note: Assuming allocation function fails gmrender-resurrect-0.3/src/variable-container.c:66:5: note: Assignment 'result=(struct var_meta*)malloc(num*sizeof(struct var_meta))', assigned value is 0 gmrender-resurrect-0.3/src/variable-container.c:67:9: note: Null pointer dereference gmrender-resurrect-0.3/src/variable-container.c:68:8: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] gmrender-resurrect-0.3/src/variable-container.c:66:29: note: Assuming allocation function fails gmrender-resurrect-0.3/src/variable-container.c:66:5: note: Assignment 'result=(struct var_meta*)malloc(num*sizeof(struct var_meta))', assigned value is 0 gmrender-resurrect-0.3/src/variable-container.c:68:8: note: Null pointer dereference gmrender-resurrect-0.3/src/variable-container.c:77:2: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] gmrender-resurrect-0.3/src/variable-container.c:76:34: note: Assuming allocation function fails gmrender-resurrect-0.3/src/variable-container.c:76:5: note: Assignment 'result=(struct variable_container_t*)malloc(sizeof(struct variable_container_t))', assigned value is 0 gmrender-resurrect-0.3/src/variable-container.c:77:2: note: Null pointer dereference gmrender-resurrect-0.3/src/variable-container.c:87:2: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] gmrender-resurrect-0.3/src/variable-container.c:76:34: note: Assuming allocation function fails gmrender-resurrect-0.3/src/variable-container.c:76:5: note: Assignment 'result=(struct variable_container_t*)malloc(sizeof(struct variable_container_t))', assigned value is 0 gmrender-resurrect-0.3/src/variable-container.c:87:2: note: Null pointer dereference gmrender-resurrect-0.3/src/variable-container.c:88:2: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] gmrender-resurrect-0.3/src/variable-container.c:76:34: note: Assuming allocation function fails gmrender-resurrect-0.3/src/variable-container.c:76:5: note: Assignment 'result=(struct variable_container_t*)malloc(sizeof(struct variable_container_t))', assigned value is 0 gmrender-resurrect-0.3/src/variable-container.c:88:2: note: Null pointer dereference gmrender-resurrect-0.3/src/variable-container.c:89:2: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] gmrender-resurrect-0.3/src/variable-container.c:76:34: note: Assuming allocation function fails gmrender-resurrect-0.3/src/variable-container.c:76:5: note: Assignment 'result=(struct variable_container_t*)malloc(sizeof(struct variable_container_t))', assigned value is 0 gmrender-resurrect-0.3/src/variable-container.c:89:2: note: Null pointer dereference gmrender-resurrect-0.3/src/variable-container.c:91:10: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] gmrender-resurrect-0.3/src/variable-container.c:76:34: note: Assuming allocation function fails gmrender-resurrect-0.3/src/variable-container.c:76:5: note: Assignment 'result=(struct variable_container_t*)malloc(sizeof(struct variable_container_t))', assigned value is 0 gmrender-resurrect-0.3/src/variable-container.c:91:10: note: Null pointer dereference gmrender-resurrect-0.3/src/variable-container.c:92:10: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] gmrender-resurrect-0.3/src/variable-container.c:76:34: note: Assuming allocation function fails gmrender-resurrect-0.3/src/variable-container.c:76:5: note: Assignment 'result=(struct variable_container_t*)malloc(sizeof(struct variable_container_t))', assigned value is 0 gmrender-resurrect-0.3/src/variable-container.c:92:10: note: Null pointer dereference gmrender-resurrect-0.3/src/variable-container.c:93:10: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] gmrender-resurrect-0.3/src/variable-container.c:76:34: note: Assuming allocation function fails gmrender-resurrect-0.3/src/variable-container.c:76:5: note: Assignment 'result=(struct variable_container_t*)malloc(sizeof(struct variable_container_t))', assigned value is 0 gmrender-resurrect-0.3/src/variable-container.c:93:10: note: Null pointer dereference gmrender-resurrect-0.3/src/variable-container.c:94:3: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] gmrender-resurrect-0.3/src/variable-container.c:76:34: note: Assuming allocation function fails gmrender-resurrect-0.3/src/variable-container.c:76:5: note: Assignment 'result=(struct variable_container_t*)malloc(sizeof(struct variable_container_t))', assigned value is 0 gmrender-resurrect-0.3/src/variable-container.c:94:3: note: Null pointer dereference gmrender-resurrect-0.3/src/variable-container.c:94:30: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] gmrender-resurrect-0.3/src/variable-container.c:76:34: note: Assuming allocation function fails gmrender-resurrect-0.3/src/variable-container.c:76:5: note: Assignment 'result=(struct variable_container_t*)malloc(sizeof(struct variable_container_t))', assigned value is 0 gmrender-resurrect-0.3/src/variable-container.c:94:30: note: Null pointer dereference gmrender-resurrect-0.3/src/variable-container.c:158:2: warning: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] gmrender-resurrect-0.3/src/variable-container.c:157:49: note: Assuming allocation function fails gmrender-resurrect-0.3/src/variable-container.c:157:25: note: Assignment 'item=(struct cb_list*)malloc(sizeof(struct cb_list))', assigned value is 0 gmrender-resurrect-0.3/src/variable-container.c:158:2: note: Null pointer dereference gmrender-resurrect-0.3/src/variable-container.c:159:2: warning: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] gmrender-resurrect-0.3/src/variable-container.c:157:49: note: Assuming allocation function fails gmrender-resurrect-0.3/src/variable-container.c:157:25: note: Assignment 'item=(struct cb_list*)malloc(sizeof(struct cb_list))', assigned value is 0 gmrender-resurrect-0.3/src/variable-container.c:159:2: note: Null pointer dereference gmrender-resurrect-0.3/src/variable-container.c:160:2: warning: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] gmrender-resurrect-0.3/src/variable-container.c:157:49: note: Assuming allocation function fails gmrender-resurrect-0.3/src/variable-container.c:157:25: note: Assignment 'item=(struct cb_list*)malloc(sizeof(struct cb_list))', assigned value is 0 gmrender-resurrect-0.3/src/variable-container.c:160:2: note: Null pointer dereference gmrender-resurrect-0.3/src/variable-container.c:174:2: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] gmrender-resurrect-0.3/src/variable-container.c:173:9: note: Assuming allocation function fails gmrender-resurrect-0.3/src/variable-container.c:172:39: note: Assignment 'result=(struct upnp_last_change_builder_t*)malloc(sizeof(struct upnp_last_change_builder_t))', assigned value is 0 gmrender-resurrect-0.3/src/variable-container.c:174:2: note: Null pointer dereference gmrender-resurrect-0.3/src/variable-container.c:175:2: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] gmrender-resurrect-0.3/src/variable-container.c:173:9: note: Assuming allocation function fails gmrender-resurrect-0.3/src/variable-container.c:172:39: note: Assignment 'result=(struct upnp_last_change_builder_t*)malloc(sizeof(struct upnp_last_change_builder_t))', assigned value is 0 gmrender-resurrect-0.3/src/variable-container.c:175:2: note: Null pointer dereference gmrender-resurrect-0.3/src/variable-container.c:176:2: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] gmrender-resurrect-0.3/src/variable-container.c:173:9: note: Assuming allocation function fails gmrender-resurrect-0.3/src/variable-container.c:172:39: note: Assignment 'result=(struct upnp_last_change_builder_t*)malloc(sizeof(struct upnp_last_change_builder_t))', assigned value is 0 gmrender-resurrect-0.3/src/variable-container.c:176:2: note: Null pointer dereference gmrender-resurrect-0.3/src/variable-container.c:257:2: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] gmrender-resurrect-0.3/src/variable-container.c:256:9: note: Assuming allocation function fails gmrender-resurrect-0.3/src/variable-container.c:255:41: note: Assignment 'result=(struct upnp_last_change_collector_t*)malloc(sizeof(struct upnp_last_change_collector_t))', assigned value is 0 gmrender-resurrect-0.3/src/variable-container.c:257:2: note: Null pointer dereference gmrender-resurrect-0.3/src/variable-container.c:258:2: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] gmrender-resurrect-0.3/src/variable-container.c:256:9: note: Assuming allocation function fails gmrender-resurrect-0.3/src/variable-container.c:255:41: note: Assignment 'result=(struct upnp_last_change_collector_t*)malloc(sizeof(struct upnp_last_change_collector_t))', assigned value is 0 gmrender-resurrect-0.3/src/variable-container.c:258:2: note: Null pointer dereference gmrender-resurrect-0.3/src/variable-container.c:259:2: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] gmrender-resurrect-0.3/src/variable-container.c:256:9: note: Assuming allocation function fails gmrender-resurrect-0.3/src/variable-container.c:255:41: note: Assignment 'result=(struct upnp_last_change_collector_t*)malloc(sizeof(struct upnp_last_change_collector_t))', assigned value is 0 gmrender-resurrect-0.3/src/variable-container.c:259:2: note: Null pointer dereference gmrender-resurrect-0.3/src/variable-container.c:260:2: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] gmrender-resurrect-0.3/src/variable-container.c:256:9: note: Assuming allocation function fails gmrender-resurrect-0.3/src/variable-container.c:255:41: note: Assignment 'result=(struct upnp_last_change_collector_t*)malloc(sizeof(struct upnp_last_change_collector_t))', assigned value is 0 gmrender-resurrect-0.3/src/variable-container.c:260:2: note: Null pointer dereference gmrender-resurrect-0.3/src/variable-container.c:261:2: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] gmrender-resurrect-0.3/src/variable-container.c:256:9: note: Assuming allocation function fails gmrender-resurrect-0.3/src/variable-container.c:255:41: note: Assignment 'result=(struct upnp_last_change_collector_t*)malloc(sizeof(struct upnp_last_change_collector_t))', assigned value is 0 gmrender-resurrect-0.3/src/variable-container.c:261:2: note: Null pointer dereference gmrender-resurrect-0.3/src/variable-container.c:262:2: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] gmrender-resurrect-0.3/src/variable-container.c:256:9: note: Assuming allocation function fails gmrender-resurrect-0.3/src/variable-container.c:255:41: note: Assignment 'result=(struct upnp_last_change_collector_t*)malloc(sizeof(struct upnp_last_change_collector_t))', assigned value is 0 gmrender-resurrect-0.3/src/variable-container.c:262:2: note: Null pointer dereference gmrender-resurrect-0.3/src/variable-container.c:263:2: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] gmrender-resurrect-0.3/src/variable-container.c:256:9: note: Assuming allocation function fails gmrender-resurrect-0.3/src/variable-container.c:255:41: note: Assignment 'result=(struct upnp_last_change_collector_t*)malloc(sizeof(struct upnp_last_change_collector_t))', assigned value is 0 gmrender-resurrect-0.3/src/variable-container.c:263:2: note: Null pointer dereference gmrender-resurrect-0.3/src/variable-container.c:73:29: style:inconclusive: Function 'VariableContainer_new' argument 2 names different: declaration 'var_array' definition 'unordered_vars'. [funcArgNamesDifferent] gmrender-resurrect-0.3/src/variable-container.h:57:33: note: Function 'VariableContainer_new' argument 2 names different: declaration 'var_array' definition 'unordered_vars'. gmrender-resurrect-0.3/src/variable-container.c:73:29: note: Function 'VariableContainer_new' argument 2 names different: declaration 'var_array' definition 'unordered_vars'. gmrender-resurrect-0.3/src/variable-container.c:136:13: style:inconclusive: Function 'VariableContainer_change' argument 2 names different: declaration 'variable_num' definition 'var_num'. [funcArgNamesDifferent] gmrender-resurrect-0.3/src/variable-container.h:81:13: note: Function 'VariableContainer_change' argument 2 names different: declaration 'variable_num' definition 'var_num'. gmrender-resurrect-0.3/src/variable-container.c:136:13: note: Function 'VariableContainer_change' argument 2 names different: declaration 'variable_num' definition 'var_num'. gmrender-resurrect-0.3/src/variable-container.c:252:20: style:inconclusive: Function 'UPnPLastChangeCollector_new' argument 2 names different: declaration 'event_xml_namespac' definition 'event_xml_namespace'. [funcArgNamesDifferent] gmrender-resurrect-0.3/src/variable-container.h:122:20: note: Function 'UPnPLastChangeCollector_new' argument 2 names different: declaration 'event_xml_namespac' definition 'event_xml_namespace'. gmrender-resurrect-0.3/src/variable-container.c:252:20: note: Function 'UPnPLastChangeCollector_new' argument 2 names different: declaration 'event_xml_namespac' definition 'event_xml_namespace'. gmrender-resurrect-0.3/src/variable-container.c:114:73: style: Parameter 'object' can be declared as pointer to const [constParameterPointer] gmrender-resurrect-0.3/src/variable-container.c:120:58: style: Parameter 'object' can be declared as pointer to const [constParameterPointer] gmrender-resurrect-0.3/src/webserver.c:104:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gmrender-resurrect-0.3/src/webserver.c:174:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UPNP_READ [valueFlowBailoutIncompleteVar] gmrender-resurrect-0.3/src/webserver.c:209:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gmrender-resurrect-0.3/src/webserver.c:242:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gmrender-resurrect-0.3/src/webserver.c:273:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UPNP_E_SUCCESS [valueFlowBailoutIncompleteVar] gmrender-resurrect-0.3/src/webserver.c:123:4: error: Resource leak: in [resourceLeak] gmrender-resurrect-0.3/src/webserver.c:128:4: error: Resource leak: in [resourceLeak] gmrender-resurrect-0.3/src/webserver.c:184:4: warning: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] gmrender-resurrect-0.3/src/webserver.c:183:48: note: Assuming allocation function fails gmrender-resurrect-0.3/src/webserver.c:183:26: note: Assignment 'file=(struct WebServerFile*)malloc(sizeof(struct WebServerFile))', assigned value is 0 gmrender-resurrect-0.3/src/webserver.c:184:4: note: Null pointer dereference gmrender-resurrect-0.3/src/webserver.c:185:4: warning: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] gmrender-resurrect-0.3/src/webserver.c:183:48: note: Assuming allocation function fails gmrender-resurrect-0.3/src/webserver.c:183:26: note: Assignment 'file=(struct WebServerFile*)malloc(sizeof(struct WebServerFile))', assigned value is 0 gmrender-resurrect-0.3/src/webserver.c:185:4: note: Null pointer dereference gmrender-resurrect-0.3/src/webserver.c:186:4: warning: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] gmrender-resurrect-0.3/src/webserver.c:183:48: note: Assuming allocation function fails gmrender-resurrect-0.3/src/webserver.c:183:26: note: Assignment 'file=(struct WebServerFile*)malloc(sizeof(struct WebServerFile))', assigned value is 0 gmrender-resurrect-0.3/src/webserver.c:186:4: note: Null pointer dereference gmrender-resurrect-0.3/src/webserver.c:218:8: style: Parameter 'buf' can be declared as pointer to const. However it seems that 'webserver_write' is a callback function, if 'buf' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gmrender-resurrect-0.3/src/webserver.c:266:2: note: You might need to cast the function pointer here gmrender-resurrect-0.3/src/webserver.c:218:8: note: Parameter 'buf' can be declared as pointer to const gmrender-resurrect-0.3/src/xmldoc.c:137:44: style: Parameter 'doc' can be declared as pointer to const [constParameterPointer] gmrender-resurrect-0.3/src/xmldoc.c:160:46: style: Parameter 'doc' can be declared as pointer to const [constParameterPointer] diff: DONE