2026-05-24 01:29 ftp://ftp.de.debian.org/debian/pool/main/r/r-cran-pbdzmq/r-cran-pbdzmq_0.3.14+dfsg.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.12.88+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.4.0 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.20.0 head-info: bc04c0d (2026-05-22 08:18:49 +0200) count: 36 36 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: pbdZMQ/src/R_zmq_context.c:8:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] pbdZMQ/src/R_zmq_context.c:26:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] pbdZMQ/src/R_zmq_message.c:9:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] pbdZMQ/src/R_zmq_message.c:31:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] pbdZMQ/src/R_zmq_message.c:75:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] pbdZMQ/src/R_zmq_message.c:79:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] pbdZMQ/src/R_zmq_message.c:45:12: style: Variable 'C_ret' is assigned a value that is never used. [unreadVariable] pbdZMQ/src/R_zmq_message.c:81:12: style: Variable 'C_ret' is assigned a value that is never used. [unreadVariable] pbdZMQ/src/R_zmq_poll.c:17:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable zmq_pollitem_t [valueFlowBailoutIncompleteVar] pbdZMQ/src/R_zmq_poll.c:45:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] pbdZMQ/src/R_zmq_poll.c:54:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable revents [valueFlowBailoutIncompleteVar] pbdZMQ/src/R_zmq_sendrecv.c:57:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VECSXP [valueFlowBailoutIncompleteVar] pbdZMQ/src/R_zmq_sendrecv.c:85:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VECSXP [valueFlowBailoutIncompleteVar] pbdZMQ/src/R_zmq_socket.c:8:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] pbdZMQ/src/R_zmq_socket.c:34:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] pbdZMQ/src/R_zmq_socket.c:7:40: style:inconclusive: Function 'R_zmq_socket' argument 2 names different: declaration 'type' definition 'R_type'. [funcArgNamesDifferent] pbdZMQ/src/R_zmq.h:18:40: note: Function 'R_zmq_socket' argument 2 names different: declaration 'type' definition 'R_type'. pbdZMQ/src/R_zmq_socket.c:7:40: note: Function 'R_zmq_socket' argument 2 names different: declaration 'type' definition 'R_type'. pbdZMQ/src/R_zmq_transfer.c:89:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZMQ_REP [valueFlowBailoutIncompleteVar] pbdZMQ/src/R_zmq_transfer.c:148:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INTSXP [valueFlowBailoutIncompleteVar] pbdZMQ/src/R_zmq_transfer.c:170:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZMQ_REQ [valueFlowBailoutIncompleteVar] pbdZMQ/src/R_zmq_transfer.c:235:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INTSXP [valueFlowBailoutIncompleteVar] pbdZMQ/src/R_zmq_transfer.c:143:3: error: Memory pointed to by 'buf' is freed twice. [doubleFree] pbdZMQ/src/R_zmq_transfer.c:131:5: note: Memory pointed to by 'buf' is freed twice. pbdZMQ/src/R_zmq_transfer.c:143:3: note: Memory pointed to by 'buf' is freed twice. pbdZMQ/src/R_zmq_transfer.c:230:3: error: Memory pointed to by 'buf' is freed twice. [doubleFree] pbdZMQ/src/R_zmq_transfer.c:218:5: note: Memory pointed to by 'buf' is freed twice. pbdZMQ/src/R_zmq_transfer.c:230:3: note: Memory pointed to by 'buf' is freed twice. pbdZMQ/src/R_zmq_transfer.c:92:18: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] pbdZMQ/src/R_zmq_transfer.c:123:21: note: Assuming allocation function fails pbdZMQ/src/R_zmq_transfer.c:123:21: note: Assignment 'buf=malloc(204800)', assigned value is 0 pbdZMQ/src/R_zmq_transfer.c:141:27: note: Calling function 'send_file', 3rd argument 'buf' value is 0 pbdZMQ/src/R_zmq_transfer.c:92:18: note: Null pointer dereference pbdZMQ/src/R_zmq_transfer.c:144:10: warning: If resource allocation fails, then there is a possible null pointer dereference: infile [nullPointerOutOfResources] pbdZMQ/src/R_zmq_transfer.c:128:23: note: Assuming allocation function fails pbdZMQ/src/R_zmq_transfer.c:128:23: note: Assignment 'infile=fopen(filename,mode)', assigned value is 0 pbdZMQ/src/R_zmq_transfer.c:144:10: note: Null pointer dereference pbdZMQ/src/R_zmq_transfer.c:182:19: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] pbdZMQ/src/R_zmq_transfer.c:210:21: note: Assuming allocation function fails pbdZMQ/src/R_zmq_transfer.c:210:21: note: Assignment 'buf=malloc(204800)', assigned value is 0 pbdZMQ/src/R_zmq_transfer.c:228:27: note: Calling function 'recv_file', 3rd argument 'buf' value is 0 pbdZMQ/src/R_zmq_transfer.c:182:19: note: Null pointer dereference pbdZMQ/src/R_zmq_transfer.c:231:10: warning: If resource allocation fails, then there is a possible null pointer dereference: outfile [nullPointerOutOfResources] pbdZMQ/src/R_zmq_transfer.c:215:24: note: Assuming allocation function fails pbdZMQ/src/R_zmq_transfer.c:215:24: note: Assignment 'outfile=fopen(filename,mode)', assigned value is 0 pbdZMQ/src/R_zmq_transfer.c:231:10: note: Null pointer dereference pbdZMQ/src/R_zmq_transfer.c:115:8: style:inconclusive: Function 'R_zmq_send_file' argument 4 names different: declaration 'filesize_' definition 'filesize'. [funcArgNamesDifferent] pbdZMQ/src/R_zmq.h:45:7: note: Function 'R_zmq_send_file' argument 4 names different: declaration 'filesize_' definition 'filesize'. pbdZMQ/src/R_zmq_transfer.c:115:8: note: Function 'R_zmq_send_file' argument 4 names different: declaration 'filesize_' definition 'filesize'. pbdZMQ/src/R_zmq_transfer.c:202:8: style:inconclusive: Function 'R_zmq_recv_file' argument 4 names different: declaration 'filesize' definition 'filesize_'. [funcArgNamesDifferent] pbdZMQ/src/R_zmq.h:47:7: note: Function 'R_zmq_recv_file' argument 4 names different: declaration 'filesize' definition 'filesize_'. pbdZMQ/src/R_zmq_transfer.c:202:8: note: Function 'R_zmq_recv_file' argument 4 names different: declaration 'filesize' definition 'filesize_'. pbdZMQ/src/R_zmq_transfer.c:127:9: style: Variable 'mode' can be declared as pointer to const [constVariablePointer] pbdZMQ/src/R_zmq_transfer.c:214:9: style: Variable 'mode' can be declared as pointer to const [constVariablePointer] pbdZMQ/src/R_zmq_utility.c:7:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INTSXP [valueFlowBailoutIncompleteVar] pbdZMQ/src/R_zmq_utility.c:18:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRSXP [valueFlowBailoutIncompleteVar] pbdZMQ/src/R_zmq_utility.c:40:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRSXP [valueFlowBailoutIncompleteVar] pbdZMQ/src/R_zmq_utility.c:4:16: style:inconclusive: Function 'AsInt' argument 1 names different: declaration 'x' definition 'C_x'. [funcArgNamesDifferent] pbdZMQ/src/R_zmq.h:50:16: note: Function 'AsInt' argument 1 names different: declaration 'x' definition 'C_x'. pbdZMQ/src/R_zmq_utility.c:4:16: note: Function 'AsInt' argument 1 names different: declaration 'x' definition 'C_x'. pbdZMQ/src/shellexec_wcc.c:149:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] pbdZMQ/src/zzz.c:56:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] diff: DONE