2026-05-05 04:30 ftp://ftp.de.debian.org/debian/pool/main/s/stubble/stubble_9.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: 519958a (2026-05-04 15:03:10 +0200) count: 79 79 elapsed-time: 2.0 1.7 head-timing-info: old-timing-info: head results: stubble-9/chid.c:233:9: error: There is an unknown macro here somewhere. Configuration is required. If FOREACH_ELEMENT is a macro then please configure it. [unknownMacro] stubble-9/devicetree.c:10:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFI_PAGE_SIZE [valueFlowBailoutIncompleteVar] stubble-9/devicetree.c:25:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFI_PAGE_SIZE [valueFlowBailoutIncompleteVar] stubble-9/devicetree.c:35:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFI_DT_FIXUP_PROTOCOL [valueFlowBailoutIncompleteVar] stubble-9/devicetree.c:66:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FdtHeader [valueFlowBailoutIncompleteVar] stubble-9/devicetree.c:135:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFI_DTB_TABLE [valueFlowBailoutIncompleteVar] stubble-9/devicetree.c:157:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFI_DTB_TABLE [valueFlowBailoutIncompleteVar] stubble-9/devicetree.c:169:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FdtHeader [valueFlowBailoutIncompleteVar] stubble-9/devicetree.c:200:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFI_DTB_TABLE [valueFlowBailoutIncompleteVar] stubble-9/devicetree.c:222:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFI_DTB_TABLE [valueFlowBailoutIncompleteVar] stubble-9/devicetree.c:46:23: style: Variable 'oldptr' can be declared as pointer to const [constVariablePointer] stubble-9/edid.c:16:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] stubble-9/edid.c:42:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] stubble-9/edid.c:57:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFI_EDID_DISCOVERED_PROTOCOL [valueFlowBailoutIncompleteVar] stubble-9/efi-log.c:19:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CursorColumn [valueFlowBailoutIncompleteVar] stubble-9/efi-log.c:41:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Attribute [valueFlowBailoutIncompleteVar] stubble-9/efi-string.c:186:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] stubble-9/efi-string.c:214:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] stubble-9/efi-string.c:576:82: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFI_ERROR_MASK [valueFlowBailoutIncompleteVar] stubble-9/efi-string.c:771:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _fallthrough_ [valueFlowBailoutIncompleteVar] stubble-9/efi-string.c:1050:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BS [valueFlowBailoutIncompleteVar] stubble-9/efi-string.c:1073:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BS [valueFlowBailoutIncompleteVar] stubble-9/efi-string.c:131:1: warning: If memory allocation fails, then there is a possible null pointer dereference: dup [nullPointerOutOfMemory] stubble-9/efi-string.c:131:1: note: Assuming allocation function fails stubble-9/efi-string.c:131:1: note: Assignment 'dup=xmalloc(size+sizeof(char))', assigned value is 0 stubble-9/efi-string.c:131:1: note: Null pointer dereference stubble-9/efi-string.c:132:1: warning: If memory allocation fails, then there is a possible null pointer dereference: dup [nullPointerOutOfMemory] stubble-9/efi-string.c:132:1: note: Assuming allocation function fails stubble-9/efi-string.c:132:1: note: Assignment 'dup=xmalloc(size+sizeof(char16_t))', assigned value is 0 stubble-9/efi-string.c:132:1: note: Null pointer dereference stubble-9/initrd.c:50:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFI_INVALID_PARAMETER [valueFlowBailoutIncompleteVar] stubble-9/initrd.c:82:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFI_SUCCESS [valueFlowBailoutIncompleteVar] stubble-9/initrd.c:116:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFI_SUCCESS [valueFlowBailoutIncompleteVar] stubble-9/initrd.c:42:34: style: Parameter 'file_path' can be declared as pointer to const. However it seems that 'initrd_load_file' is a callback function, if 'file_path' is declared with const you might also need to cast function pointer(s). [constParameterCallback] stubble-9/initrd.c:94:39: note: You might need to cast the function pointer here stubble-9/initrd.c:42:34: note: Parameter 'file_path' can be declared as pointer to const stubble-9/initrd.c:47:31: style: Variable 'loader' can be declared as pointer to const [constVariablePointer] stubble-9/linux.c:41:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFI_SUCCESS [valueFlowBailoutIncompleteVar] stubble-9/measure.c:21:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _cleanup_free_ [valueFlowBailoutIncompleteVar] stubble-9/measure.c:58:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _cleanup_free_ [valueFlowBailoutIncompleteVar] stubble-9/measure.c:95:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _cleanup_free_ [valueFlowBailoutIncompleteVar] stubble-9/measure.c:137:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFI_CC_MEASUREMENT_PROTOCOL [valueFlowBailoutIncompleteVar] stubble-9/measure.c:158:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFI_TCG2_PROTOCOL [valueFlowBailoutIncompleteVar] stubble-9/measure.c:194:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFI_SUCCESS [valueFlowBailoutIncompleteVar] stubble-9/measure.c:204:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFI_SUCCESS [valueFlowBailoutIncompleteVar] stubble-9/measure.c:224:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFI_SUCCESS [valueFlowBailoutIncompleteVar] stubble-9/measure.c:255:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFI_SUCCESS [valueFlowBailoutIncompleteVar] stubble-9/measure.c:295:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFI_SUCCESS [valueFlowBailoutIncompleteVar] stubble-9/measure.c:307:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _cleanup_free_ [valueFlowBailoutIncompleteVar] stubble-9/measure.c:326:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFI_SUCCESS [valueFlowBailoutIncompleteVar] stubble-9/measure.c:168:50: style: Variable 'caps_1_0' can be declared as pointer to const [constVariablePointer] stubble-9/pe.c:31:4: error: #error Unknown EFI arch [preprocessorErrorDirective] stubble-9/sha1.c:250:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DISABLE_WARNING_STRINGOP_OVERREAD [valueFlowBailoutIncompleteVar] stubble-9/sha1.c:279:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sha1_ctx [valueFlowBailoutIncompleteVar] stubble-9/sha1.c:121:25: style: union member 'CHAR64LONG16::c' is never used. [unusedStructMember] stubble-9/sha1.c:225:11: style: Variable 'a' is assigned a value that is never used. [unreadVariable] stubble-9/sha1.c:225:15: style: Variable 'b' is assigned a value that is never used. [unreadVariable] stubble-9/sha1.c:225:19: style: Variable 'c' is assigned a value that is never used. [unreadVariable] stubble-9/sha1.c:225:23: style: Variable 'd' is assigned a value that is never used. [unreadVariable] stubble-9/sha1.c:225:27: style: Variable 'e' is assigned a value that is never used. [unreadVariable] stubble-9/sha1.c:278:11: style: Variable 'i' is assigned a value that is never used. [unreadVariable] stubble-9/smbios.c:88:82: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SMBIOS3_TABLE [valueFlowBailoutIncompleteVar] stubble-9/smbios.c:194:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable limit [valueFlowBailoutIncompleteVar] stubble-9/smbios.c:218:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable limit [valueFlowBailoutIncompleteVar] stubble-9/smbios.c:14:17: style: struct member 'SmbiosEntryPoint::entry_point_structure_checksum' is never used. [unusedStructMember] stubble-9/smbios.c:16:17: style: struct member 'SmbiosEntryPoint::major_version' is never used. [unusedStructMember] stubble-9/smbios.c:17:17: style: struct member 'SmbiosEntryPoint::minor_version' is never used. [unusedStructMember] stubble-9/smbios.c:18:18: style: struct member 'SmbiosEntryPoint::max_structure_size' is never used. [unusedStructMember] stubble-9/smbios.c:19:17: style: struct member 'SmbiosEntryPoint::entry_point_revision' is never used. [unusedStructMember] stubble-9/smbios.c:20:17: style: struct member 'SmbiosEntryPoint::formatted_area' is never used. [unusedStructMember] stubble-9/smbios.c:21:17: style: struct member 'SmbiosEntryPoint::intermediate_anchor_string' is never used. [unusedStructMember] stubble-9/smbios.c:22:17: style: struct member 'SmbiosEntryPoint::intermediate_checksum' is never used. [unusedStructMember] stubble-9/smbios.c:25:18: style: struct member 'SmbiosEntryPoint::number_of_smbios_structures' is never used. [unusedStructMember] stubble-9/smbios.c:26:17: style: struct member 'SmbiosEntryPoint::smbios_bcd_revision' is never used. [unusedStructMember] stubble-9/smbios.c:31:17: style: struct member 'Smbios3EntryPoint::entry_point_structure_checksum' is never used. [unusedStructMember] stubble-9/smbios.c:33:17: style: struct member 'Smbios3EntryPoint::major_version' is never used. [unusedStructMember] stubble-9/smbios.c:34:17: style: struct member 'Smbios3EntryPoint::minor_version' is never used. [unusedStructMember] stubble-9/smbios.c:35:17: style: struct member 'Smbios3EntryPoint::docrev' is never used. [unusedStructMember] stubble-9/smbios.c:36:17: style: struct member 'Smbios3EntryPoint::entry_point_revision' is never used. [unusedStructMember] stubble-9/smbios.c:37:17: style: struct member 'Smbios3EntryPoint::reserved' is never used. [unusedStructMember] stubble-9/stub.c:31:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable log_isdebug [valueFlowBailoutIncompleteVar] stubble-9/stub.c:60:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFI_SHELL_PARAMETERS_PROTOCOL [valueFlowBailoutIncompleteVar] stubble-9/stub.c:107:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _UNIFIED_SECTION_MAX [valueFlowBailoutIncompleteVar] stubble-9/stub.c:137:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFI_SUCCESS [valueFlowBailoutIncompleteVar] stubble-9/stub.c:155:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable devicetree_cleanup [valueFlowBailoutIncompleteVar] stubble-9/util.c:70:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NumberOfTableEntries [valueFlowBailoutIncompleteVar] stubble-9/util.c:79:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EfiLoaderData [valueFlowBailoutIncompleteVar] diff: DONE