2026-05-03 06:11 ftp://ftp.de.debian.org/debian/pool/main/libr/librabbitmq/librabbitmq_0.15.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=openssl --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: 235 231 elapsed-time: 2.6 2.1 head-timing-info: old-timing-info: head results: rabbitmq-c-0.15.0/coverity/model.c:16:42: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] rabbitmq-c-0.15.0/examples/amqp_bind.c:24:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/examples/amqp_confirm_select.c:106:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AMQP_RESPONSE_LIBRARY_EXCEPTION [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/examples/amqp_confirm_select.c:148:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/examples/amqp_confirm_select.c:91:16: style: Variable 'now' is assigned a value that is never used. [unreadVariable] rabbitmq-c-0.15.0/examples/amqp_connect_timeout.c:34:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/examples/amqp_consumer.c:50:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AMQP_RESPONSE_NORMAL [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/examples/amqp_consumer.c:128:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/examples/amqp_exchange_declare.c:23:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/examples/amqp_listen.c:27:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/examples/amqp_listenq.c:24:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/examples/amqp_producer.c:82:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/examples/amqp_rpc_sendstring_client.c:27:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/examples/amqp_rpc_sendstring_client.c:16:26: style: Parameter 'argv' can be declared as const array [constParameter] rabbitmq-c-0.15.0/examples/amqp_rpc_sendstring_client.c:122:29: style: Variable 'd' can be declared as pointer to const [constVariablePointer] rabbitmq-c-0.15.0/examples/amqp_rpc_sendstring_client.c:123:32: style: Variable 'p' can be declared as pointer to const [constVariablePointer] rabbitmq-c-0.15.0/examples/amqp_sendstring.c:25:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/examples/amqp_ssl_connect.c:35:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/examples/amqp_ssl_connect.c:69:14: style: Condition 'argc>nextarg' is always true [knownConditionTrueFalse] rabbitmq-c-0.15.0/examples/amqp_ssl_connect.c:65:12: note: Assuming that condition 'argc>5' is not redundant rabbitmq-c-0.15.0/examples/amqp_ssl_connect.c:66:19: note: Assignment 'nextarg=5', assigned value is 5 rabbitmq-c-0.15.0/examples/amqp_ssl_connect.c:69:14: note: Condition 'argc>nextarg' is always true rabbitmq-c-0.15.0/examples/amqp_unbind.c:24:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/examples/utils.c:19:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/examples/utils.c:27:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/examples/utils.c:38:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/examples/utils.c:48:36: style: Variable 'm' can be declared as pointer to const [constVariablePointer] rabbitmq-c-0.15.0/examples/utils.c:56:33: style: Variable 'm' can be declared as pointer to const [constVariablePointer] rabbitmq-c-0.15.0/examples/utils.c:73:53: style: Parameter 'chs' can be declared as pointer to const [constParameterPointer] rabbitmq-c-0.15.0/examples/utils.c:103:25: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] rabbitmq-c-0.15.0/examples/utils.c:103:33: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] rabbitmq-c-0.15.0/examples/utils.c:115:18: style: Variable 'buf' can be declared as pointer to const [constVariablePointer] rabbitmq-c-0.15.0/fuzz/fuzz_server.c:39:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/fuzz/fuzz_server.c:73:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/fuzz/fuzz_server.c:94:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHUT_RDWR [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/fuzz/fuzz_server.c:142:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AMQP_STATUS_OK [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/fuzz/fuzz_server.c:37:3: warning: If memory allocation fails, then there is a possible null pointer dereference: fuzzer [nullPointerOutOfMemory] rabbitmq-c-0.15.0/fuzz/fuzz_server.c:106:36: note: Assuming allocation function fails rabbitmq-c-0.15.0/fuzz/fuzz_server.c:106:20: note: Assignment 'fuzzer=(struct Fuzzer*)malloc(sizeof(struct Fuzzer))', assigned value is 0 rabbitmq-c-0.15.0/fuzz/fuzz_server.c:113:12: note: Calling function 'fuzzinit', 1st argument 'fuzzer' value is 0 rabbitmq-c-0.15.0/fuzz/fuzz_server.c:37:3: note: Null pointer dereference rabbitmq-c-0.15.0/fuzz/fuzz_server.c:38:7: warning: If memory allocation fails, then there is a possible null pointer dereference: fuzzer [nullPointerOutOfMemory] rabbitmq-c-0.15.0/fuzz/fuzz_server.c:106:36: note: Assuming allocation function fails rabbitmq-c-0.15.0/fuzz/fuzz_server.c:106:20: note: Assignment 'fuzzer=(struct Fuzzer*)malloc(sizeof(struct Fuzzer))', assigned value is 0 rabbitmq-c-0.15.0/fuzz/fuzz_server.c:113:12: note: Calling function 'fuzzinit', 1st argument 'fuzzer' value is 0 rabbitmq-c-0.15.0/fuzz/fuzz_server.c:38:7: note: Null pointer dereference rabbitmq-c-0.15.0/fuzz/fuzz_server.c:44:32: warning: If memory allocation fails, then there is a possible null pointer dereference: fuzzer [nullPointerOutOfMemory] rabbitmq-c-0.15.0/fuzz/fuzz_server.c:106:36: note: Assuming allocation function fails rabbitmq-c-0.15.0/fuzz/fuzz_server.c:106:20: note: Assignment 'fuzzer=(struct Fuzzer*)malloc(sizeof(struct Fuzzer))', assigned value is 0 rabbitmq-c-0.15.0/fuzz/fuzz_server.c:113:12: note: Calling function 'fuzzinit', 1st argument 'fuzzer' value is 0 rabbitmq-c-0.15.0/fuzz/fuzz_server.c:38:22: note: Assuming condition is false rabbitmq-c-0.15.0/fuzz/fuzz_server.c:44:32: note: Null pointer dereference rabbitmq-c-0.15.0/fuzz/fuzz_server.c:46:20: warning: If memory allocation fails, then there is a possible null pointer dereference: fuzzer [nullPointerOutOfMemory] rabbitmq-c-0.15.0/fuzz/fuzz_server.c:106:36: note: Assuming allocation function fails rabbitmq-c-0.15.0/fuzz/fuzz_server.c:106:20: note: Assignment 'fuzzer=(struct Fuzzer*)malloc(sizeof(struct Fuzzer))', assigned value is 0 rabbitmq-c-0.15.0/fuzz/fuzz_server.c:113:12: note: Calling function 'fuzzinit', 1st argument 'fuzzer' value is 0 rabbitmq-c-0.15.0/fuzz/fuzz_server.c:38:22: note: Assuming condition is false rabbitmq-c-0.15.0/fuzz/fuzz_server.c:46:20: note: Null pointer dereference rabbitmq-c-0.15.0/fuzz/fuzz_server.c:94:12: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: fuzzer [nullPointerOutOfMemory] rabbitmq-c-0.15.0/fuzz/fuzz_server.c:106:36: note: Assuming allocation function fails rabbitmq-c-0.15.0/fuzz/fuzz_server.c:106:20: note: Assignment 'fuzzer=(struct Fuzzer*)malloc(sizeof(struct Fuzzer))', assigned value is 0 rabbitmq-c-0.15.0/fuzz/fuzz_server.c:121:9: note: Calling function 'clean', 1st argument 'fuzzer' value is 0 rabbitmq-c-0.15.0/fuzz/fuzz_server.c:94:12: note: Null pointer dereference rabbitmq-c-0.15.0/fuzz/fuzz_server.c:95:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: fuzzer [nullPointerOutOfMemory] rabbitmq-c-0.15.0/fuzz/fuzz_server.c:106:36: note: Assuming allocation function fails rabbitmq-c-0.15.0/fuzz/fuzz_server.c:106:20: note: Assignment 'fuzzer=(struct Fuzzer*)malloc(sizeof(struct Fuzzer))', assigned value is 0 rabbitmq-c-0.15.0/fuzz/fuzz_server.c:121:9: note: Calling function 'clean', 1st argument 'fuzzer' value is 0 rabbitmq-c-0.15.0/fuzz/fuzz_server.c:95:9: note: Null pointer dereference rabbitmq-c-0.15.0/fuzz/fuzz_server.c:96:8: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: fuzzer [nullPointerOutOfMemory] rabbitmq-c-0.15.0/fuzz/fuzz_server.c:106:36: note: Assuming allocation function fails rabbitmq-c-0.15.0/fuzz/fuzz_server.c:106:20: note: Assignment 'fuzzer=(struct Fuzzer*)malloc(sizeof(struct Fuzzer))', assigned value is 0 rabbitmq-c-0.15.0/fuzz/fuzz_server.c:121:9: note: Calling function 'clean', 1st argument 'fuzzer' value is 0 rabbitmq-c-0.15.0/fuzz/fuzz_server.c:96:8: note: Null pointer dereference rabbitmq-c-0.15.0/fuzz/fuzz_server.c:107:3: warning: If memory allocation fails, then there is a possible null pointer dereference: fuzzer [nullPointerOutOfMemory] rabbitmq-c-0.15.0/fuzz/fuzz_server.c:106:36: note: Assuming allocation function fails rabbitmq-c-0.15.0/fuzz/fuzz_server.c:106:20: note: Assignment 'fuzzer=(struct Fuzzer*)malloc(sizeof(struct Fuzzer))', assigned value is 0 rabbitmq-c-0.15.0/fuzz/fuzz_server.c:107:3: note: Null pointer dereference rabbitmq-c-0.15.0/fuzz/fuzz_server.c:109:3: warning: If memory allocation fails, then there is a possible null pointer dereference: fuzzer [nullPointerOutOfMemory] rabbitmq-c-0.15.0/fuzz/fuzz_server.c:106:36: note: Assuming allocation function fails rabbitmq-c-0.15.0/fuzz/fuzz_server.c:106:20: note: Assignment 'fuzzer=(struct Fuzzer*)malloc(sizeof(struct Fuzzer))', assigned value is 0 rabbitmq-c-0.15.0/fuzz/fuzz_server.c:109:3: note: Null pointer dereference rabbitmq-c-0.15.0/fuzz/fuzz_server.c:110:3: warning: If memory allocation fails, then there is a possible null pointer dereference: fuzzer [nullPointerOutOfMemory] rabbitmq-c-0.15.0/fuzz/fuzz_server.c:106:36: note: Assuming allocation function fails rabbitmq-c-0.15.0/fuzz/fuzz_server.c:106:20: note: Assignment 'fuzzer=(struct Fuzzer*)malloc(sizeof(struct Fuzzer))', assigned value is 0 rabbitmq-c-0.15.0/fuzz/fuzz_server.c:110:3: note: Null pointer dereference rabbitmq-c-0.15.0/fuzz/fuzz_server.c:110:27: warning: If memory allocation fails, then there is a possible null pointer dereference: fuzzer [nullPointerOutOfMemory] rabbitmq-c-0.15.0/fuzz/fuzz_server.c:106:36: note: Assuming allocation function fails rabbitmq-c-0.15.0/fuzz/fuzz_server.c:106:20: note: Assignment 'fuzzer=(struct Fuzzer*)malloc(sizeof(struct Fuzzer))', assigned value is 0 rabbitmq-c-0.15.0/fuzz/fuzz_server.c:110:27: note: Null pointer dereference rabbitmq-c-0.15.0/fuzz/fuzz_server.c:111:10: warning: If memory allocation fails, then there is a possible null pointer dereference: fuzzer [nullPointerOutOfMemory] rabbitmq-c-0.15.0/fuzz/fuzz_server.c:106:36: note: Assuming allocation function fails rabbitmq-c-0.15.0/fuzz/fuzz_server.c:106:20: note: Assignment 'fuzzer=(struct Fuzzer*)malloc(sizeof(struct Fuzzer))', assigned value is 0 rabbitmq-c-0.15.0/fuzz/fuzz_server.c:111:10: note: Null pointer dereference rabbitmq-c-0.15.0/fuzz/fuzz_server.c:119:16: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: fuzzer [nullPointerOutOfMemory] rabbitmq-c-0.15.0/fuzz/fuzz_server.c:106:36: note: Assuming allocation function fails rabbitmq-c-0.15.0/fuzz/fuzz_server.c:106:20: note: Assignment 'fuzzer=(struct Fuzzer*)malloc(sizeof(struct Fuzzer))', assigned value is 0 rabbitmq-c-0.15.0/fuzz/fuzz_server.c:119:16: note: Null pointer dereference rabbitmq-c-0.15.0/fuzz/fuzz_server.c:141:47: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: fuzzer [nullPointerOutOfMemory] rabbitmq-c-0.15.0/fuzz/fuzz_server.c:106:36: note: Assuming allocation function fails rabbitmq-c-0.15.0/fuzz/fuzz_server.c:106:20: note: Assignment 'fuzzer=(struct Fuzzer*)malloc(sizeof(struct Fuzzer))', assigned value is 0 rabbitmq-c-0.15.0/fuzz/fuzz_server.c:117:10: note: Calling function 'client', 1st argument 'fuzzer' value is 0 rabbitmq-c-0.15.0/fuzz/fuzz_server.c:137:7: note: Assuming condition is false rabbitmq-c-0.15.0/fuzz/fuzz_server.c:141:47: note: Null pointer dereference rabbitmq-c-0.15.0/fuzz/fuzz_server.c:67:7: style: Local variable 'client' shadows outer function [shadowFunction] rabbitmq-c-0.15.0/fuzz/fuzz_server.c:32:6: note: Shadowed declaration rabbitmq-c-0.15.0/fuzz/fuzz_server.c:67:7: note: Shadow variable rabbitmq-c-0.15.0/fuzz/fuzz_server.c:65:11: style: Variable 'fuzzer' can be declared as pointer to const [constVariablePointer] rabbitmq-c-0.15.0/fuzz/fuzz_server.c:88:7: style: Variable 'res' is assigned a value that is never used. [unreadVariable] rabbitmq-c-0.15.0/fuzz/fuzz_table.c:27:19: style: Variable 'unused_result' is assigned a value that is never used. [unreadVariable] rabbitmq-c-0.15.0/fuzz/fuzz_url.c:17:10: warning: If memory allocation fails, then there is a possible null pointer dereference: in [nullPointerOutOfMemory] rabbitmq-c-0.15.0/fuzz/fuzz_url.c:16:20: note: Assuming allocation function fails rabbitmq-c-0.15.0/fuzz/fuzz_url.c:16:20: note: Assignment 'in=malloc(size+1)', assigned value is 0 rabbitmq-c-0.15.0/fuzz/fuzz_url.c:17:10: note: Null pointer dereference rabbitmq-c-0.15.0/fuzz/fuzz_url.c:18:3: warning: If memory allocation fails, then there is a possible null pointer dereference: in [nullPointerOutOfMemory] rabbitmq-c-0.15.0/fuzz/fuzz_url.c:16:20: note: Assuming allocation function fails rabbitmq-c-0.15.0/fuzz/fuzz_url.c:16:20: note: Assignment 'in=malloc(size+1)', assigned value is 0 rabbitmq-c-0.15.0/fuzz/fuzz_url.c:18:3: note: Null pointer dereference rabbitmq-c-0.15.0/librabbitmq/amqp_socket.h:14:0: debug: Failed to parse 'typedef AMQP_BEGIN_DECLS enum { AMQP_SF_NONE = 0 , AMQP_SF_MORE = 1 , AMQP_SF_POLLIN = 2 , AMQP_SF_POLLOUT = 4 , AMQP_SF_POLLERR = 8 } amqp_socket_flag_enum ;'. The checking continues anyway. [simplifyTypedef] rabbitmq-c-0.15.0/librabbitmq/amqp_socket.h:164:0: debug: Failed to parse 'typedef AMQP_END_DECLS enum amqp_connection_state_enum_ { CONNECTION_STATE_IDLE = 0 , CONNECTION_STATE_INITIAL , CONNECTION_STATE_HEADER , CONNECTION_STATE_BODY } amqp_connection_state_enum ;'. The checking continues anyway. [simplifyTypedef] rabbitmq-c-0.15.0/librabbitmq/amqp_private.h:329:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AMQP_RESPONSE_LIBRARY_EXCEPTION [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/librabbitmq/amqp_api.c:150:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/librabbitmq/amqp_api.c:184:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AMQP_STATUS_TIMER_FAILURE [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/librabbitmq/amqp_api.c:254:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AMQP_CHANNEL_CLOSE_OK_METHOD [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/librabbitmq/amqp_api.c:274:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AMQP_CONNECTION_CLOSE_OK_METHOD [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/librabbitmq/amqp_api.c:295:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AMQP_BASIC_ACK_METHOD [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/librabbitmq/amqp_api.c:309:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AMQP_BASIC_GET_METHOD [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/librabbitmq/amqp_api.c:318:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AMQP_BASIC_REJECT_METHOD [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/librabbitmq/amqp_api.c:328:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AMQP_BASIC_NACK_METHOD [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/librabbitmq/amqp_api.c:339:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AMQP_STATUS_INVALID_PARAMETER [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/librabbitmq/amqp_api.c:358:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AMQP_STATUS_INVALID_PARAMETER [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/librabbitmq/amqp_api.c:376:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable amqp_publisher_confirm_t [valueFlowBailoutIncompleteVar] rabbitmq-c-0.15.0/librabbitmq/amqp_api.c:226:19: style: Condition 'remaining==0' is always false [knownConditionTrueFalse] rabbitmq-c-0.15.0/librabbitmq/amqp_api.c:223:22: note: Assuming that condition 'body_offset