2025-11-21 08:40 ftp://ftp.de.debian.org/debian/pool/main/f/fosfat/fosfat_1.0.1.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 -j4 platform: Linux-6.12.57+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 5374cd3 (2025-11-20 15:35:39 +0100) count: 36 36 elapsed-time: 1.1 1.2 head-timing-info: old-timing-info: head results: Fosfat-1.0.1/fosmount/fosmount.c:565:11: error: There is an unknown macro here somewhere. Configuration is required. If LIBFOSFAT_VERSION_STR is a macro then please configure it. [unknownMacro] Fosfat-1.0.1/libw32disk/w32disk.c:85:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] Fosfat-1.0.1/libw32disk/w32disk.c:125:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] Fosfat-1.0.1/libw32disk/w32disk.c:168:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] Fosfat-1.0.1/libw32disk/w32disk.c:193:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] Fosfat-1.0.1/libw32disk/w32disk.c:207:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] Fosfat-1.0.1/libw32disk/w32disk.c:217:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] Fosfat-1.0.1/tools/ascii.c:78:61: style:inconclusive: Function 'fos_sma2iso8859' argument 3 names different: declaration 'ret' definition 'newline'. [funcArgNamesDifferent] Fosfat-1.0.1/tools/ascii.h:34:67: note: Function 'fos_sma2iso8859' argument 3 names different: declaration 'ret' definition 'newline'. Fosfat-1.0.1/tools/ascii.c:78:61: note: Function 'fos_sma2iso8859' argument 3 names different: declaration 'ret' definition 'newline'. Fosfat-1.0.1/tools/ascii.c:80:18: style: Variable 'i' is assigned a value that is never used. [unreadVariable] Fosfat-1.0.1/libw32disk/w32disk.c:156:27: style:inconclusive: Function 'w32disk_new' argument 1 names different: declaration 'drive_index' definition 'drive_idx'. [funcArgNamesDifferent] Fosfat-1.0.1/libw32disk/w32disk.h:33:38: note: Function 'w32disk_new' argument 1 names different: declaration 'drive_index' definition 'drive_idx'. Fosfat-1.0.1/libw32disk/w32disk.c:156:27: note: Function 'w32disk_new' argument 1 names different: declaration 'drive_index' definition 'drive_idx'. Fosfat-1.0.1/libw32disk/w32disk.c:212:40: style:inconclusive: Function 'w32disk_readsectors' argument 3 names different: declaration 'sector_index' definition 'sector_idx'. [funcArgNamesDifferent] Fosfat-1.0.1/libw32disk/w32disk.h:38:44: note: Function 'w32disk_readsectors' argument 3 names different: declaration 'sector_index' definition 'sector_idx'. Fosfat-1.0.1/libw32disk/w32disk.c:212:40: note: Function 'w32disk_readsectors' argument 3 names different: declaration 'sector_index' definition 'sector_idx'. Fosfat-1.0.1/libw32disk/w32disk.c:212:59: style:inconclusive: Function 'w32disk_readsectors' argument 4 names different: declaration 'csectors' definition 'c_sectors'. [funcArgNamesDifferent] Fosfat-1.0.1/libw32disk/w32disk.h:38:65: note: Function 'w32disk_readsectors' argument 4 names different: declaration 'csectors' definition 'c_sectors'. Fosfat-1.0.1/libw32disk/w32disk.c:212:59: note: Function 'w32disk_readsectors' argument 4 names different: declaration 'csectors' definition 'c_sectors'. Fosfat-1.0.1/libw32disk/w32disk.c:202:27: style: Parameter 'disk' can be declared as pointer to const [constParameterPointer] Fosfat-1.0.1/tools/fosdd.c:50:11: error: There is an unknown macro here somewhere. Configuration is required. If LIBFOSFAT_VERSION_STR is a macro then please configure it. [unknownMacro] Fosfat-1.0.1/tools/fosrec.c:94:11: error: There is an unknown macro here somewhere. Configuration is required. If LIBFOSFAT_VERSION_STR is a macro then please configure it. [unknownMacro] Fosfat-1.0.1/tools/fosread.c:235:11: error: There is an unknown macro here somewhere. Configuration is required. If LIBFOSFAT_VERSION_STR is a macro then please configure it. [unknownMacro] Fosfat-1.0.1/tools/smascii.c:61:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Fosfat-1.0.1/libfosgra/fosgra.c:215:30: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] Fosfat-1.0.1/libfosgra/fosgra.c:66:12: style: struct member 'fosgra_image_h_s::res' is never used. [unusedStructMember] Fosfat-1.0.1/libfosgra/fosgra.c:93:14: style: struct member 'Anonymous0::idx' is never used. [unusedStructMember] Fosfat-1.0.1/libfosfat/fosfat.c:420:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Fosfat-1.0.1/libfosfat/fosfat.c:1104:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Fosfat-1.0.1/libfosfat/fosfat.c:1255:14: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] Fosfat-1.0.1/libfosfat/fosfat.c:1258:19: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] Fosfat-1.0.1/libfosfat/fosfat.c:1098:50: style: Condition 'file_d=file_d->next_data' is always true [knownConditionTrueFalse] Fosfat-1.0.1/libfosfat/fosfat.c:1107:40: style: Condition 'file=file->next_bd' is always true [knownConditionTrueFalse] Fosfat-1.0.1/libfosfat/fosfat.c:1187:23: style: Condition 'dir_desc=dir_desc->next_bd' is always true [knownConditionTrueFalse] Fosfat-1.0.1/libfosfat/fosfat.c:493:10: warning: Either the condition 'free_bd' is redundant or there is possible null pointer dereference: bd. [nullPointerRedundantCheck] Fosfat-1.0.1/libfosfat/fosfat.c:506:9: note: Assuming that condition 'free_bd' is not redundant Fosfat-1.0.1/libfosfat/fosfat.c:504:15: note: Assignment to 'free_bd=bd' Fosfat-1.0.1/libfosfat/fosfat.c:493:10: note: Null pointer dereference Fosfat-1.0.1/libfosfat/fosfat.c:505:10: warning: Either the condition 'free_bd' is redundant or there is possible null pointer dereference: bd. [nullPointerRedundantCheck] Fosfat-1.0.1/libfosfat/fosfat.c:506:9: note: Assuming that condition 'free_bd' is not redundant Fosfat-1.0.1/libfosfat/fosfat.c:504:13: note: free_bd is assigned 'bd' here. Fosfat-1.0.1/libfosfat/fosfat.c:505:10: note: Null pointer dereference Fosfat-1.0.1/libfosfat/fosfat.c:270:15: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] Fosfat-1.0.1/libfosfat/fosfat.c:625:35: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] Fosfat-1.0.1/libfosfat/fosfat.c:637:35: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] Fosfat-1.0.1/libfosfat/fosfat.c:1240:9: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] Fosfat-1.0.1/libfosfat/fosfat.c:1242:16: style: Variable 'list' can be declared as pointer to const [constVariablePointer] Fosfat-1.0.1/libfosfat/fosfat.c:1417:38: style: Parameter 'fosfat' can be declared as pointer to const [constParameterPointer] Fosfat-1.0.1/libfosfat/fosfat.c:1949:63: warning: Found calculation inside sizeof(). [sizeofCalculation] diff: head Fosfat-1.0.1/libfosfat/fosfat.c:1242:16: style: Variable 'list' can be declared as pointer to const [constVariablePointer] 2.18.0 Fosfat-1.0.1/libfosgra/fosgra.c:220:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable p [valueFlowBailoutIncompleteVar] DONE