2025-07-01 02:42 ftp://ftp.de.debian.org/debian/pool/main/t/tcd-utils/tcd-utils_20061127.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 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: dfa16af (2025-06-30 19:43:56 +0200) count: 31 31 elapsed-time: 1.6 1.6 head-timing-info: old-timing-info: head results: tcd-utils/restore_tide_db.c:55:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NVFalse [valueFlowBailoutIncompleteVar] tcd-utils/xml.c:65:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NVFalse [valueFlowBailoutIncompleteVar] tcd-utils/xml.c:136:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NVFalse [valueFlowBailoutIncompleteVar] tcd-utils/restore_tide_db.c:105:16: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] tcd-utils/restore_tide_db.c:248:24: style: Local variable 'i' shadows outer variable [shadowVariable] tcd-utils/restore_tide_db.c:54:32: note: Shadowed declaration tcd-utils/restore_tide_db.c:248:24: note: Shadow variable tcd-utils/restore_tide_db.c:329:19: style: Local variable 'i' shadows outer variable [shadowVariable] tcd-utils/restore_tide_db.c:54:32: note: Shadowed declaration tcd-utils/restore_tide_db.c:329:19: note: Shadow variable tcd-utils/restore_tide_db.c:340:21: style: Local variable 'i' shadows outer variable [shadowVariable] tcd-utils/restore_tide_db.c:54:32: note: Shadowed declaration tcd-utils/restore_tide_db.c:340:21: note: Shadow variable tcd-utils/restore_tide_db.c:361:24: style: Local variable 'i' shadows outer variable [shadowVariable] tcd-utils/restore_tide_db.c:54:32: note: Shadowed declaration tcd-utils/restore_tide_db.c:361:24: note: Shadow variable tcd-utils/restore_tide_db.c:49:37: style: Parameter 'argv' can be declared as const array [constParameter] tcd-utils/restore_tide_db.c:103:18: style: Variable 'temptm' can be declared as pointer to const [constVariablePointer] tcd-utils/xml.c:56:43: style: Parameter 'search' can be declared as pointer to const [constParameterPointer] tcd-utils/xml.c:58:35: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] tcd-utils/build_tide_db.c:230:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tcd-utils/build_tide_db.c:451:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIDE_RECORD [valueFlowBailoutIncompleteVar] tcd-utils/build_tide_db.c:543:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MONOLOGUE_LENGTH [valueFlowBailoutIncompleteVar] tcd-utils/build_tide_db.c:602:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NVFalse [valueFlowBailoutIncompleteVar] tcd-utils/build_tide_db.c:865:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NV_FLOAT32 [valueFlowBailoutIncompleteVar] tcd-utils/build_tide_db.c:910:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tcd-utils/build_tide_db.c:387:6: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] tcd-utils/build_tide_db.c:393:6: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] tcd-utils/build_tide_db.c:407:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] tcd-utils/build_tide_db.c:458:2: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] tcd-utils/build_tide_db.c:643:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] tcd-utils/build_tide_db.c:865:2: warning: If memory allocation fails, then there is a possible null pointer dereference: equilibrium [nullPointerOutOfMemory] tcd-utils/build_tide_db.c:860:42: note: Assuming allocation function fails tcd-utils/build_tide_db.c:860:19: note: Assignment 'equilibrium=(NV_FLOAT32**)malloc(constituents*sizeof(NV_FLOAT32*))', assigned value is 0 tcd-utils/build_tide_db.c:865:2: note: Null pointer dereference tcd-utils/build_tide_db.c:866:2: warning: If memory allocation fails, then there is a possible null pointer dereference: node_factor [nullPointerOutOfMemory] tcd-utils/build_tide_db.c:861:42: note: Assuming allocation function fails tcd-utils/build_tide_db.c:861:19: note: Assignment 'node_factor=(NV_FLOAT32**)malloc(constituents*sizeof(NV_FLOAT32*))', assigned value is 0 tcd-utils/build_tide_db.c:866:2: note: Null pointer dereference tcd-utils/build_tide_db.c:869:6: warning: If memory allocation fails, then there is a possible null pointer dereference: equilibrium [nullPointerOutOfMemory] tcd-utils/build_tide_db.c:860:42: note: Assuming allocation function fails tcd-utils/build_tide_db.c:860:19: note: Assignment 'equilibrium=(NV_FLOAT32**)malloc(constituents*sizeof(NV_FLOAT32*))', assigned value is 0 tcd-utils/build_tide_db.c:869:6: note: Null pointer dereference tcd-utils/build_tide_db.c:870:6: warning: If memory allocation fails, then there is a possible null pointer dereference: node_factor [nullPointerOutOfMemory] tcd-utils/build_tide_db.c:861:42: note: Assuming allocation function fails tcd-utils/build_tide_db.c:861:19: note: Assignment 'node_factor=(NV_FLOAT32**)malloc(constituents*sizeof(NV_FLOAT32*))', assigned value is 0 tcd-utils/build_tide_db.c:870:6: note: Null pointer dereference tcd-utils/build_tide_db.c:321:24: style: Local variable 'i' shadows outer variable [shadowVariable] tcd-utils/build_tide_db.c:205:32: note: Shadowed declaration tcd-utils/build_tide_db.c:321:24: note: Shadow variable tcd-utils/build_tide_db.c:614:13: warning: Uninitialized variable: constituents [uninitvar] tcd-utils/build_tide_db.c:603:12: note: Assuming condition is false tcd-utils/build_tide_db.c:614:13: note: Uninitialized variable: constituents tcd-utils/build_tide_db.c:243:21: style: Variable 'got_units' is assigned a value that is never used. [unreadVariable] tcd-utils/build_tide_db.c:919:9: style: Variable 'xml' is assigned a value that is never used. [unreadVariable] diff: DONE