Error: COMPILER_WARNING: [#def1] [important] edk2-b03a21a63e3b/CryptoPkg/Library/BaseCryptLib/Cipher/CryptCamellia.c:9:10: error[fatal error]: InternalCryptLib.h: No such file or directory # 7| **/ # 8| # 9|-> #include "InternalCryptLib.h" # 10| # 11| #include <openssl/camellia.h> Error: COMPILER_WARNING: [#def2] [important] edk2-b03a21a63e3b/CryptoPkg/Library/BaseCryptLib/Cipher/CryptCamelliaNull.c:9:10: error[fatal error]: InternalCryptLib.h: No such file or directory # 7| **/ # 8| # 9|-> #include "InternalCryptLib.h" # 10| # 11| /** Error: COMPILER_WARNING: [#def3] [important] edk2-b03a21a63e3b/CryptoPkg/Library/OpensslLib/OpensslStub/CamelliaNull.c:9:10: error[fatal error]: Library/BaseLib.h: No such file or directory # 7| **/ # 8| # 9|-> #include <Library/BaseLib.h> # 10| #include <Library/DebugLib.h> # 11| Error: COMPILER_WARNING: [#def4] [important] edk2-b03a21a63e3b/CryptoPkg/Library/OpensslLib/openssl/crypto/camellia/camellia.c:46:10: error[fatal error]: internal/deprecated.h: No such file or directory # 44| * internal use. # 45| */ # 46|-> #include "internal/deprecated.h" # 47| # 48| #include <openssl/camellia.h> Error: COMPILER_WARNING: [#def5] [important] edk2-b03a21a63e3b/CryptoPkg/Library/OpensslLib/openssl/crypto/camellia/cmll_cbc.c:14:10: error[fatal error]: internal/deprecated.h: No such file or directory # 12| * internal use. # 13| */ # 14|-> #include "internal/deprecated.h" # 15| # 16| #include <openssl/camellia.h> Error: COMPILER_WARNING: [#def6] [important] edk2-b03a21a63e3b/CryptoPkg/Library/OpensslLib/openssl/crypto/camellia/cmll_cfb.c:14:10: error[fatal error]: internal/deprecated.h: No such file or directory # 12| * internal use. # 13| */ # 14|-> #include "internal/deprecated.h" # 15| # 16| #include <openssl/camellia.h> Error: COMPILER_WARNING: [#def7] [important] edk2-b03a21a63e3b/CryptoPkg/Library/OpensslLib/openssl/crypto/camellia/cmll_ctr.c:14:10: error[fatal error]: internal/deprecated.h: No such file or directory # 12| * internal use. # 13| */ # 14|-> #include "internal/deprecated.h" # 15| # 16| #include <openssl/camellia.h> Error: COMPILER_WARNING: [#def8] [important] edk2-b03a21a63e3b/CryptoPkg/Library/OpensslLib/openssl/crypto/camellia/cmll_ecb.c:14:10: error[fatal error]: internal/deprecated.h: No such file or directory # 12| * internal use. # 13| */ # 14|-> #include "internal/deprecated.h" # 15| # 16| #include <openssl/camellia.h> Error: COMPILER_WARNING: [#def9] [important] edk2-b03a21a63e3b/CryptoPkg/Library/OpensslLib/openssl/crypto/camellia/cmll_misc.c:14:10: error[fatal error]: internal/deprecated.h: No such file or directory # 12| * internal use. # 13| */ # 14|-> #include "internal/deprecated.h" # 15| # 16| #include <openssl/opensslv.h> Error: COMPILER_WARNING: [#def10] [important] edk2-b03a21a63e3b/CryptoPkg/Library/OpensslLib/openssl/crypto/camellia/cmll_ofb.c:14:10: error[fatal error]: internal/deprecated.h: No such file or directory # 12| * internal use. # 13| */ # 14|-> #include "internal/deprecated.h" # 15| # 16| #include <openssl/camellia.h> Error: COMPILER_WARNING: [#def11] [important] edk2-b03a21a63e3b/CryptoPkg/Library/OpensslLib/openssl/crypto/cmac/cmac.c:14:10: error[fatal error]: internal/deprecated.h: No such file or directory # 12| * use. # 13| */ # 14|-> #include "internal/deprecated.h" # 15| # 16| #include <stdio.h> Error: COMPILER_WARNING: [#def12] [important] edk2-b03a21a63e3b/CryptoPkg/Library/OpensslLib/openssl/crypto/evp/e_camellia.c:14:10: error[fatal error]: internal/deprecated.h: No such file or directory # 12| * internal use. # 13| */ # 14|-> #include "internal/deprecated.h" # 15| # 16| #include <openssl/opensslconf.h> Error: COMPILER_WARNING: [#def13] [important] edk2-b03a21a63e3b/CryptoPkg/Library/OpensslLib/openssl/providers/implementations/ciphers/cipher_camellia.c:14:10: error[fatal error]: internal/deprecated.h: No such file or directory # 12| * internal use. # 13| */ # 14|-> #include "internal/deprecated.h" # 15| # 16| /* Dispatch functions for CAMELLIA cipher modes ecb, cbc, ofb, cfb, ctr */ Error: COMPILER_WARNING: [#def14] [important] edk2-b03a21a63e3b/CryptoPkg/Library/OpensslLib/openssl/providers/implementations/ciphers/cipher_camellia_hw.c:14:10: error[fatal error]: internal/deprecated.h: No such file or directory # 12| * internal use. # 13| */ # 14|-> #include "internal/deprecated.h" # 15| # 16| #include <openssl/camellia.h> Error: COMPILER_WARNING: [#def15] [important] edk2-b03a21a63e3b/CryptoPkg/Library/OpensslLib/openssl/providers/implementations/macs/cmac_prov.c:14:10: error[fatal error]: internal/deprecated.h: No such file or directory # 12| * use. # 13| */ # 14|-> #include "internal/deprecated.h" # 15| # 16| #include <openssl/core_dispatch.h> Error: CPPCHECK_WARNING (CWE-457): [#def16] edk2-b03a21a63e3b/MdeModulePkg/Bus/Pci/CxlDxe/CxlDxe.c:91: warning[uninitvar]: Uninitialized variable: Status # 89| } # 90| # 91|-> return Status; # 92| } # 93| Error: CPPCHECK_WARNING (CWE-457): [#def17] edk2-b03a21a63e3b/MdeModulePkg/Bus/Pci/CxlDxe/CxlDxe.c:146: warning[uninitvar]: Uninitialized variable: Status # 144| } # 145| # 146|-> return Status; # 147| } # 148| Error: GCC_ANALYZER_WARNING (CWE-476): [#def18] edk2-b03a21a63e3b/MdeModulePkg/Bus/Pci/CxlDxe/CxlDxe.c:175:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Private’ edk2-b03a21a63e3b/MdeModulePkg/Bus/Pci/CxlDxe/CxlDxe.c:898:1: enter_function: entry to ‘CxlReadDvsecRegisters’ edk2-b03a21a63e3b/MdeModulePkg/Bus/Pci/CxlDxe/CxlDxe.c:919:13: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/MdeModulePkg/Bus/Pci/CxlDxe/CxlDxe.c:921:12: branch_false: ...to here edk2-b03a21a63e3b/MdeModulePkg/Bus/Pci/CxlDxe/CxlDxe.c:921:12: call_function: calling ‘CxlFindDvsecCapability’ from ‘CxlReadDvsecRegisters’ # 173| # 174| while (Position >= EFI_PCIE_CAPABILITY_BASE_OFFSET) { # 175|-> Status = Private->PciIo->Pci.Read ( # 176| Private->PciIo, # 177| EfiPciIoWidthUint8, Error: GCC_ANALYZER_WARNING (CWE-476): [#def19] edk2-b03a21a63e3b/MdeModulePkg/Bus/Pci/CxlDxe/CxlDxe.c:816:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Private’ edk2-b03a21a63e3b/MdeModulePkg/Bus/Pci/CxlDxe/CxlDxe.c:798:6: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/MdeModulePkg/Bus/Pci/CxlDxe/CxlDxe.c:809:6: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/MdeModulePkg/Bus/Pci/CxlDxe/CxlDxe.c:814:13: branch_false: ...to here edk2-b03a21a63e3b/MdeModulePkg/Bus/Pci/CxlDxe/CxlDxe.c:814:13: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/MdeModulePkg/Bus/Pci/CxlDxe/CxlDxe.c:816:7: branch_false: ...to here edk2-b03a21a63e3b/MdeModulePkg/Bus/Pci/CxlDxe/CxlDxe.c:816:7: danger: dereference of NULL ‘Private’ # 814| Private = CXL_CONTROLLER_PRIVATE_FROM_CXL_IO (This); # 815| # 816|-> if (Private->DoeExtCapBase == 0) { # 817| DEBUG ((DEBUG_ERROR, "%a: DOE not supported on this device\n", __func__)); # 818| return EFI_UNSUPPORTED; Error: GCC_ANALYZER_WARNING (CWE-476): [#def20] edk2-b03a21a63e3b/MdeModulePkg/Bus/Pci/CxlDxe/CxlDxe.c:1217:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Private’ edk2-b03a21a63e3b/MdeModulePkg/Bus/Pci/CxlDxe/CxlDxe.c:1209:6: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/MdeModulePkg/Bus/Pci/CxlDxe/CxlDxe.c:1213:13: branch_false: ...to here edk2-b03a21a63e3b/MdeModulePkg/Bus/Pci/CxlDxe/CxlDxe.c:1213:13: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/MdeModulePkg/Bus/Pci/CxlDxe/CxlDxe.c:1217:15: branch_false: ...to here edk2-b03a21a63e3b/MdeModulePkg/Bus/Pci/CxlDxe/CxlDxe.c:1217:12: danger: dereference of NULL ‘Private’ # 1215| // Uninstall child handle # 1216| // # 1217|-> Status = gBS->UninstallProtocolInterface ( # 1218| Private->ControllerHandle, # 1219| &gEdkiiCxlIoProtocolGuid, Error: GCC_ANALYZER_WARNING (CWE-476): [#def21] edk2-b03a21a63e3b/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressMediaSanitize.c:442:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Device’ edk2-b03a21a63e3b/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressMediaSanitize.c:436:6: branch_false: following ‘false’ branch (when ‘This’ is non-NULL)... edk2-b03a21a63e3b/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressMediaSanitize.c:440:18: branch_false: ...to here edk2-b03a21a63e3b/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressMediaSanitize.c:440:18: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressMediaSanitize.c:442:18: branch_false: ...to here edk2-b03a21a63e3b/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressMediaSanitize.c:442:18: danger: dereference of NULL ‘Device’ # 440| Device = NVME_DEVICE_PRIVATE_DATA_FROM_MEDIA_SANITIZE (This); # 441| Media = &Device->Media; # 442|-> SaniCap = Device->Controller->ControllerData->Sanicap; # 443| NoDeallocate = 0; # 444| Error: GCC_ANALYZER_WARNING (CWE-476): [#def22] edk2-b03a21a63e3b/MdeModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.c:1040:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ResourceNode’ edk2-b03a21a63e3b/MdeModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.c:1025:6: branch_true: following ‘true’ branch... edk2-b03a21a63e3b/MdeModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.c:1030:5: branch_true: ...to here edk2-b03a21a63e3b/MdeModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.c:1031:12: branch_true: following ‘true’ branch... edk2-b03a21a63e3b/MdeModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.c:1040:18: danger: dereference of NULL ‘ResourceNode’ # 1038| NextChildNodeLink = ChildNodeLink->ForwardLink; # 1039| # 1040|-> if ((ResourceNode->PciDev == PciIoDevice) && # 1041| (ResourceNode->Virtual || !PciIoDevice->PciBar[ResourceNode->Bar].BarTypeFixed) # 1042| ) Error: GCC_ANALYZER_WARNING (CWE-476): [#def23] edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c:210:8: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘FvDevice’ edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c:132:14: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c:134:12: branch_false: ...to here edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c:135:6: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c:142:7: branch_false: ...to here edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c:142:6: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c:146:7: branch_false: ...to here edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c:146:6: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c:146:6: branch_false: ...to here edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c:167:8: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c:175:5: branch_false: ...to here edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c:210:8: danger: dereference of NULL ‘FvDevice’ # 208| CopyGuid (NameGuid, &FfsFileHeader->Name); # 209| *Attributes = FfsAttributes2FvFileAttributes (FfsFileHeader->Attributes); # 210|-> if ((FvDevice->FwVolHeader->Attributes & EFI_FVB2_MEMORY_MAPPED) == EFI_FVB2_MEMORY_MAPPED) { # 211| *Attributes |= EFI_FV_FILE_ATTRIB_MEMORY_MAPPED; # 212| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def24] edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c:299:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘FvDevice’ edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c:289:6: branch_false: following ‘false’ branch (when ‘NameGuid’ is non-NULL)... edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c:293:14: branch_false: ...to here edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c:293:14: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c:299:3: branch_false: ...to here edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c:299:3: danger: dereference of NULL ‘FvDevice’ # 297| // The Key is really a FfsFileEntry # 298| // # 299|-> FvDevice->LastKey = 0; # 300| do { # 301| LocalFoundType = 0; Error: GCC_ANALYZER_WARNING (CWE-476): [#def25] edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c:471:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘FvDevice’ edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c:432:1: enter_function: entry to ‘FvReadFileSection’ edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c:450:6: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c:454:14: branch_false: ...to here edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c:454:14: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c:459:12: branch_false: ...to here edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c:459:12: call_function: calling ‘FvReadFile’ from ‘FvReadFileSection’ edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c:459:12: return_function: returning to ‘FvReadFileSection’ from ‘FvReadFile’ edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c:471:3: danger: dereference of NULL ‘FvDevice’ # 469| // Get the last key used by our call to FvReadFile as it is the FfsEntry for this file. # 470| // # 471|-> FfsEntry = (FFS_FILE_LIST_ENTRY *)FvDevice->LastKey; # 472| # 473| if (EFI_ERROR (Status)) { Error: GCC_ANALYZER_WARNING (CWE-476): [#def26] edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVolBlock/FwVolBlock.c:105:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘FvbDevice’ edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVolBlock/FwVolBlock.c:100:15: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVolBlock/FwVolBlock.c:105:17: branch_false: ...to here edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVolBlock/FwVolBlock.c:105:17: danger: dereference of NULL ‘FvbDevice’ # 103| // Since we are read only, it's safe to get attributes data from our in-memory copy. # 104| // # 105|-> *Attributes = FvbDevice->FvbAttributes & ~EFI_FVB2_WRITE_STATUS; # 106| # 107| return EFI_SUCCESS; Error: GCC_ANALYZER_WARNING (CWE-476): [#def27] edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVolBlock/FwVolBlock.c:208:8: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘FvbDevice’ edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVolBlock/FwVolBlock.c:203:15: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVolBlock/FwVolBlock.c:208:8: branch_false: ...to here edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVolBlock/FwVolBlock.c:208:8: danger: dereference of NULL ‘FvbDevice’ # 206| // Check if This FW can be read # 207| // # 208|-> if ((FvbDevice->FvbAttributes & EFI_FVB2_READ_STATUS) == 0) { # 209| return EFI_ACCESS_DENIED; # 210| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def28] edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVolBlock/FwVolBlock.c:312:8: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘FvbDevice’ edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVolBlock/FwVolBlock.c:310:15: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVolBlock/FwVolBlock.c:312:8: branch_false: ...to here edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVolBlock/FwVolBlock.c:312:8: danger: dereference of NULL ‘FvbDevice’ # 310| FvbDevice = FVB_DEVICE_FROM_THIS (This); # 311| # 312|-> if ((FvbDevice->FvbAttributes & EFI_FVB2_MEMORY_MAPPED) != 0) { # 313| *Address = FvbDevice->BaseAddress; # 314| return EFI_SUCCESS; Error: GCC_ANALYZER_WARNING (CWE-476): [#def29] edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVolBlock/FwVolBlock.c:356:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘FvbDevice’ edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVolBlock/FwVolBlock.c:351:15: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVolBlock/FwVolBlock.c:356:14: branch_false: ...to here edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/FwVolBlock/FwVolBlock.c:356:14: danger: dereference of NULL ‘FvbDevice’ # 354| // Do parameter checking # 355| // # 356|-> if (Lba >= FvbDevice->NumBlocks) { # 357| return EFI_INVALID_PARAMETER; # 358| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def30] edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:641:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Entry’ edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2631:1: enter_function: entry to ‘CoreInitializeGcdServices’ edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2668:6: branch_false: following ‘false’ branch (when ‘CpuHob’ is non-NULL)... edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2673:3: branch_false: ...to here edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2680:6: branch_false: following ‘false’ branch (when ‘Entry’ is non-NULL)... edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2685:23: branch_false: ...to here edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2695:6: branch_false: following ‘false’ branch (when ‘Entry’ is non-NULL)... edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2700:23: branch_false: ...to here edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2799:12: call_function: calling ‘CoreGetMemorySpaceDescriptor’ from ‘CoreInitializeGcdServices’ # 639| while (Link != Map) { # 640| Entry = CR (Link, EFI_GCD_MAP_ENTRY, Link, EFI_GCD_MAP_SIGNATURE); # 641|-> if ((BaseAddress >= Entry->BaseAddress) && (BaseAddress <= Entry->EndAddress)) { # 642| *StartLink = Link; # 643| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def31] edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:805:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Entry’ edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2631:1: enter_function: entry to ‘CoreInitializeGcdServices’ edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2668:6: branch_false: following ‘false’ branch (when ‘CpuHob’ is non-NULL)... edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2673:3: branch_false: ...to here edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2680:6: branch_false: following ‘false’ branch (when ‘Entry’ is non-NULL)... edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2685:23: branch_false: ...to here edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2695:6: branch_false: following ‘false’ branch (when ‘Entry’ is non-NULL)... edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2700:23: branch_false: ...to here edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2709:29: branch_true: following ‘true’ branch... edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2713:8: branch_true: ...to here edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2713:8: branch_true: following ‘true’ branch... edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2716:15: branch_true: ...to here edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2778:18: call_function: calling ‘CoreInternalAddMemorySpace’ from ‘CoreInitializeGcdServices’ # 803| // # 804| case GCD_ADD_MEMORY_OPERATION: # 805|-> if ((Entry->GcdMemoryType != EfiGcdMemoryTypeNonExistent) || # 806| (Entry->ImageHandle != NULL)) # 807| { Error: GCC_ANALYZER_WARNING (CWE-476): [#def32] edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:814:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Entry’ edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2631:1: enter_function: entry to ‘CoreInitializeGcdServices’ edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2668:6: branch_false: following ‘false’ branch (when ‘CpuHob’ is non-NULL)... edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2673:3: branch_false: ...to here edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2680:6: branch_false: following ‘false’ branch (when ‘Entry’ is non-NULL)... edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2685:23: branch_false: ...to here edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2695:6: branch_false: following ‘false’ branch (when ‘Entry’ is non-NULL)... edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2700:23: branch_false: ...to here edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2709:29: branch_true: following ‘true’ branch... edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2713:8: branch_true: ...to here edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2713:8: branch_true: following ‘true’ branch... edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2716:15: branch_true: ...to here edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2786:10: branch_true: following ‘true’ branch (when ‘GcdIoType != 0’)... edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2787:18: branch_true: ...to here edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2787:18: call_function: calling ‘CoreAddIoSpace’ from ‘CoreInitializeGcdServices’ # 812| break; # 813| case GCD_ADD_IO_OPERATION: # 814|-> if ((Entry->GcdIoType != EfiGcdIoTypeNonExistent) || # 815| (Entry->ImageHandle != NULL)) # 816| { Error: GCC_ANALYZER_WARNING (CWE-476): [#def33] edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:1626:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Entry’ edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:1767:1: enter_function: entry to ‘CoreGetMemorySpaceMap’ edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:1807:14: branch_true: following ‘true’ branch... edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:1808:17: branch_true: ...to here edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:1809:9: call_function: calling ‘BuildMemoryDescriptor’ from ‘CoreGetMemorySpaceMap’ # 1624| ) # 1625| { # 1626|-> Descriptor->BaseAddress = Entry->BaseAddress; # 1627| Descriptor->Length = Entry->EndAddress - Entry->BaseAddress + 1; # 1628| Descriptor->Capabilities = Entry->Capabilities; Error: GCC_ANALYZER_WARNING (CWE-476): [#def34] edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:2006:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Entry’ edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:202:1: enter_function: entry to ‘CoreDumpGcdIoSpaceMap’ edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:215:6: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:219:12: branch_false: ...to here edk2-b03a21a63e3b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c:219:12: call_function: calling ‘CoreGetIoSpaceMap’ from ‘CoreDumpGcdIoSpaceMap’ # 2004| ) # 2005| { # 2006|-> Descriptor->BaseAddress = Entry->BaseAddress; # 2007| Descriptor->Length = Entry->EndAddress - Entry->BaseAddress + 1; # 2008| Descriptor->GcdIoType = Entry->GcdIoType; Error: GCC_ANALYZER_WARNING (CWE-476): [#def35] edk2-b03a21a63e3b/MdeModulePkg/Core/Pei/Ppi/Ppi.c:1063:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘PrivateData’ edk2-b03a21a63e3b/MdeModulePkg/Core/Pei/Ppi/Ppi.c:1033:1: enter_function: entry to ‘ProcessPpiListFromSec’ edk2-b03a21a63e3b/MdeModulePkg/Core/Pei/Ppi/Ppi.c:1054:16: call_function: calling ‘InternalPeiInstallPpi’ from ‘ProcessPpiListFromSec’ edk2-b03a21a63e3b/MdeModulePkg/Core/Pei/Ppi/Ppi.c:1054:16: return_function: returning to ‘ProcessPpiListFromSec’ from ‘InternalPeiInstallPpi’ edk2-b03a21a63e3b/MdeModulePkg/Core/Pei/Ppi/Ppi.c:1061:10: branch_true: following ‘true’ branch... edk2-b03a21a63e3b/MdeModulePkg/Core/Pei/Ppi/Ppi.c:1062:43: branch_true: ...to here edk2-b03a21a63e3b/MdeModulePkg/Core/Pei/Ppi/Ppi.c:1062:43: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/MdeModulePkg/Core/Pei/Ppi/Ppi.c:1063:9: branch_false: ...to here edk2-b03a21a63e3b/MdeModulePkg/Core/Pei/Ppi/Ppi.c:1063:9: danger: dereference of NULL ‘PrivateData’ # 1061| if (CompareGuid (PpiList->Guid, &gEfiPeiMemoryDiscoveredPpiGuid)) { # 1062| PrivateData = PEI_CORE_INSTANCE_FROM_PS_THIS (PeiServices); # 1063|-> PrivateData->PeiMemoryInstalled = TRUE; # 1064| } # 1065| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def36] edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootDxe.c:1248:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Private’ edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootDxe.c:1221:6: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootDxe.c:1247:17: branch_false: ...to here edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootDxe.c:1247:17: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootDxe.c:1248:5: branch_false: ...to here edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootDxe.c:1248:5: danger: dereference of NULL ‘Private’ # 1246| } else { # 1247| Private = HTTP_BOOT_PRIVATE_DATA_FROM_LOADFILE (LoadFile); # 1248|-> NicHandle = Private->Controller; # 1249| } # 1250| Error: GCC_ANALYZER_WARNING (CWE-476): [#def37] edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootImpl.c:760:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘VirtualNic’ edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootImpl.c:759:16: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootImpl.c:760:3: branch_false: ...to here edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootImpl.c:760:3: danger: dereference of NULL ‘VirtualNic’ # 758| # 759| VirtualNic = HTTP_BOOT_VIRTUAL_NIC_FROM_LOADFILE (This); # 760|-> Private = VirtualNic->Private; # 761| # 762| // Error: GCC_ANALYZER_WARNING (CWE-476): [#def38] edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootImpl.c:879:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Private’ edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootImpl.c:866:13: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootImpl.c:868:3: branch_false: ...to here edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootImpl.c:875:10: branch_true: following ‘true’ branch (when ‘Data’ is non-NULL)... edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootImpl.c:877:14: branch_true: ...to here edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootImpl.c:877:12: branch_true: following ‘true’ branch... edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootImpl.c:878:14: branch_true: ...to here edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootImpl.c:877:13: branch_true: following ‘true’ branch... edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootImpl.c:879:14: branch_true: ...to here edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootImpl.c:879:14: danger: dereference of NULL ‘Private’ # 877| if ((HttpMessage->Data.Request->Method == HttpMethodGet) && # 878| (HttpMessage->Data.Request->Url != NULL) && # 879|-> (Private->PartialTransferredSize == 0)) # 880| { # 881| Print (L"\n URI: %s\n", HttpMessage->Data.Request->Url); Error: GCC_ANALYZER_WARNING (CWE-476): [#def39] edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootImpl.c:927:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Private’ edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootImpl.c:866:13: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootImpl.c:868:3: branch_false: ...to here edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootImpl.c:888:10: branch_true: following ‘true’ branch (when ‘Data’ is non-NULL)... edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootImpl.c:891:13: branch_true: ...to here edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootImpl.c:917:12: branch_false: following ‘false’ branch (when ‘HttpHeader’ is NULL)... edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootImpl.c:921:22: branch_false: ...to here edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootImpl.c:926:12: branch_true: following ‘true’ branch (when ‘HttpHeader’ is non-NULL)... edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootImpl.c:927:59: branch_true: ...to here edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootImpl.c:927:11: danger: dereference of NULL ‘Private’ # 925| ); # 926| if (HttpHeader != NULL) { # 927|-> Private->FileSize = AsciiStrDecimalToUintn (HttpHeader->FieldValue); # 928| Private->ReceivedSize = 0; # 929| Private->Percentage = 0; Error: GCC_ANALYZER_WARNING (CWE-476): [#def40] edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootImpl.c:937:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Private’ edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootImpl.c:866:13: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootImpl.c:868:3: branch_false: ...to here edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootImpl.c:936:10: branch_true: following ‘true’ branch (when ‘DataLength != 0’)... edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootImpl.c:937:13: branch_true: ...to here edk2-b03a21a63e3b/NetworkPkg/HttpBootDxe/HttpBootImpl.c:937:13: danger: dereference of NULL ‘Private’ # 935| case HttpBootHttpEntityBody: # 936| if (DataLength != 0) { # 937|-> if (Private->FileSize != 0) { # 938| // # 939| // We already know the file size, print in percentage format. Error: GCC_ANALYZER_WARNING (CWE-476): [#def41] edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/BufferImage.c:1587:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Line’ edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/BufferImage.c:2378:1: enter_function: entry to ‘HBufferImageHandleInput’ edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/BufferImage.c:2419:16: call_function: calling ‘HBufferImageScrollLeft’ from ‘HBufferImageHandleInput’ # 1585| FRow--; # 1586| Line = CR (Line->Link.BackLink, HEFI_EDITOR_LINE, Link, EFI_EDITOR_LINE_LIST); # 1587|-> FCol = Line->Size; # 1588| } else { # 1589| return EFI_SUCCESS; Error: GCC_ANALYZER_WARNING (CWE-476): [#def42] edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/BufferImage.c:1634:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Line’ edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/BufferImage.c:1627:6: branch_true: following ‘true’ branch... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/BufferImage.c:1628:5: branch_true: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/BufferImage.c:1629:12: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/BufferImage.c:1634:16: branch_false: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/BufferImage.c:1634:16: danger: dereference of NULL ‘Line’ # 1632| // if the next line is not that long, so move to end of next line # 1633| // # 1634|-> if (FCol > Line->Size) { # 1635| FCol = Line->Size + 1; # 1636| HighBits = TRUE; Error: GCC_ANALYZER_WARNING (CWE-476): [#def43] edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/BufferImage.c:1873:47: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Line’ edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/BufferImage.c:1864:10: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/BufferImage.c:1873:18: branch_false: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/BufferImage.c:1873:47: danger: dereference of NULL ‘Line’ # 1871| // one line at most 0x10 # 1872| // # 1873|-> Size = 0x10 * (HBufferImage.NumLines - 1) + Line->Size; # 1874| # 1875| return Size; Error: GCC_ANALYZER_WARNING (CWE-476): [#def44] edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/BufferImage.c:2258:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Line’ edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/BufferImage.c:2243:6: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/BufferImage.c:2247:3: branch_false: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/BufferImage.c:2254:10: branch_true: following ‘true’ branch... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/BufferImage.c:2255:12: branch_true: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/BufferImage.c:2258:17: danger: dereference of NULL ‘Line’ # 2256| # 2257| // @todo shouldn't this be an error??? # 2258|-> if (Count + Line->Size > Bytes) { # 2259| return EFI_SUCCESS; # 2260| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def45] edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/FileImage.c:320:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Line’ edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/FileImage.c:294:6: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/FileImage.c:299:12: branch_false: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/FileImage.c:317:51: branch_true: following ‘true’ branch... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/FileImage.c:318:12: branch_true: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/FileImage.c:320:9: danger: dereference of NULL ‘Line’ # 318| Line = CR (Link, HEFI_EDITOR_LINE, Link, EFI_EDITOR_LINE_LIST); # 319| # 320|-> if (Line->Size != 0) { # 321| TotalSize += Line->Size; # 322| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def46] edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/FileImage.c:342:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Line’ edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/FileImage.c:294:6: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/FileImage.c:299:12: branch_false: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/FileImage.c:334:6: branch_false: following ‘false’ branch (when ‘Buffer’ is non-NULL)... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/FileImage.c:339:15: branch_false: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/FileImage.c:339:51: branch_true: following ‘true’ branch... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/FileImage.c:340:12: branch_true: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/FileImage.c:342:9: danger: dereference of NULL ‘Line’ # 340| Line = CR (Link, HEFI_EDITOR_LINE, Link, EFI_EDITOR_LINE_LIST); # 341| # 342|-> if (Line->Size != 0) { # 343| CopyMem (Ptr, Line->Buffer, Line->Size); # 344| Ptr += Line->Size; Error: CPPCHECK_WARNING (CWE-457): [#def47] edk2-b03a21a63e3b/ShellPkg/Library/UefiShellDriver1CommandsLib/OpenInfo.c:193: warning[uninitvar]: Uninitialized variable: Intermediate # 191| } # 192| # 193|-> if (EFI_ERROR (Status) || (Param1 == NULL) || (ConvertHandleIndexToHandle ((UINTN)Intermediate) == NULL)) { # 194| ShellPrintHiiDefaultEx (STRING_TOKEN (STR_GEN_INV_HANDLE), gShellDriver1HiiHandle, L"openinfo", Param1); # 195| return SHELL_INVALID_PARAMETER; Error: GCC_ANALYZER_WARNING (CWE-476): [#def48] edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:107:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘SysInfo’ edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:71:6: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:89:6: branch_false: following ‘false’ branch (when ‘Status != 9223372036854775813’)... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:105:6: branch_false: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:105:6: branch_true: following ‘true’ branch (when ‘Delete != 0’)... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:106:5: branch_true: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:107:5: danger: dereference of NULL ‘SysInfo’ # 105| if (Delete) { # 106| *((CHAR16 *)SysInfo->VolumeLabel) = CHAR_NULL; # 107|-> SysInfo->Size = SIZE_OF_EFI_FILE_SYSTEM_INFO + StrSize (SysInfo->VolumeLabel); # 108| Status = EfiFpHandle->SetInfo ( # 109| EfiFpHandle, Error: GCC_ANALYZER_WARNING (CWE-476): [#def49] edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:118:62: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘SysInfo’ edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:42:7: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:44:27: branch_false: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:43:26: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:45:27: branch_false: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:43:26: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:46:27: branch_false: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:43:26: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:47:27: branch_false: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:43:26: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:48:27: branch_false: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:43:26: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:49:27: branch_false: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:43:26: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:50:27: branch_false: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:43:26: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:51:27: branch_false: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:43:26: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:52:27: branch_false: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:43:26: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:53:27: branch_false: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:43:26: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:54:27: branch_false: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:43:26: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:55:27: branch_false: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:43:26: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:56:27: branch_false: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:43:26: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:57:27: branch_false: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:43:26: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:58:27: branch_false: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:42:25: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:65:29: branch_false: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:71:6: branch_false: following ‘false’ branch... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:89:6: branch_false: following ‘false’ branch (when ‘Status != 9223372036854775813’)... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:105:6: branch_false: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:105:6: branch_false: following ‘false’ branch (when ‘Delete == 0’)... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:114:13: branch_false: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:114:13: branch_true: following ‘true’ branch (when ‘Name’ is non-NULL)... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:115:13: branch_true: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:117:8: branch_true: following ‘true’ branch (when ‘Size1 > Size2’)... edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:118:62: branch_true: ...to here edk2-b03a21a63e3b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:118:62: danger: dereference of NULL ‘SysInfo’ # 116| Size2 = StrSize (SysInfo->VolumeLabel); # 117| if (Size1 > Size2) { # 118|-> SysInfo = ReallocatePool ((UINTN)SysInfo->Size, (UINTN)SysInfo->Size + Size1 - Size2, SysInfo); # 119| if (SysInfo == NULL) { # 120| ShellPrintHiiDefaultEx (STRING_TOKEN (STR_GEN_OUT_MEM), gShellLevel2HiiHandle, L"vol");
| analyzer-version-clippy | 1.97.1 |
| analyzer-version-cppcheck | 2.21.1 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.97.1 |
| diffbase-analyzer-version-cppcheck | 2.21.1 |
| diffbase-analyzer-version-gcc | 16.1.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.1.1 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-164.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | edk2-20260213-4.fc44 |
| diffbase-store-results-to | /tmp/tmpj4i6gnn0/edk2-20260213-4.fc44.tar.xz |
| diffbase-time-created | 2026-08-03 13:59:10 |
| diffbase-time-finished | 2026-08-03 15:04:59 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpj4i6gnn0/edk2-20260213-4.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpj4i6gnn0/edk2-20260213-4.fc44.src.rpm' |
| diffbase-tool-version | csmock-3.8.7.HEAD-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-164.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | edk2-20260508-10.fc45 |
| store-results-to | /tmp/tmpbvhfucaq/edk2-20260508-10.fc45.tar.xz |
| time-created | 2026-08-03 15:07:43 |
| time-finished | 2026-08-03 16:10:38 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpbvhfucaq/edk2-20260508-10.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpbvhfucaq/edk2-20260508-10.fc45.src.rpm' |
| tool-version | csmock-3.8.7.HEAD-1.el9 |