2026-05-01 14:48 ftp://ftp.de.debian.org/debian/pool/main/d/dbf2mysql/dbf2mysql_1.14a.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 60 52 elapsed-time: 1.0 0.9 head-timing-info: old-timing-info: head results: dbf2mysql-1.14a/dbf.c:103:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dbf2mysql-1.14a/dbf.c:458:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] dbf2mysql-1.14a/dbf.c:878:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dbf2mysql-1.14a/dbf.c:374:13: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] dbf2mysql-1.14a/dbf.c:649:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dbf2mysql-1.14a/dbf.c:649:6: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dbf2mysql-1.14a/dbf.c:649:6: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dbf2mysql-1.14a/dbf.c:649:6: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dbf2mysql-1.14a/dbf.c:649:6: warning: %d in format string (no. 5) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dbf2mysql-1.14a/dbf.c:649:6: warning: %d in format string (no. 6) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dbf2mysql-1.14a/dbf.c:191:13: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] dbf2mysql-1.14a/dbf.c:190:13: note: Assuming allocation function fails dbf2mysql-1.14a/dbf.c:190:13: note: Assignment 'sp=strdup(file)', assigned value is 0 dbf2mysql-1.14a/dbf.c:191:13: note: Null pointer dereference dbf2mysql-1.14a/dbf.c:487:25: style:inconclusive: Function 'dbf_close' argument 1 names different: declaration 'dbh' definition 'dbhp'. [funcArgNamesDifferent] dbf2mysql-1.14a/dbf.h:166:32: note: Function 'dbf_close' argument 1 names different: declaration 'dbh' definition 'dbhp'. dbf2mysql-1.14a/dbf.c:487:25: note: Function 'dbf_close' argument 1 names different: declaration 'dbh' definition 'dbhp'. dbf2mysql-1.14a/dbf.c:737:42: style:inconclusive: Function 'dbf_free_record' argument 2 names different: declaration 'fields' definition 'rec'. [funcArgNamesDifferent] dbf2mysql-1.14a/dbf.h:169:49: note: Function 'dbf_free_record' argument 2 names different: declaration 'fields' definition 'rec'. dbf2mysql-1.14a/dbf.c:737:42: note: Function 'dbf_free_record' argument 2 names different: declaration 'fields' definition 'rec'. dbf2mysql-1.14a/dbf.c:52:24: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] dbf2mysql-1.14a/dbf.c:356:28: style: Parameter 'dbh' can be declared as pointer to const [constParameterPointer] dbf2mysql-1.14a/dbf.c:359:13: style: Variable 'dbf_time' can be declared as pointer to const [constVariablePointer] dbf2mysql-1.14a/dbf.c:420:38: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] dbf2mysql-1.14a/dbf.c:451:28: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] dbf2mysql-1.14a/dbf.c:522:14: style: Variable 'days_per_month' can be declared as pointer to const [constVariablePointer] dbf2mysql-1.14a/dbf.c:737:30: style: Parameter 'dbh' can be declared as pointer to const [constParameterPointer] dbf2mysql-1.14a/dbf.c:31:19: style: struct member '_dbf_file_signatures::indexValid' is never used. [unusedStructMember] dbf2mysql-1.14a/dbf2mysql.c:81:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] dbf2mysql-1.14a/dbf2mysql.c:103:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dbf2mysql-1.14a/dbf2mysql.c:196:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dbf2mysql-1.14a/dbf2mysql.c:341:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dbf2mysql-1.14a/dbf2mysql.c:605:71: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] dbf2mysql-1.14a/dbf2mysql.c:655:5: warning:inconclusive: The buffer 'primary' may not be null-terminated after the call to strncpy(). [terminateStrncpy] dbf2mysql-1.14a/dbf2mysql.c:114:14: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] dbf2mysql-1.14a/dbf2mysql.c:114:51: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] dbf2mysql-1.14a/dbf2mysql.c:292:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] dbf2mysql-1.14a/dbf2mysql.c:292:49: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] dbf2mysql-1.14a/dbf2mysql.c:356:20: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] dbf2mysql-1.14a/dbf2mysql.c:357:18: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] dbf2mysql-1.14a/dbf2mysql.c:400:17: portability: Non reentrant function 'tempnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'tempnam_r'. [prohibitedtempnamCalled] dbf2mysql-1.14a/dbf2mysql.c:354:64: style: Condition 'str!=NULL' is always true [knownConditionTrueFalse] dbf2mysql-1.14a/dbf2mysql.c:305:2: portability: %d in format string (no. 2) requires 'int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] dbf2mysql-1.14a/dbf2mysql.c:305:2: portability: %d in format string (no. 3) requires 'int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] dbf2mysql-1.14a/dbf2mysql.c:708:3: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] dbf2mysql-1.14a/dbf2mysql.c:401:31: warning: Either the condition 'datafile==NULL' is redundant or there is possible null pointer dereference: datafile. [nullPointerRedundantCheck] dbf2mysql-1.14a/dbf2mysql.c:403:39: note: Assuming that condition 'datafile==NULL' is not redundant dbf2mysql-1.14a/dbf2mysql.c:401:31: note: Null pointer dereference dbf2mysql-1.14a/dbf2mysql.c:405:59: warning: Either the condition 'datafile==NULL' is redundant or there is possible null pointer dereference: datafile. [nullPointerRedundantCheck] dbf2mysql-1.14a/dbf2mysql.c:403:39: note: Assuming that condition 'datafile==NULL' is not redundant dbf2mysql-1.14a/dbf2mysql.c:405:59: note: Null pointer dereference dbf2mysql-1.14a/dbf2mysql.c:63:24: style:inconclusive: Function 'check_table' argument 1 names different: declaration '' definition 'sock'. [funcArgNamesDifferentUnnamed] dbf2mysql-1.14a/dbf2mysql.c:63:36: style:inconclusive: Function 'check_table' argument 2 names different: declaration '' definition 'table'. [funcArgNamesDifferentUnnamed] dbf2mysql-1.14a/dbf2mysql.c:182:23: style:inconclusive: Function 'do_create' argument 1 names different: declaration '' definition 'SQLsock'. [funcArgNamesDifferentUnnamed] dbf2mysql-1.14a/dbf2mysql.c:182:38: style:inconclusive: Function 'do_create' argument 2 names different: declaration '' definition 'table'. [funcArgNamesDifferentUnnamed] dbf2mysql-1.14a/dbf2mysql.c:182:53: style:inconclusive: Function 'do_create' argument 3 names different: declaration '' definition 'dbh'. [funcArgNamesDifferentUnnamed] dbf2mysql-1.14a/dbf2mysql.c:322:24: style:inconclusive: Function 'do_inserts' argument 1 names different: declaration '' definition 'SQLsock'. [funcArgNamesDifferentUnnamed] dbf2mysql-1.14a/dbf2mysql.c:322:39: style:inconclusive: Function 'do_inserts' argument 2 names different: declaration '' definition 'table'. [funcArgNamesDifferentUnnamed] dbf2mysql-1.14a/dbf2mysql.c:322:54: style:inconclusive: Function 'do_inserts' argument 3 names different: declaration '' definition 'dbh'. [funcArgNamesDifferentUnnamed] dbf2mysql-1.14a/dbf2mysql.c:63:36: style: Parameter 'table' can be declared as pointer to const [constParameterPointer] dbf2mysql-1.14a/dbf2mysql.c:91:27: style: Parameter 'flist' can be declared as pointer to const [constParameterPointer] dbf2mysql-1.14a/dbf2mysql.c:93:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] dbf2mysql-1.14a/dbf2mysql.c:182:38: style: Parameter 'table' can be declared as pointer to const [constParameterPointer] dbf2mysql-1.14a/dbf2mysql.c:186:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] dbf2mysql-1.14a/dbf2mysql.c:322:39: style: Parameter 'table' can be declared as pointer to const [constParameterPointer] dbf2mysql-1.14a/dbf2mysql.c:327:34: style: Variable 's' can be declared as pointer to const [constVariablePointer] dbf2mysql-1.14a/endian.c:41:34: style:inconclusive: Function 'put_short' argument 2 names different: declaration 'lval' definition 'sval'. [funcArgNamesDifferent] dbf2mysql-1.14a/dbf.h:181:41: note: Function 'put_short' argument 2 names different: declaration 'lval' definition 'sval'. dbf2mysql-1.14a/endian.c:41:34: note: Function 'put_short' argument 2 names different: declaration 'lval' definition 'sval'. dbf2mysql-1.14a/endian.c:8:23: style: Parameter 'cp' can be declared as pointer to const [constParameterPointer] dbf2mysql-1.14a/endian.c:31:25: style: Parameter 'cp' can be declared as pointer to const [constParameterPointer] dbf2mysql-1.14a/mysql2dbf.c:43:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] dbf2mysql-1.14a/mysql2dbf.c:62:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] diff: head dbf2mysql-1.14a/dbf2mysql.c:182:23: style:inconclusive: Function 'do_create' argument 1 names different: declaration '' definition 'SQLsock'. [funcArgNamesDifferentUnnamed] head dbf2mysql-1.14a/dbf2mysql.c:182:38: style:inconclusive: Function 'do_create' argument 2 names different: declaration '' definition 'table'. [funcArgNamesDifferentUnnamed] head dbf2mysql-1.14a/dbf2mysql.c:182:53: style:inconclusive: Function 'do_create' argument 3 names different: declaration '' definition 'dbh'. [funcArgNamesDifferentUnnamed] head dbf2mysql-1.14a/dbf2mysql.c:322:24: style:inconclusive: Function 'do_inserts' argument 1 names different: declaration '' definition 'SQLsock'. [funcArgNamesDifferentUnnamed] head dbf2mysql-1.14a/dbf2mysql.c:322:39: style:inconclusive: Function 'do_inserts' argument 2 names different: declaration '' definition 'table'. [funcArgNamesDifferentUnnamed] head dbf2mysql-1.14a/dbf2mysql.c:322:54: style:inconclusive: Function 'do_inserts' argument 3 names different: declaration '' definition 'dbh'. [funcArgNamesDifferentUnnamed] head dbf2mysql-1.14a/dbf2mysql.c:63:24: style:inconclusive: Function 'check_table' argument 1 names different: declaration '' definition 'sock'. [funcArgNamesDifferentUnnamed] head dbf2mysql-1.14a/dbf2mysql.c:63:36: style:inconclusive: Function 'check_table' argument 2 names different: declaration '' definition 'table'. [funcArgNamesDifferentUnnamed] DONE