2026-05-03 06:16 ftp://ftp.de.debian.org/debian/pool/main/libr/librdata/librdata_0~20210223+git-85757dc6.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=zlib --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -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: 94 82 elapsed-time: 0.9 0.8 head-timing-info: old-timing-info: head results: librdata-0~20210223+git-85757dc6/readEx.c:62:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RDATA_TYPE_STRING [valueFlowBailoutIncompleteVar] librdata-0~20210223+git-85757dc6/readEx.c:12:49: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'handle_table' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librdata-0~20210223+git-85757dc6/readEx.c:91:38: note: You might need to cast the function pointer here librdata-0~20210223+git-85757dc6/readEx.c:12:49: note: Parameter 'ctx' can be declared as pointer to const librdata-0~20210223+git-85757dc6/readEx.c:27:56: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'handle_column' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librdata-0~20210223+git-85757dc6/readEx.c:92:39: note: You might need to cast the function pointer here librdata-0~20210223+git-85757dc6/readEx.c:27:56: note: Parameter 'ctx' can be declared as pointer to const librdata-0~20210223+git-85757dc6/readEx.c:37:18: style: Variable 'ip' can be declared as pointer to const [constVariablePointer] librdata-0~20210223+git-85757dc6/readEx.c:42:21: style: Variable 'dp' can be declared as pointer to const [constVariablePointer] librdata-0~20210223+git-85757dc6/readEx.c:47:18: style: Variable 'ip' can be declared as pointer to const [constVariablePointer] librdata-0~20210223+git-85757dc6/readEx.c:52:21: style: Variable 'dp' can be declared as pointer to const [constVariablePointer] librdata-0~20210223+git-85757dc6/readEx.c:68:66: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'handle_column_name' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librdata-0~20210223+git-85757dc6/readEx.c:93:44: note: You might need to cast the function pointer here librdata-0~20210223+git-85757dc6/readEx.c:68:66: note: Parameter 'ctx' can be declared as pointer to const librdata-0~20210223+git-85757dc6/readEx.c:75:66: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'handle_text_value' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librdata-0~20210223+git-85757dc6/readEx.c:94:43: note: You might need to cast the function pointer here librdata-0~20210223+git-85757dc6/readEx.c:75:66: note: Parameter 'ctx' can be declared as pointer to const librdata-0~20210223+git-85757dc6/readEx.c:82:67: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'handle_value_label' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librdata-0~20210223+git-85757dc6/readEx.c:95:44: note: You might need to cast the function pointer here librdata-0~20210223+git-85757dc6/readEx.c:82:67: note: Parameter 'ctx' can be declared as pointer to const librdata-0~20210223+git-85757dc6/src/CKHashTable.c:130:33: portability:inconclusive: Casting from float * to const char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] librdata-0~20210223+git-85757dc6/src/CKHashTable.c:134:33: portability:inconclusive: Casting from float * to const char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] librdata-0~20210223+git-85757dc6/src/CKHashTable.c:139:33: portability:inconclusive: Casting from double * to const char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] librdata-0~20210223+git-85757dc6/src/CKHashTable.c:143:33: portability:inconclusive: Casting from double * to const char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] librdata-0~20210223+git-85757dc6/src/CKHashTable.c:123:19: style: Variable 'k' can be declared as const array [constVariable] librdata-0~20210223+git-85757dc6/src/CKHashTable.c:163:15: style: Variable 'this_key' can be declared as pointer to const [constVariablePointer] librdata-0~20210223+git-85757dc6/src/CKHashTable.c:228:15: style: Variable 'this_key' can be declared as pointer to const [constVariablePointer] librdata-0~20210223+git-85757dc6/src/CKHashTable.c:300:19: style: Variable 'this_key' can be declared as pointer to const [constVariablePointer] librdata-0~20210223+git-85757dc6/src/fuzz/fuzz_rdata.c:12:42: style: Parameter 'io_ctx' can be declared as pointer to const. However it seems that 'open_handler' is a callback function, if 'io_ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librdata-0~20210223+git-85757dc6/src/fuzz/fuzz_rdata.c:79:37: note: You might need to cast the function pointer here librdata-0~20210223+git-85757dc6/src/fuzz/fuzz_rdata.c:12:42: note: Parameter 'io_ctx' can be declared as pointer to const librdata-0~20210223+git-85757dc6/src/fuzz/fuzz_rdata.c:16:25: style: Parameter 'io_ctx' can be declared as pointer to const. However it seems that 'close_handler' is a callback function, if 'io_ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librdata-0~20210223+git-85757dc6/src/fuzz/fuzz_rdata.c:80:38: note: You might need to cast the function pointer here librdata-0~20210223+git-85757dc6/src/fuzz/fuzz_rdata.c:16:25: note: Parameter 'io_ctx' can be declared as pointer to const librdata-0~20210223+git-85757dc6/src/fuzz/fuzz_rdata.c:46:93: style: Parameter 'user_ctx' can be declared as pointer to const. However it seems that 'update_handler' is a callback function, if 'user_ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librdata-0~20210223+git-85757dc6/src/fuzz/fuzz_rdata.c:83:39: note: You might need to cast the function pointer here librdata-0~20210223+git-85757dc6/src/fuzz/fuzz_rdata.c:46:93: note: Parameter 'user_ctx' can be declared as pointer to const librdata-0~20210223+git-85757dc6/src/fuzz/fuzz_rdata.c:46:109: style: Parameter 'io_ctx' can be declared as pointer to const. However it seems that 'update_handler' is a callback function, if 'io_ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librdata-0~20210223+git-85757dc6/src/fuzz/fuzz_rdata.c:83:39: note: You might need to cast the function pointer here librdata-0~20210223+git-85757dc6/src/fuzz/fuzz_rdata.c:46:109: note: Parameter 'io_ctx' can be declared as pointer to const librdata-0~20210223+git-85757dc6/src/fuzz/fuzz_rdata.c:50:43: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'table_handler' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librdata-0~20210223+git-85757dc6/src/fuzz/fuzz_rdata.c:73:38: note: You might need to cast the function pointer here librdata-0~20210223+git-85757dc6/src/fuzz/fuzz_rdata.c:50:43: note: Parameter 'ctx' can be declared as pointer to const librdata-0~20210223+git-85757dc6/src/fuzz/fuzz_rdata.c:54:63: style: Parameter 'data' can be declared as pointer to const. However it seems that 'column_handler' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librdata-0~20210223+git-85757dc6/src/fuzz/fuzz_rdata.c:74:39: note: You might need to cast the function pointer here librdata-0~20210223+git-85757dc6/src/fuzz/fuzz_rdata.c:54:63: note: Parameter 'data' can be declared as pointer to const librdata-0~20210223+git-85757dc6/src/fuzz/fuzz_rdata.c:54:87: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'column_handler' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librdata-0~20210223+git-85757dc6/src/fuzz/fuzz_rdata.c:74:39: note: You might need to cast the function pointer here librdata-0~20210223+git-85757dc6/src/fuzz/fuzz_rdata.c:54:87: note: Parameter 'ctx' can be declared as pointer to const librdata-0~20210223+git-85757dc6/src/fuzz/fuzz_rdata.c:58:61: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'column_name_handler' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librdata-0~20210223+git-85757dc6/src/fuzz/fuzz_rdata.c:75:44: note: You might need to cast the function pointer here librdata-0~20210223+git-85757dc6/src/fuzz/fuzz_rdata.c:58:61: note: Parameter 'ctx' can be declared as pointer to const librdata-0~20210223+git-85757dc6/src/fuzz/fuzz_rdata.c:62:60: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'text_value_handler' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librdata-0~20210223+git-85757dc6/src/fuzz/fuzz_rdata.c:77:44: note: You might need to cast the function pointer here librdata-0~20210223+git-85757dc6/src/fuzz/fuzz_rdata.c:62:60: note: Parameter 'ctx' can be declared as pointer to const librdata-0~20210223+git-85757dc6/src/rdata_io_unistd.c:23:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] librdata-0~20210223+git-85757dc6/src/rdata_io_unistd.c:88:5: warning: If memory allocation fails, then there is a possible null pointer dereference: io_ctx [nullPointerOutOfMemory] librdata-0~20210223+git-85757dc6/src/rdata_io_unistd.c:87:43: note: Assuming allocation function fails librdata-0~20210223+git-85757dc6/src/rdata_io_unistd.c:87:43: note: Assignment 'io_ctx=calloc(1,sizeof(struct rdata_unistd_io_ctx_t))', assigned value is 0 librdata-0~20210223+git-85757dc6/src/rdata_io_unistd.c:88:5: note: Null pointer dereference librdata-0~20210223+git-85757dc6/src/rdata_io_unistd.c:56:53: style:inconclusive: Function 'rdata_unistd_read_handler' argument 2 names different: declaration 'nbytes' definition 'nbyte'. [funcArgNamesDifferent] librdata-0~20210223+git-85757dc6/src/rdata_io_unistd.h:9:53: note: Function 'rdata_unistd_read_handler' argument 2 names different: declaration 'nbytes' definition 'nbyte'. librdata-0~20210223+git-85757dc6/src/rdata_io_unistd.c:56:53: note: Function 'rdata_unistd_read_handler' argument 2 names different: declaration 'nbytes' definition 'nbyte'. librdata-0~20210223+git-85757dc6/src/rdata_io_unistd.c:63:56: style:inconclusive: Function 'rdata_unistd_update_handler' argument 3 names different: declaration '' definition 'user_ctx'. [funcArgNamesDifferentUnnamed] librdata-0~20210223+git-85757dc6/src/rdata_io_unistd.c:64:15: style:inconclusive: Function 'rdata_unistd_update_handler' argument 4 names different: declaration '' definition 'io_ctx'. [funcArgNamesDifferentUnnamed] librdata-0~20210223+git-85757dc6/src/rdata_parser.c:8:5: warning: If memory allocation fails, then there is a possible null pointer dereference: parser [nullPointerOutOfMemory] librdata-0~20210223+git-85757dc6/src/rdata_parser.c:7:36: note: Assuming allocation function fails librdata-0~20210223+git-85757dc6/src/rdata_parser.c:7:36: note: Assignment 'parser=calloc(1,sizeof(struct rdata_parser_t))', assigned value is 0 librdata-0~20210223+git-85757dc6/src/rdata_parser.c:8:5: note: Null pointer dereference librdata-0~20210223+git-85757dc6/src/rdata_read.c:569:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] librdata-0~20210223+git-85757dc6/src/rdata_read.c:718:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] librdata-0~20210223+git-85757dc6/src/rdata_read.c:1823:17: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] librdata-0~20210223+git-85757dc6/src/rdata_read.c:595:5: warning: If memory allocation fails, then there is a possible null pointer dereference: atom_table [nullPointerOutOfMemory] librdata-0~20210223+git-85757dc6/src/rdata_read.c:593:44: note: Assuming allocation function fails librdata-0~20210223+git-85757dc6/src/rdata_read.c:593:44: note: Assignment 'atom_table=malloc(sizeof(struct rdata_atom_table_t))', assigned value is 0 librdata-0~20210223+git-85757dc6/src/rdata_read.c:595:5: note: Null pointer dereference librdata-0~20210223+git-85757dc6/src/rdata_read.c:596:5: warning: If memory allocation fails, then there is a possible null pointer dereference: atom_table [nullPointerOutOfMemory] librdata-0~20210223+git-85757dc6/src/rdata_read.c:593:44: note: Assuming allocation function fails librdata-0~20210223+git-85757dc6/src/rdata_read.c:593:44: note: Assignment 'atom_table=malloc(sizeof(struct rdata_atom_table_t))', assigned value is 0 librdata-0~20210223+git-85757dc6/src/rdata_read.c:596:5: note: Null pointer dereference librdata-0~20210223+git-85757dc6/src/rdata_read.c:598:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] librdata-0~20210223+git-85757dc6/src/rdata_read.c:592:30: note: Assuming allocation function fails librdata-0~20210223+git-85757dc6/src/rdata_read.c:592:30: note: Assignment 'ctx=calloc(1,sizeof(struct rdata_ctx_t))', assigned value is 0 librdata-0~20210223+git-85757dc6/src/rdata_read.c:598:5: note: Null pointer dereference librdata-0~20210223+git-85757dc6/src/rdata_read.c:600:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] librdata-0~20210223+git-85757dc6/src/rdata_read.c:592:30: note: Assuming allocation function fails librdata-0~20210223+git-85757dc6/src/rdata_read.c:592:30: note: Assignment 'ctx=calloc(1,sizeof(struct rdata_ctx_t))', assigned value is 0 librdata-0~20210223+git-85757dc6/src/rdata_read.c:600:5: note: Null pointer dereference librdata-0~20210223+git-85757dc6/src/rdata_read.c:605:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] librdata-0~20210223+git-85757dc6/src/rdata_read.c:592:30: note: Assuming allocation function fails librdata-0~20210223+git-85757dc6/src/rdata_read.c:592:30: note: Assignment 'ctx=calloc(1,sizeof(struct rdata_ctx_t))', assigned value is 0 librdata-0~20210223+git-85757dc6/src/rdata_read.c:605:5: note: Null pointer dereference librdata-0~20210223+git-85757dc6/src/rdata_read.c:1052:12: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] librdata-0~20210223+git-85757dc6/src/rdata_read.c:1054:7: note: Found duplicate branches for 'if' and 'else'. librdata-0~20210223+git-85757dc6/src/rdata_read.c:1052:12: note: Found duplicate branches for 'if' and 'else'. librdata-0~20210223+git-85757dc6/src/rdata_read.c:1009:16: style: Checking if unsigned expression 'length' is less than zero. [unsignedLessThanZero] librdata-0~20210223+git-85757dc6/src/rdata_read.c:859:66: style:inconclusive: Function 'read_sexptype_header' argument 1 names different: declaration 'header' definition 'header_info'. [funcArgNamesDifferent] librdata-0~20210223+git-85757dc6/src/rdata_read.c:95:66: note: Function 'read_sexptype_header' argument 1 names different: declaration 'header' definition 'header_info'. librdata-0~20210223+git-85757dc6/src/rdata_read.c:859:66: note: Function 'read_sexptype_header' argument 1 names different: declaration 'header' definition 'header_info'. librdata-0~20210223+git-85757dc6/src/rdata_read.c:1062:41: style:inconclusive: Function 'read_attributes' argument 2 names different: declaration '' definition 'ctx'. [funcArgNamesDifferentUnnamed] librdata-0~20210223+git-85757dc6/src/rdata_read.c:1388:60: style:inconclusive: Function 'read_string_vector_n' argument 4 names different: declaration '' definition 'callback_ctx'. [funcArgNamesDifferentUnnamed] librdata-0~20210223+git-85757dc6/src/rdata_read.c:1388:87: style:inconclusive: Function 'read_string_vector_n' argument 5 names different: declaration '' definition 'ctx'. [funcArgNamesDifferentUnnamed] librdata-0~20210223+git-85757dc6/src/rdata_read.c:1473:15: style:inconclusive: Function 'read_string_vector' argument 3 names different: declaration '' definition 'callback_ctx'. [funcArgNamesDifferentUnnamed] librdata-0~20210223+git-85757dc6/src/rdata_read.c:1473:42: style:inconclusive: Function 'read_string_vector' argument 4 names different: declaration '' definition 'ctx'. [funcArgNamesDifferentUnnamed] librdata-0~20210223+git-85757dc6/src/rdata_read.c:1484:52: style:inconclusive: Function 'read_value_vector_cb' argument 4 names different: declaration '' definition 'user_ctx'. [funcArgNamesDifferentUnnamed] librdata-0~20210223+git-85757dc6/src/rdata_read.c:1484:75: style:inconclusive: Function 'read_value_vector_cb' argument 5 names different: declaration '' definition 'ctx'. [funcArgNamesDifferentUnnamed] librdata-0~20210223+git-85757dc6/src/rdata_read.c:125:60: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] librdata-0~20210223+git-85757dc6/src/rdata_read.c:828:11: style: Variable 'key' can be declared as pointer to const [constVariablePointer] librdata-0~20210223+git-85757dc6/src/rdata_read.c:1045:46: style: Parameter 'key' can be declared as pointer to const. However it seems that 'handle_data_frame_attribute' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librdata-0~20210223+git-85757dc6/src/rdata_read.c:1355:40: note: You might need to cast the function pointer here librdata-0~20210223+git-85757dc6/src/rdata_read.c:1045:46: note: Parameter 'key' can be declared as pointer to const librdata-0~20210223+git-85757dc6/src/rdata_read.c:1188:84: style: Parameter 'vals' can be declared as pointer to const. However it seems that 'deferred_string_handler' is a callback function, if 'vals' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librdata-0~20210223+git-85757dc6/src/rdata_read.c:1220:69: note: You might need to cast the function pointer here librdata-0~20210223+git-85757dc6/src/rdata_read.c:1188:84: note: Parameter 'vals' can be declared as pointer to const librdata-0~20210223+git-85757dc6/src/rdata_write.c:22:5: warning: If memory allocation fails, then there is a possible null pointer dereference: writer [nullPointerOutOfMemory] librdata-0~20210223+git-85757dc6/src/rdata_write.c:21:36: note: Assuming allocation function fails librdata-0~20210223+git-85757dc6/src/rdata_write.c:21:36: note: Assignment 'writer=calloc(1,sizeof(struct rdata_writer_t))', assigned value is 0 librdata-0~20210223+git-85757dc6/src/rdata_write.c:22:5: note: Null pointer dereference librdata-0~20210223+git-85757dc6/src/rdata_write.c:23:5: warning: If memory allocation fails, then there is a possible null pointer dereference: writer [nullPointerOutOfMemory] librdata-0~20210223+git-85757dc6/src/rdata_write.c:21:36: note: Assuming allocation function fails librdata-0~20210223+git-85757dc6/src/rdata_write.c:21:36: note: Assignment 'writer=calloc(1,sizeof(struct rdata_writer_t))', assigned value is 0 librdata-0~20210223+git-85757dc6/src/rdata_write.c:23:5: note: Null pointer dereference librdata-0~20210223+git-85757dc6/src/rdata_write.c:24:5: warning: If memory allocation fails, then there is a possible null pointer dereference: writer [nullPointerOutOfMemory] librdata-0~20210223+git-85757dc6/src/rdata_write.c:21:36: note: Assuming allocation function fails librdata-0~20210223+git-85757dc6/src/rdata_write.c:21:36: note: Assignment 'writer=calloc(1,sizeof(struct rdata_writer_t))', assigned value is 0 librdata-0~20210223+git-85757dc6/src/rdata_write.c:24:5: note: Null pointer dereference librdata-0~20210223+git-85757dc6/src/rdata_write.c:25:5: warning: If memory allocation fails, then there is a possible null pointer dereference: writer [nullPointerOutOfMemory] librdata-0~20210223+git-85757dc6/src/rdata_write.c:21:36: note: Assuming allocation function fails librdata-0~20210223+git-85757dc6/src/rdata_write.c:21:36: note: Assignment 'writer=calloc(1,sizeof(struct rdata_writer_t))', assigned value is 0 librdata-0~20210223+git-85757dc6/src/rdata_write.c:25:5: note: Null pointer dereference librdata-0~20210223+git-85757dc6/src/rdata_write.c:27:5: warning: If memory allocation fails, then there is a possible null pointer dereference: writer [nullPointerOutOfMemory] librdata-0~20210223+git-85757dc6/src/rdata_write.c:21:36: note: Assuming allocation function fails librdata-0~20210223+git-85757dc6/src/rdata_write.c:21:36: note: Assignment 'writer=calloc(1,sizeof(struct rdata_writer_t))', assigned value is 0 librdata-0~20210223+git-85757dc6/src/rdata_write.c:27:5: note: Null pointer dereference librdata-0~20210223+git-85757dc6/src/rdata_write.c:28:5: warning: If memory allocation fails, then there is a possible null pointer dereference: writer [nullPointerOutOfMemory] librdata-0~20210223+git-85757dc6/src/rdata_write.c:21:36: note: Assuming allocation function fails librdata-0~20210223+git-85757dc6/src/rdata_write.c:21:36: note: Assignment 'writer=calloc(1,sizeof(struct rdata_writer_t))', assigned value is 0 librdata-0~20210223+git-85757dc6/src/rdata_write.c:28:5: note: Null pointer dereference librdata-0~20210223+git-85757dc6/src/rdata_write.c:28:30: warning: If memory allocation fails, then there is a possible null pointer dereference: writer [nullPointerOutOfMemory] librdata-0~20210223+git-85757dc6/src/rdata_write.c:21:36: note: Assuming allocation function fails librdata-0~20210223+git-85757dc6/src/rdata_write.c:21:36: note: Assignment 'writer=calloc(1,sizeof(struct rdata_writer_t))', assigned value is 0 librdata-0~20210223+git-85757dc6/src/rdata_write.c:28:30: note: Null pointer dereference librdata-0~20210223+git-85757dc6/src/rdata_write.c:56:5: warning: If memory allocation fails, then there is a possible null pointer dereference: new_column [nullPointerOutOfMemory] librdata-0~20210223+git-85757dc6/src/rdata_write.c:54:40: note: Assuming allocation function fails librdata-0~20210223+git-85757dc6/src/rdata_write.c:54:40: note: Assignment 'new_column=calloc(1,sizeof(struct rdata_column_t))', assigned value is 0 librdata-0~20210223+git-85757dc6/src/rdata_write.c:56:5: note: Null pointer dereference librdata-0~20210223+git-85757dc6/src/rdata_write.c:58:21: warning: If memory allocation fails, then there is a possible null pointer dereference: new_column [nullPointerOutOfMemory] librdata-0~20210223+git-85757dc6/src/rdata_write.c:54:40: note: Assuming allocation function fails librdata-0~20210223+git-85757dc6/src/rdata_write.c:54:40: note: Assignment 'new_column=calloc(1,sizeof(struct rdata_column_t))', assigned value is 0 librdata-0~20210223+git-85757dc6/src/rdata_write.c:58:21: note: Null pointer dereference librdata-0~20210223+git-85757dc6/src/rdata_write.c:60:5: warning: If memory allocation fails, then there is a possible null pointer dereference: new_column [nullPointerOutOfMemory] librdata-0~20210223+git-85757dc6/src/rdata_write.c:54:40: note: Assuming allocation function fails librdata-0~20210223+git-85757dc6/src/rdata_write.c:54:40: note: Assignment 'new_column=calloc(1,sizeof(struct rdata_column_t))', assigned value is 0 librdata-0~20210223+git-85757dc6/src/rdata_write.c:60:5: note: Null pointer dereference librdata-0~20210223+git-85757dc6/src/rdata_write.c:83:12: warning: If memory allocation fails, then there is a possible null pointer dereference: factor_copy [nullPointerOutOfMemory] librdata-0~20210223+git-85757dc6/src/rdata_write.c:82:31: note: Assuming allocation function fails librdata-0~20210223+git-85757dc6/src/rdata_write.c:82:31: note: Assignment 'factor_copy=malloc(strlen(factor)+1)', assigned value is 0 librdata-0~20210223+git-85757dc6/src/rdata_write.c:83:12: note: Null pointer dereference librdata-0~20210223+git-85757dc6/src/rdata_write.c:20:89: style:inconclusive: Function 'rdata_writer_init' argument 2 names different: declaration '' definition 'format'. [funcArgNamesDifferentUnnamed] librdata-0~20210223+git-85757dc6/src/rdata_write.c:235:62: style:inconclusive: Function 'rdata_begin_file' argument 2 names different: declaration 'ctx' definition 'user_ctx'. [funcArgNamesDifferent] librdata-0~20210223+git-85757dc6/src/rdata.h:164:62: note: Function 'rdata_begin_file' argument 2 names different: declaration 'ctx' definition 'user_ctx'. librdata-0~20210223+git-85757dc6/src/rdata_write.c:235:62: note: Function 'rdata_begin_file' argument 2 names different: declaration 'ctx' definition 'user_ctx'. librdata-0~20210223+git-85757dc6/src/rdata_write.c:287:86: style: Parameter 'column' can be declared as pointer to const [constParameterPointer] librdata-0~20210223+git-85757dc6/src/rdata_write.c:323:60: style: Parameter 'writer' can be declared as pointer to const [constParameterPointer] librdata-0~20210223+git-85757dc6/src/rdata_write.c:323:84: style: Parameter 'column' can be declared as pointer to const [constParameterPointer] librdata-0~20210223+git-85757dc6/src/rdata_write.c:369:63: style: Parameter 'writer' can be declared as pointer to const [constParameterPointer] librdata-0~20210223+git-85757dc6/src/rdata_write.c:369:87: style: Parameter 'column' can be declared as pointer to const [constParameterPointer] librdata-0~20210223+git-85757dc6/src/rdata_write.c:377:63: style: Parameter 'writer' can be declared as pointer to const [constParameterPointer] librdata-0~20210223+git-85757dc6/src/rdata_write.c:377:87: style: Parameter 'column' can be declared as pointer to const [constParameterPointer] librdata-0~20210223+git-85757dc6/src/rdata_write.c:385:62: style: Parameter 'writer' can be declared as pointer to const [constParameterPointer] librdata-0~20210223+git-85757dc6/src/rdata_write.c:385:86: style: Parameter 'column' can be declared as pointer to const [constParameterPointer] librdata-0~20210223+git-85757dc6/src/test/test_buffer.c:7:5: warning: If memory allocation fails, then there is a possible null pointer dereference: buffer [nullPointerOutOfMemory] librdata-0~20210223+git-85757dc6/src/test/test_buffer.c:6:33: note: Assuming allocation function fails librdata-0~20210223+git-85757dc6/src/test/test_buffer.c:6:33: note: Assignment 'buffer=calloc(1,sizeof(struct rt_buffer_t))', assigned value is 0 librdata-0~20210223+git-85757dc6/src/test/test_buffer.c:7:5: note: Null pointer dereference librdata-0~20210223+git-85757dc6/src/test/test_buffer.c:8:5: warning: If memory allocation fails, then there is a possible null pointer dereference: buffer [nullPointerOutOfMemory] librdata-0~20210223+git-85757dc6/src/test/test_buffer.c:6:33: note: Assuming allocation function fails librdata-0~20210223+git-85757dc6/src/test/test_buffer.c:6:33: note: Assignment 'buffer=calloc(1,sizeof(struct rt_buffer_t))', assigned value is 0 librdata-0~20210223+git-85757dc6/src/test/test_buffer.c:8:5: note: Null pointer dereference librdata-0~20210223+git-85757dc6/src/test/test_buffer.c:8:28: warning: If memory allocation fails, then there is a possible null pointer dereference: buffer [nullPointerOutOfMemory] librdata-0~20210223+git-85757dc6/src/test/test_buffer.c:6:33: note: Assuming allocation function fails librdata-0~20210223+git-85757dc6/src/test/test_buffer.c:6:33: note: Assignment 'buffer=calloc(1,sizeof(struct rt_buffer_t))', assigned value is 0 librdata-0~20210223+git-85757dc6/src/test/test_buffer.c:8:28: note: Null pointer dereference librdata-0~20210223+git-85757dc6/src/test/test_buffer.c:31:5: warning: If memory allocation fails, then there is a possible null pointer dereference: buffer_ctx [nullPointerOutOfMemory] librdata-0~20210223+git-85757dc6/src/test/test_buffer.c:30:41: note: Assuming allocation function fails librdata-0~20210223+git-85757dc6/src/test/test_buffer.c:30:41: note: Assignment 'buffer_ctx=calloc(1,sizeof(struct rt_buffer_ctx_t))', assigned value is 0 librdata-0~20210223+git-85757dc6/src/test/test_buffer.c:31:5: note: Null pointer dereference librdata-0~20210223+git-85757dc6/src/test/test_buffer_io.c:55:15: style:inconclusive: Function 'rt_update_handler' argument 3 names different: declaration '' definition 'user_ctx'. [funcArgNamesDifferentUnnamed] librdata-0~20210223+git-85757dc6/src/test/test_buffer_io.c:55:31: style:inconclusive: Function 'rt_update_handler' argument 4 names different: declaration '' definition 'io_ctx'. [funcArgNamesDifferentUnnamed] librdata-0~20210223+git-85757dc6/src/test/test_buffer_io.c:9:45: style: Parameter 'io_ctx' can be declared as pointer to const [constParameterPointer] librdata-0~20210223+git-85757dc6/src/test/test_buffer_io.c:13:28: style: Parameter 'io_ctx' can be declared as pointer to const [constParameterPointer] librdata-0~20210223+git-85757dc6/src/test/test_rdata.c:155:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] librdata-0~20210223+git-85757dc6/src/test/test_rdata.c:26:59: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] librdata-0~20210223+git-85757dc6/src/test/test_rdata.c:42:23: style: Variable 'test_ctx' can be declared as pointer to const [constVariablePointer] librdata-0~20210223+git-85757dc6/src/test/test_rdata.c:46:66: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'handle_column_name' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librdata-0~20210223+git-85757dc6/src/test/test_rdata.c:191:44: note: You might need to cast the function pointer here librdata-0~20210223+git-85757dc6/src/test/test_rdata.c:46:66: note: Parameter 'ctx' can be declared as pointer to const librdata-0~20210223+git-85757dc6/src/test/test_rdata.c:80:13: style: Variable 'dp' can be declared as pointer to const [constVariablePointer] librdata-0~20210223+git-85757dc6/src/test/test_rdata.c:125:66: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'handle_text_value' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librdata-0~20210223+git-85757dc6/src/test/test_rdata.c:192:43: note: You might need to cast the function pointer here librdata-0~20210223+git-85757dc6/src/test/test_rdata.c:125:66: note: Parameter 'ctx' can be declared as pointer to const librdata-0~20210223+git-85757dc6/writeEx.c:17:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] librdata-0~20210223+git-85757dc6/writeEx.c:46:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] librdata-0~20210223+git-85757dc6/src/rdata_parser.c:67:5: warning: Null pointer dereference: parser [ctunullpointer] librdata-0~20210223+git-85757dc6/src/rdata_parser.c:7:36: note: Assuming allocation function fails librdata-0~20210223+git-85757dc6/src/rdata_parser.c:7:36: note: Assignment 'parser=calloc(1,sizeof(struct rdata_parser_t))', assigned value is 0 librdata-0~20210223+git-85757dc6/src/rdata_parser.c:9:25: note: Calling function rdata_unistd_io_init, 1st argument is null librdata-0~20210223+git-85757dc6/src/rdata_io_unistd.c:81:5: note: Calling function rdata_set_open_handler, 1st argument is null librdata-0~20210223+git-85757dc6/src/rdata_parser.c:67:5: note: Dereferencing argument parser that is null diff: head librdata-0~20210223+git-85757dc6/src/rdata_io_unistd.c:63:56: style:inconclusive: Function 'rdata_unistd_update_handler' argument 3 names different: declaration '' definition 'user_ctx'. [funcArgNamesDifferentUnnamed] head librdata-0~20210223+git-85757dc6/src/rdata_io_unistd.c:64:15: style:inconclusive: Function 'rdata_unistd_update_handler' argument 4 names different: declaration '' definition 'io_ctx'. [funcArgNamesDifferentUnnamed] head librdata-0~20210223+git-85757dc6/src/rdata_read.c:1062:41: style:inconclusive: Function 'read_attributes' argument 2 names different: declaration '' definition 'ctx'. [funcArgNamesDifferentUnnamed] head librdata-0~20210223+git-85757dc6/src/rdata_read.c:1388:60: style:inconclusive: Function 'read_string_vector_n' argument 4 names different: declaration '' definition 'callback_ctx'. [funcArgNamesDifferentUnnamed] head librdata-0~20210223+git-85757dc6/src/rdata_read.c:1388:87: style:inconclusive: Function 'read_string_vector_n' argument 5 names different: declaration '' definition 'ctx'. [funcArgNamesDifferentUnnamed] head librdata-0~20210223+git-85757dc6/src/rdata_read.c:1473:15: style:inconclusive: Function 'read_string_vector' argument 3 names different: declaration '' definition 'callback_ctx'. [funcArgNamesDifferentUnnamed] head librdata-0~20210223+git-85757dc6/src/rdata_read.c:1473:42: style:inconclusive: Function 'read_string_vector' argument 4 names different: declaration '' definition 'ctx'. [funcArgNamesDifferentUnnamed] head librdata-0~20210223+git-85757dc6/src/rdata_read.c:1484:52: style:inconclusive: Function 'read_value_vector_cb' argument 4 names different: declaration '' definition 'user_ctx'. [funcArgNamesDifferentUnnamed] head librdata-0~20210223+git-85757dc6/src/rdata_read.c:1484:75: style:inconclusive: Function 'read_value_vector_cb' argument 5 names different: declaration '' definition 'ctx'. [funcArgNamesDifferentUnnamed] head librdata-0~20210223+git-85757dc6/src/rdata_write.c:20:89: style:inconclusive: Function 'rdata_writer_init' argument 2 names different: declaration '' definition 'format'. [funcArgNamesDifferentUnnamed] head librdata-0~20210223+git-85757dc6/src/test/test_buffer_io.c:55:15: style:inconclusive: Function 'rt_update_handler' argument 3 names different: declaration '' definition 'user_ctx'. [funcArgNamesDifferentUnnamed] head librdata-0~20210223+git-85757dc6/src/test/test_buffer_io.c:55:31: style:inconclusive: Function 'rt_update_handler' argument 4 names different: declaration '' definition 'io_ctx'. [funcArgNamesDifferentUnnamed] 2.20.0 librdata-0~20210223+git-85757dc6/src/test/test_rdata.c:141:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tm_year [valueFlowBailoutIncompleteVar] head librdata-0~20210223+git-85757dc6/src/test/test_rdata.c:155:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] DONE