edk2-20240813-2.fc42
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/Common/BasePeCoff.c: scope_hint: In function ‘PeCoffLoaderCheckImageType’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/Common/BasePeCoff.c:169:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘TeHdr’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/Common/BasePeCoff.c: scope_hint: In function ‘PeCoffLoaderGetImageInfo’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/Common/BasePeCoff.c:277:59: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘TeHdr’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/Common/BasePeCoff.c: scope_hint: In function ‘PeCoffLoaderRelocateImage’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/Common/BasePeCoff.c:692:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘TeHdr’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/Common/BasePeCoff.c: scope_hint: In function ‘PeCoffLoaderRelocateImage’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/Common/BasePeCoff.c: scope_hint: In function ‘PeCoffLoaderRelocateImage’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def4]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:34: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c: scope_hint: In function ‘main’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/Common/CommonLib.h:449:17: warning[-Wanalyzer-null-argument]: use of NULL ‘ModuleType’ where non-null expected
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:1499:11: note: in expansion of macro ‘stricmp’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:1242:7: note: in expansion of macro ‘stricmp’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:1248:10: note: in expansion of macro ‘stricmp’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:1259:10: note: in expansion of macro ‘stricmp’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:1276:10: note: in expansion of macro ‘stricmp’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:1283:10: note: in expansion of macro ‘stricmp’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:1290:10: note: in expansion of macro ‘stricmp’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:1300:10: note: in expansion of macro ‘stricmp’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:1307:10: note: in expansion of macro ‘stricmp’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:1314:10: note: in expansion of macro ‘stricmp’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:1326:10: note: in expansion of macro ‘stricmp’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:1338:10: note: in expansion of macro ‘stricmp’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:1345:9: note: in expansion of macro ‘stricmp’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:1352:9: note: in expansion of macro ‘stricmp’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:1359:9: note: in expansion of macro ‘stricmp’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:1366:10: note: in expansion of macro ‘stricmp’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:1373:10: note: in expansion of macro ‘stricmp’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:1380:10: note: in expansion of macro ‘stricmp’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:1391:10: note: in expansion of macro ‘stricmp’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:1410:10: note: in expansion of macro ‘stricmp’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:1429:10: note: in expansion of macro ‘stricmp’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:1440:10: note: in expansion of macro ‘stricmp’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:1448:10: note: in expansion of macro ‘stricmp’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:1456:10: note: in expansion of macro ‘stricmp’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:1473:10: note: in expansion of macro ‘stricmp’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:1484:9: note: in expansion of macro ‘stricmp’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:1491:9: note: in expansion of macro ‘stricmp’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:1498:9: note: in expansion of macro ‘stricmp’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:1499:11: note: in expansion of macro ‘stricmp’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:1499:11: note: in expansion of macro ‘stricmp’
/usr/include/string.h:462: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:17: included_from: Included from here.
/usr/include/strings.h:116:12: note: argument 1 of ‘strcasecmp’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-457): [#def5]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/Common/Decompress.c: scope_hint: In function ‘MakeTable’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/Common/Decompress.c:187:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘Start[17]’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/Common/Decompress.c: scope_hint: In function ‘MakeTable’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/Common/Decompress.c: scope_hint: In function ‘MakeTable’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/Common/Decompress.c: scope_hint: In function ‘MakeTable’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/Common/Decompress.c:12: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/Common/Decompress.c: scope_hint: In function ‘MakeTable’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def6]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/Common/EfiUtilityMsgs.c: scope_hint: In function ‘PrintMessage’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/Common/EfiUtilityMsgs.c:429:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/Common/EfiUtilityMsgs.c:429:9: note: read of 461 bytes from after the end of ‘mUtilityName’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/Common/EfiUtilityMsgs.c:429:9: note: valid subscripts for ‘mUtilityName’ are ‘[0]’ to ‘[49]’
Error: GCC_ANALYZER_WARNING (CWE-465): [#def7]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/DevicePath/DevicePath.c: scope_hint: In function ‘main’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/DevicePath/DevicePath.c:169:6: warning[-Wanalyzer-deref-before-check]: check of ‘argv[1]’ for NULL after already dereferencing it
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/DevicePath/UefiDevicePathLib.h:24: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/DevicePath/DevicePath.c:9: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/DevicePath/DevicePath.c:158:8: note: in expansion of macro ‘stricmp’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/DevicePath/DevicePath.c:158:8: note: in expansion of macro ‘stricmp’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/DevicePath/DevicePath.c:164:7: note: in expansion of macro ‘stricmp’
Error: CPPCHECK_WARNING (CWE-628): [#def8]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/EfiRom/EfiRom.c:394: error[invalidFunctionArg]: Invalid putc() argument nr 1. The value is -1 but the valid values are '0:'.
Error: CPPCHECK_WARNING (CWE-628): [#def9]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/EfiRom/EfiRom.c:753: error[invalidFunctionArg]: Invalid putc() argument nr 1. The value is -1 but the valid values are '0:'.
Error: CPPCHECK_WARNING (CWE-628): [#def10]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/EfiRom/EfiRom.c:773: error[invalidFunctionArg]: Invalid putc() argument nr 1. The value is -1 but the valid values are '0:'.
Error: CPPCHECK_WARNING (CWE-401): [#def11]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFfs/GenFfs.c:777: error[memleakOnRealloc]: Common realloc mistake: 'InputFileName' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def12]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFfs/GenFfs.c:789: error[memleakOnRealloc]: Common realloc mistake: 'InputFileAlign' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-688): [#def13]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/Elf64Convert.c: scope_hint: In function ‘WriteSections64’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/Elf64Convert.c:1383:15: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/Elf64Convert.c:20: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
Error: CPPCHECK_WARNING (CWE-401): [#def14]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenFw/GenFw.c:1538: error[memleakOnRealloc]: Common realloc mistake: 'InputFileName' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def15]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenSec/GenSec.c:1510: error[memleakOnRealloc]: Common realloc mistake: 'InputFileAlign' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def16]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/GenSec/GenSec.c:1550: error[memleakOnRealloc]: Common realloc mistake: 'InputFileName' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-457): [#def17]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaDec.c: scope_hint: In function ‘LzmaDec_DecodeToDic’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaDec.c:895:28: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*p.tempBuf[1]’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaDec.c:9: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaDec.c:1173:3: note: in expansion of macro ‘LzmaDec_Construct’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaDec.h:7: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/LzmaCompress/Sdk/C/7zTypes.h:63:38: note: in definition of macro ‘RINOK’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaDec.c:1124:3: note: in expansion of macro ‘RINOK’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/LzmaCompress/Sdk/C/7zTypes.h:63:38: note: in definition of macro ‘RINOK’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/LzmaCompress/Sdk/C/7zTypes.h:63:38: note: in definition of macro ‘RINOK’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaDec.c:1064:3: note: in expansion of macro ‘ISzAlloc_Free’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaDec.c: scope_hint: In function ‘LzmaDec_DecodeToDic’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/LzmaCompress/Sdk/C/7zTypes.h:63:38: note: in definition of macro ‘RINOK’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaDec.c:1125:3: note: in expansion of macro ‘RINOK’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/LzmaCompress/Sdk/C/7zTypes.h:63:38: note: in definition of macro ‘RINOK’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaDec.c:1174:3: note: in expansion of macro ‘RINOK’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def18]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/TianoCompress/TianoCompress.c: scope_hint: In function ‘MakeTable’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/TianoCompress/TianoCompress.c:2234:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘Start[17]’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/TianoCompress/TianoCompress.c:19: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/TianoCompress/TianoCompress.c: scope_hint: In function ‘MakeTable’
Error: CPPCHECK_WARNING (CWE-457): [#def19]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/antlr.c:36: error[uninitvar]: Uninitialized variable: a
Error: CPPCHECK_WARNING (CWE-457): [#def20]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/antlr.c:1394: error[legacyUninitvar]: Uninitialized variable: p
Error: GCC_ANALYZER_WARNING (CWE-476): [#def21]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/bits.c: scope_hint: In function ‘GenParser_c_Hdr’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/bits.c:704:53: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hasAkaName’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/bits.c:38: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/bits.c:703:9: note: in expansion of macro ‘require’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/bits.c:703:9: note: in expansion of macro ‘require’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/generic.h:60:44: note: in expansion of macro ‘fatal_internal’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/bits.c:703:9: note: in expansion of macro ‘require’
Error: CPPCHECK_WARNING (CWE-401): [#def22]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/build.c:75: error[memleak]: Memory leak: q
Error: GCC_ANALYZER_WARNING (CWE-476): [#def23]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/build.c: scope_hint: In function ‘makePlus’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/build.c:543:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘j3’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/build.c:38: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/build.c:737:9: note: in expansion of macro ‘require’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/build.c:737:9: note: in expansion of macro ‘require’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/build.c:792:9: note: in expansion of macro ‘require’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/build.c:792:9: note: in expansion of macro ‘require’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/build.c:792:9: note: in expansion of macro ‘require’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/generic.h:60:44: note: in expansion of macro ‘fatal_internal’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/build.c:792:9: note: in expansion of macro ‘require’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def24]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/build.c: scope_hint: In function ‘newTokNode’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/build.c:650:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/build.c:647:25: note: in expansion of macro ‘fatal_internal’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/build.c:664:16: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def26]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/build.c: scope_hint: In function ‘newRNode’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/build.c:684:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/build.c:681:25: note: in expansion of macro ‘fatal_internal’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/build.c:699:16: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def28]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/build.c: scope_hint: In function ‘newJunction’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/build.c:721:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/build.c:718:25: note: in expansion of macro ‘fatal_internal’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/build.c:740:16: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/build.c:737:9: note: in expansion of macro ‘require’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def30]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/build.c: scope_hint: In function ‘newActionNode’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/build.c:760:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/build.c:757:25: note: in expansion of macro ‘fatal_internal’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/build.c:773:16: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def32]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/egman.c: scope_hint: In function ‘arrayCheck’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/egman.c:239:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘egArrayNew’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def33]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/egman.c:240:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘leArrayNew’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def34]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/egman.c:241:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘altArrayNew’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def35]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/fset2.c: scope_hint: In function ‘tnode’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/fset2.c:275:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/fset2.c:46: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/fset2.c:1798:5: note: in expansion of macro ‘require’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def36]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/fset2.c: scope_hint: In function ‘MR_traceAmbSource’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/fset2.c:2003:61: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dup_matchSets’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/fset2.c:1960:5: note: in expansion of macro ‘require’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/fset2.c:1960:5: note: in expansion of macro ‘require’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/generic.h:60:44: note: in expansion of macro ‘fatal_internal’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/fset2.c:1960:5: note: in expansion of macro ‘require’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def37]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/lex.c: scope_hint: In function ‘genLexDescr’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/lex.c:58:9: warning[-Wanalyzer-null-argument]: use of NULL ‘dlgFile’ where non-null expected
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/lex.c:40: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/lex.c:54:9: note: in expansion of macro ‘require’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/lex.c:54:9: note: in expansion of macro ‘require’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/generic.h:60:44: note: in expansion of macro ‘fatal_internal’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/lex.c:54:9: note: in expansion of macro ‘require’
<built-in>: note: argument 4 of ‘__builtin_fwrite’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def38]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/lex.c: scope_hint: In function ‘GenRemapFile’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/lex.c:365:17: warning[-Wanalyzer-null-argument]: use of NULL ‘f’ where non-null expected
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/lex.c:361:17: note: in expansion of macro ‘require’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/lex.c:361:17: note: in expansion of macro ‘require’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/generic.h:60:44: note: in expansion of macro ‘fatal_internal’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/lex.c:361:17: note: in expansion of macro ‘require’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/lex.c:31: included_from: Included from here.
/usr/include/stdio.h:357:12: note: argument 1 of ‘fprintf’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def39]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/main.c: scope_hint: In function ‘newUserAction’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/main.c:1707:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘calloc(strlen(zzlextext) + 1, 1)’ where non-null expected
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/stdpccts.h:24: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/main.c:37: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/main.c:1704:9: note: in expansion of macro ‘require’
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def40]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/main.c: scope_hint: In function ‘makeAltID’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/main.c:1745:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘p’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
Error: CPPCHECK_WARNING (CWE-401): [#def41]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/misc.c:95: error[memleakOnRealloc]: Common realloc mistake: 'TokenStr' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-476): [#def42]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/pred.c: scope_hint: In function ‘new_pred’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/pred.c:595:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/pred.c:36: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/pred.c:592:9: note: in expansion of macro ‘require’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/pred.c:592:9: note: in expansion of macro ‘require’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/generic.h:60:44: note: in expansion of macro ‘fatal_internal’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/antlr/pred.c:592:9: note: in expansion of macro ‘require’
Error: CPPCHECK_WARNING (CWE-401): [#def43]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/dlg/automata.c:100: error[memleakOnRealloc]: Common realloc mistake: 'dfa_array' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def44]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/dlg/automata.c:139: error[memleak]: Memory leak: reach_list
Error: CPPCHECK_WARNING (CWE-401): [#def45]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg_p.c:823: error[memleakOnRealloc]: Common realloc mistake: 'nfa_array' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg_p.c: scope_hint: In function ‘new_nfa_node’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg_p.c:823:16: warning[-Wanalyzer-malloc-leak]: leak of ‘nfa_array’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg_p.c:20: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/antlr.h:515:35: note: in expansion of macro ‘zzOvfChk’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg_p.c:477:3: note: in expansion of macro ‘zzMake0’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg_p.c:477:3: note: in expansion of macro ‘zzMake0’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def47]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg_p.c:830:6: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘t’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def48]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/dlg/output.c: scope_hint: In function ‘mystrdup’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/dlg/output.c:139:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘p’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
Error: COMPILER_WARNING: [#def49]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AParser.cpp:49:6: warning[-Wodr]: type ‘ANTLRTokenType’ violates the C++ One Definition Rule
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/DLexerBase.cpp:47:6: note: an enum with different value name is defined in another translation unit
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AParser.cpp:49:40: note: name ‘ITS_TOO_COMPLICATED’ differs from name ‘ITS_UTTER_GARBAGE’ defined in another translation unit
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/DLexerBase.cpp:47:40: note: mismatching definition
Error: COMPILER_WARNING (CWE-758): [#def50]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AParser.cpp: scope_hint: In member function ‘int ANTLRParser::set_deg(SetWordType*)’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AParser.cpp:475:31: warning[-Wregister]: ISO C++17 does not allow ‘register’ storage class specifier
Error: COMPILER_WARNING (CWE-758): [#def51]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AParser.cpp:476:31: warning[-Wregister]: ISO C++17 does not allow ‘register’ storage class specifier
Error: COMPILER_WARNING (CWE-758): [#def52]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AParser.cpp:477:22: warning[-Wregister]: ISO C++17 does not allow ‘register’ storage class specifier
Error: COMPILER_WARNING (CWE-758): [#def53]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AParser.cpp:482:38: warning[-Wregister]: ISO C++17 does not allow ‘register’ storage class specifier
Error: COMPILER_WARNING (CWE-758): [#def54]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AParser.cpp:483:39: warning[-Wregister]: ISO C++17 does not allow ‘register’ storage class specifier
Error: COMPILER_WARNING (CWE-758): [#def55]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AParser.cpp: scope_hint: In member function ‘virtual void ANTLRParser::edecode(SetWordType*)’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AParser.cpp:496:31: warning[-Wregister]: ISO C++17 does not allow ‘register’ storage class specifier
Error: COMPILER_WARNING (CWE-758): [#def56]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AParser.cpp:497:31: warning[-Wregister]: ISO C++17 does not allow ‘register’ storage class specifier
Error: COMPILER_WARNING (CWE-758): [#def57]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AParser.cpp:498:27: warning[-Wregister]: ISO C++17 does not allow ‘register’ storage class specifier
Error: COMPILER_WARNING (CWE-758): [#def58]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AParser.cpp:502:38: warning[-Wregister]: ISO C++17 does not allow ‘register’ storage class specifier
Error: COMPILER_WARNING (CWE-758): [#def59]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AParser.cpp:503:39: warning[-Wregister]: ISO C++17 does not allow ‘register’ storage class specifier
Error: CPPCHECK_WARNING (CWE-664): [#def60]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AParser.cpp:582: error[va_end_missing]: va_list 'ap' was opened but not closed by va_end().
Error: COMPILER_WARNING (CWE-563): [#def61]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AParser.h:101:42: warning[-Wunused-variable]: unused variable ‘zzTracePrevRuleName’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AParser.h:358:9: note: in expansion of macro ‘zzTRACEdata’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp:77:3: note: in expansion of macro ‘zzRULE’
Error: COMPILER_WARNING: [#def62]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AParser.h:147:7: warning[-Wodr]: type ‘struct ANTLRParser’ violates the C++ One Definition Rule
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AParser.h:147:7: note: a different type is defined in another translation unit
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AParser.h:156:24: note: the first difference of corresponding definitions is field ‘eofToken’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AParser.h:156:24: note: a field of same name but different type is defined in another translation unit
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AParser.cpp:49:6: note: type ‘ANTLRTokenType’ should match type ‘ANTLRTokenType’
Error: COMPILER_WARNING (CWE-563): [#def63]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp:25: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp: scope_hint: In member function ‘UINT8 EfiVfrParser::vfrProgram()’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AParser.h:356:58: warning[-Wunused-variable]: unused variable ‘zzBadText’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp:77:3: note: in expansion of macro ‘zzRULE’
Error: COMPILER_WARNING (CWE-563): [#def64]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AParser.h:357:30: warning[-Wunused-variable]: unused variable ‘zzpf’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp:77:3: note: in expansion of macro ‘zzRULE’
Error: COMPILER_WARNING (CWE-563): [#def65]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AParser.h:359:28: warning[-Wunused-variable]: unused variable ‘zzMissText’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp:77:3: note: in expansion of macro ‘zzRULE’
Error: COMPILER_WARNING: [#def66]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:176:7: warning[-Wodr]: type ‘struct ANTLRCommonNoRefCountToken’ violates the C++ One Definition Rule
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:176:7: note: a different type is defined in another translation unit
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:178:24: note: the first difference of corresponding definitions is field ‘_type’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:178:24: note: a field of same name but different type is defined in another translation unit
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AParser.cpp:49:6: note: type ‘ANTLRTokenType’ should match type ‘ANTLRTokenType’
Error: COMPILER_WARNING (CWE-704): [#def67]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:188:9: warning[-Wlto-type-mismatch]: type of ‘__dt_base ’ does not match original declaration
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:188:9: note: ‘__dt_base ’ was previously declared here
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:188:9: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
Error: COMPILER_WARNING (CWE-704): [#def68]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:188:9: warning[-Wlto-type-mismatch]: type of ‘__dt_comp ’ does not match original declaration
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:188:9: note: ‘__dt_comp ’ was previously declared here
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:188:9: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
Error: COMPILER_WARNING (CWE-704): [#def69]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:188:9: warning[-Wlto-type-mismatch]: type of ‘__dt_del ’ does not match original declaration
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:188:9: note: ‘__dt_del ’ was previously declared here
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:188:9: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
Error: COMPILER_WARNING (CWE-704): [#def70]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:190:24: warning[-Wlto-type-mismatch]: type of ‘getType’ does not match original declaration
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:190:24: note: return value type mismatch
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AParser.cpp:49:6: note: type ‘ANTLRTokenType’ should match type ‘ANTLRTokenType’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:190:24: note: ‘getType’ was previously declared here
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:190:24: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
Error: COMPILER_WARNING (CWE-704): [#def71]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:192:21: warning[-Wlto-type-mismatch]: type of ‘getLine’ does not match original declaration
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:192:21: note: ‘getLine’ was previously declared here
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:192:21: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
Error: COMPILER_WARNING (CWE-704): [#def72]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:193:14: warning[-Wlto-type-mismatch]: type of ‘setLine’ does not match original declaration
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:193:14: note: ‘setLine’ was previously declared here
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:193:14: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
Error: COMPILER_WARNING (CWE-704): [#def73]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:194:20: warning[-Wlto-type-mismatch]: type of ‘getText’ does not match original declaration
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:194:20: note: ‘getText’ was previously declared here
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:194:20: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
Error: COMPILER_WARNING (CWE-704): [#def74]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:199:14: warning[-Wlto-type-mismatch]: type of ‘setText’ does not match original declaration
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:199:14: note: ‘setText’ was previously declared here
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:199:14: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
Error: COMPILER_WARNING (CWE-704): [#def75]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:235:40: warning[-Wlto-type-mismatch]: type of ‘operator=’ does not match original declaration
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:235:40: note: ‘operator=’ was previously declared here
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:235:40: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
Error: COMPILER_WARNING: [#def76]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:249:7: warning[-Wodr]: type ‘struct ANTLRCommonToken’ violates the C++ One Definition Rule
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:249:7: note: a different type is defined in another translation unit
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:251:30: note: the first difference of corresponding definitions is field ‘_type’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:251:30: note: a field of same name but different type is defined in another translation unit
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AParser.cpp:49:6: note: type ‘ANTLRTokenType’ should match type ‘ANTLRTokenType’
Error: COMPILER_WARNING (CWE-704): [#def77]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:261:17: warning[-Wlto-type-mismatch]: type of ‘__dt_base ’ does not match original declaration
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:261:17: note: ‘__dt_base ’ was previously declared here
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:261:17: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
Error: COMPILER_WARNING (CWE-704): [#def78]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:261:17: warning[-Wlto-type-mismatch]: type of ‘__dt_comp ’ does not match original declaration
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:261:17: note: ‘__dt_comp ’ was previously declared here
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:261:17: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
Error: COMPILER_WARNING (CWE-704): [#def79]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:261:17: warning[-Wlto-type-mismatch]: type of ‘__dt_del ’ does not match original declaration
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:261:17: note: ‘__dt_del ’ was previously declared here
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:261:17: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
Error: COMPILER_WARNING (CWE-704): [#def80]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:263:24: warning[-Wlto-type-mismatch]: type of ‘getType’ does not match original declaration
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:263:24: note: return value type mismatch
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AParser.cpp:49:6: note: type ‘ANTLRTokenType’ should match type ‘ANTLRTokenType’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:263:24: note: ‘getType’ was previously declared here
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:263:24: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
Error: COMPILER_WARNING (CWE-704): [#def81]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:265:21: warning[-Wlto-type-mismatch]: type of ‘getLine’ does not match original declaration
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:265:21: note: ‘getLine’ was previously declared here
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:265:21: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
Error: COMPILER_WARNING (CWE-704): [#def82]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:266:14: warning[-Wlto-type-mismatch]: type of ‘setLine’ does not match original declaration
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:266:14: note: ‘setLine’ was previously declared here
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:266:14: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
Error: COMPILER_WARNING (CWE-704): [#def83]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:267:20: warning[-Wlto-type-mismatch]: type of ‘getText’ does not match original declaration
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:267:20: note: ‘getText’ was previously declared here
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:267:20: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
Error: COMPILER_WARNING (CWE-704): [#def84]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:272:14: warning[-Wlto-type-mismatch]: type of ‘setText’ does not match original declaration
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:272:14: note: ‘setText’ was previously declared here
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:272:14: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
Error: COMPILER_WARNING (CWE-704): [#def85]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:308:30: warning[-Wlto-type-mismatch]: type of ‘operator=’ does not match original declaration
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:308:30: note: ‘operator=’ was previously declared here
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/AToken.h:308:30: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
Error: COMPILER_WARNING (CWE-758): [#def86]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrLexer.cpp:22124: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/DLexer.h: scope_hint: In member function ‘virtual ANTLRTokenType VfrLexer::nextTokenType()’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/DLexer.h:68:22: warning[-Wregister]: ISO C++17 does not allow ‘register’ storage class specifier
Error: COMPILER_WARNING (CWE-758): [#def87]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/DLexer.h:68:29: warning[-Wregister]: ISO C++17 does not allow ‘register’ storage class specifier
Error: COMPILER_WARNING (CWE-758): [#def88]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/DLexer.h:70:27: warning[-Wregister]: ISO C++17 does not allow ‘register’ storage class specifier
Error: COMPILER_WARNING (CWE-195): [#def89]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/DLexer.h:33: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/DLexer.h:119:26: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’
Error: COMPILER_WARNING (CWE-758): [#def90]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/DLexerBase.cpp: scope_hint: In member function ‘void DLGLexerBase::replstr(const DLGChar*)’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/DLexerBase.cpp:196:27: warning[-Wregister]: ISO C++17 does not allow ‘register’ storage class specifier
Error: CPPCHECK_WARNING (CWE-664): [#def91]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/h/err.h:214: error[va_end_missing]: va_list 'ap' was opened but not closed by va_end().
Error: GCC_ANALYZER_WARNING (CWE-476): [#def92]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/support/set/set.c: scope_hint: In function ‘set_val’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/support/set/set.c:563:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/support/set/set.c:67: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/support/set/set.c:557:9: note: in expansion of macro ‘set_new’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/support/set/set.c:557:9: note: in expansion of macro ‘set_new’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/support/set/set.c:557:9: note: in expansion of macro ‘set_new’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/Pccts/support/set/set.h:58:74: note: in definition of macro ‘set_new’
Error: COMPILER_WARNING (CWE-563): [#def93]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrCompiler.cpp: scope_hint: In member function ‘void CVfrCompiler::AdjustBin()’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrCompiler.cpp:719:23: warning[-Wunused-variable]: unused variable ‘Status’
Error: COMPILER_WARNING (CWE-457): [#def94]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrFormPkg.cpp: scope_hint: In member function ‘CIfrRecordInfoDB::IfrAdjustDynamicOpcodeInRecords(unsigned char)’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrFormPkg.cpp:1344:57: warning[-Wmaybe-uninitialized]: ‘pNodeBeforeAdjust’ may be used uninitialized
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrFormPkg.cpp:1316:37: note: ‘pNodeBeforeAdjust’ was declared here
Error: COMPILER_WARNING (CWE-563): [#def95]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrFormPkg.h:650:27: warning[-Wunused-variable]: ‘gIsOrderedList’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def96]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/EfiVfrParser.h:25: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/EfiVfrParser.cpp:18: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrFormPkg.h:651:27: warning[-Wunused-variable]: ‘gIsStringOp’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def97]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp:106:1: warning[-Wunused-label]: label ‘fail’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def98]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp:473:1: warning[-Wunused-label]: label ‘fail’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def99]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp:1432:1: warning[-Wunused-label]: label ‘fail’ defined but not used
Error: COMPILER_WARNING (CWE-457): [#def100]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp:1948:48: warning[-Wmaybe-uninitialized]: ‘Offset’ may be used uninitialized
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp:1795:12: note: ‘Offset’ was declared here
Error: COMPILER_WARNING (CWE-457): [#def101]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp:1949:28: warning[-Wmaybe-uninitialized]: ‘PreBits’ may be used uninitialized
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp:1796:12: note: ‘PreBits’ was declared here
Error: COMPILER_WARNING (CWE-457): [#def102]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp: scope_hint: In member function ‘EfiVfrParser::vfrExtensionData(unsigned char*, unsigned int, char*, unsigned int, unsigned char, unsigned int)’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp:1950:33: warning[-Wmaybe-uninitialized]: ‘Mask’ may be used uninitialized
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp:1794:12: note: ‘Mask’ was declared here
Error: COMPILER_WARNING (CWE-563): [#def103]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp: scope_hint: In member function ‘void EfiVfrParser::vfrStatementVarStoreNameValue()’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp:2516:9: warning[-Wunused-variable]: unused variable ‘zzcnt’
Error: COMPILER_WARNING (CWE-1164): [#def104]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp:2914:1: warning[-Wunused-label]: label ‘fail’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def105]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp:3014:25: warning[-Wunused-variable]: unused variable ‘LineNo’
Error: COMPILER_WARNING (CWE-1164): [#def106]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp:4160:1: warning[-Wunused-label]: label ‘fail’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def107]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp:4171:1: warning[-Wunused-label]: label ‘fail’ defined but not used
Error: COMPILER_WARNING (CWE-195): [#def108]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp: scope_hint: In member function ‘void EfiVfrParser::vfrSetMinMaxStep(CIfrMinMaxStepData&)’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp:5783:31: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘UINT32’ {aka ‘unsigned int’} and ‘int’
Error: COMPILER_WARNING (CWE-195): [#def109]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp:5884:31: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘UINT32’ {aka ‘unsigned int’} and ‘int’
Error: COMPILER_WARNING (CWE-1164): [#def110]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp:7367:1: warning[-Wunused-label]: label ‘fail’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def111]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp:7437:1: warning[-Wunused-label]: label ‘fail’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def112]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp:8319:1: warning[-Wunused-label]: label ‘fail’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def113]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp:8334:22: warning[-Wunused-variable]: unused variable ‘TypeError’
Error: COMPILER_WARNING (CWE-563): [#def114]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp: scope_hint: In member function ‘void EfiVfrParser::ideqvallistExp(UINT32&, UINT32&)’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp:9972:9: warning[-Wunused-variable]: unused variable ‘zzcnt’
Error: COMPILER_WARNING (CWE-563): [#def115]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp: scope_hint: In member function ‘EFI_HII_REF EfiVfrParser::_STOR(CHAR8*, CHAR8*, EFI_GUID*, CHAR8*, UINT32)’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrSyntax.cpp:11491:15: warning[-Wunused-variable]: unused variable ‘Index’
Error: COMPILER_WARNING (CWE-823): [#def116]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp: scope_hint: In member function ‘void CVfrQuestionDB::RegisterNewDateQuestion(CHAR8*, CHAR8*, EFI_QUESTION_ID&)’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp:2997:18: warning[-Wchar-subscripts]: array subscript has type ‘char’
Error: COMPILER_WARNING (CWE-823): [#def117]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp:2998:25: warning[-Wchar-subscripts]: array subscript has type ‘char’
Error: COMPILER_WARNING (CWE-823): [#def118]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp:2999:16: warning[-Wchar-subscripts]: array subscript has type ‘char’
Error: COMPILER_WARNING (CWE-823): [#def119]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp:3011:15: warning[-Wchar-subscripts]: array subscript has type ‘char’
Error: COMPILER_WARNING (CWE-823): [#def120]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp:3012:20: warning[-Wchar-subscripts]: array subscript has type ‘char’
Error: COMPILER_WARNING (CWE-823): [#def121]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp:3015:18: warning[-Wchar-subscripts]: array subscript has type ‘char’
Error: COMPILER_WARNING (CWE-823): [#def122]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp:3016:26: warning[-Wchar-subscripts]: array subscript has type ‘char’
Error: COMPILER_WARNING (CWE-823): [#def123]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp:3017:17: warning[-Wchar-subscripts]: array subscript has type ‘char’
Error: COMPILER_WARNING (CWE-823): [#def124]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp: scope_hint: In member function ‘void CVfrQuestionDB::RegisterNewTimeQuestion(CHAR8*, CHAR8*, EFI_QUESTION_ID&)’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp:3175:18: warning[-Wchar-subscripts]: array subscript has type ‘char’
Error: COMPILER_WARNING (CWE-823): [#def125]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp:3176:25: warning[-Wchar-subscripts]: array subscript has type ‘char’
Error: COMPILER_WARNING (CWE-823): [#def126]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp:3177:16: warning[-Wchar-subscripts]: array subscript has type ‘char’
Error: COMPILER_WARNING (CWE-823): [#def127]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp:3189:15: warning[-Wchar-subscripts]: array subscript has type ‘char’
Error: COMPILER_WARNING (CWE-823): [#def128]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp:3190:20: warning[-Wchar-subscripts]: array subscript has type ‘char’
Error: COMPILER_WARNING (CWE-823): [#def129]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp:3193:18: warning[-Wchar-subscripts]: array subscript has type ‘char’
Error: COMPILER_WARNING (CWE-823): [#def130]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp:3194:25: warning[-Wchar-subscripts]: array subscript has type ‘char’
Error: COMPILER_WARNING (CWE-823): [#def131]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp:3195:16: warning[-Wchar-subscripts]: array subscript has type ‘char’
Error: COMPILER_WARNING (CWE-823): [#def132]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp: scope_hint: In member function ‘void CVfrQuestionDB::RegisterRefQuestion(CHAR8*, CHAR8*, EFI_QUESTION_ID&)’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp:3309:15: warning[-Wchar-subscripts]: array subscript has type ‘char’
Error: COMPILER_WARNING (CWE-823): [#def133]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp:3310:20: warning[-Wchar-subscripts]: array subscript has type ‘char’
Error: COMPILER_WARNING (CWE-823): [#def134]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp:3313:18: warning[-Wchar-subscripts]: array subscript has type ‘char’
Error: COMPILER_WARNING (CWE-823): [#def135]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp:3314:23: warning[-Wchar-subscripts]: array subscript has type ‘char’
Error: COMPILER_WARNING (CWE-563): [#def136]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp: scope_hint: In member function ‘CHAR8* CVfrStringDB::GetVarStoreNameFormStringId(EFI_STRING_ID)’
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp:3569:15: warning[-Wunused-variable]: unused variable ‘LineBuf’
Error: COMPILER_WARNING (CWE-563): [#def137]
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrFormPkg.h:16: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/BaseTools/Source/C/VfrCompile/VfrUtilityLib.h:18:17: warning[-Wunused-variable]: ‘gEdkiiIfrBitVarGuid’ defined but not used
Error: CPPCHECK_WARNING (CWE-758): [#def138]
edk2-20240813-build/edk2-b158dad150bf/CryptoPkg/Library/OpensslLib/openssl/crypto/bn/bn_gcd.c:614: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def139]
edk2-20240813-build/edk2-b158dad150bf/CryptoPkg/Library/OpensslLib/openssl/crypto/bn/bn_lib.c:45: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def140]
edk2-20240813-build/edk2-b158dad150bf/CryptoPkg/Library/OpensslLib/openssl/crypto/bn/bn_lib.c:51: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def141]
edk2-20240813-build/edk2-b158dad150bf/CryptoPkg/Library/OpensslLib/openssl/crypto/bn/bn_lib.c:57: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def142]
edk2-20240813-build/edk2-b158dad150bf/CryptoPkg/Library/OpensslLib/openssl/crypto/bn/bn_lib.c:63: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def143]
edk2-20240813-build/edk2-b158dad150bf/CryptoPkg/Library/OpensslLib/openssl/crypto/modes/gcm128.c:590: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def144]
edk2-20240813-build/edk2-b158dad150bf/CryptoPkg/Library/OpensslLib/openssl/crypto/modes/xts128.c:74: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def145]
edk2-20240813-build/edk2-b158dad150bf/CryptoPkg/Library/OpensslLib/openssl/crypto/modes/xts128.c:113: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: GCC_ANALYZER_WARNING (CWE-457): [#def146]
edk2-20240813-build/edk2-b158dad150bf/CryptoPkg/Library/TlsLib/TlsConfig.c: scope_hint: In function ‘TlsSetCipherList’
edk2-20240813-build/edk2-b158dad150bf/CryptoPkg/Library/TlsLib/TlsConfig.c:266:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘OpensslCipher’
edk2-20240813-build/edk2-b158dad150bf/CryptoPkg/Library/TlsLib/InternalTlsLib.h:24: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/CryptoPkg/Library/TlsLib/TlsConfig.c:10: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/CryptoPkg/Library/TlsLib/TlsConfig.c:235:21: note: in expansion of macro ‘sk_SSL_CIPHER_num’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def147]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaPassThruExecute.c: scope_hint: In function ‘AccessAtaDevice’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaPassThruExecute.c:932:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘EventCount’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Uefi/UefiBaseType.h:16: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Uefi.h:17: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/Build/OvmfX64/DEBUG_GCC5/X64/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe/DEBUG/AutoGen.h:16: included_from: Included from here.
<command-line>: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Uefi/UefiBaseType.h:161:23: note: in expansion of macro ‘RETURN_ERROR’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaPassThruExecute.c:929:9: note: in expansion of macro ‘EFI_ERROR’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def148]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/EhciDxe/UsbHcMem.c: scope_hint: In function ‘UsbHcInsertMemBlockToPool’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/EhciDxe/UsbHcMem.c:280:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Head’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.h:21: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/EhciDxe/UsbHcMem.c:10: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/EhciDxe/UsbHcMem.c:46:3: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def149]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.c: scope_hint: In function ‘StartPciDevices’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.c:776:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘RootBridge’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def150]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/PciSioSerialDxe/Serial.c: scope_hint: In function ‘SerialControllerDriverStart’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/PciSioSerialDxe/Serial.c:1006:32: warning[-Wanalyzer-out-of-bounds]: buffer over-read
<command-line>: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/PciSioSerialDxe/Serial.h:28: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/PciSioSerialDxe/Serial.c:9: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/PciSioSerialDxe/Serial.c:852:3: note: in expansion of macro ‘REPORT_STATUS_CODE_WITH_DEVICE_PATH’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/PciSioSerialDxe/Serial.c:1006:32: note: read of 2 bytes from after the end of ‘_gPcd_FixedAtBuild_PcdPciSerialParameters’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/PciSioSerialDxe/Serial.c:1006:32: note: valid subscripts for ‘_gPcd_FixedAtBuild_PcdPciSerialParameters’ are ‘[0]’ to ‘[1]’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def151]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/UhciDxe/UhciSched.c: scope_hint: In function ‘UhciLinkQhToFrameList’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/UhciDxe/UhciSched.c:285:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Next’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/UhciDxe/Uhci.h:21: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/UhciDxe/UhciSched.c:10: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/UhciDxe/UhciSched.c:267:5: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def152]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/UhciDxe/UsbHcMem.c: scope_hint: In function ‘UsbHcInsertMemBlockToPool’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/UhciDxe/UsbHcMem.c:280:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Head’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/UhciDxe/Uhci.h:21: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/UhciDxe/UsbHcMem.c:10: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/UhciDxe/UsbHcMem.c:46:3: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def153]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/XhciDxe/UsbHcMem.c: scope_hint: In function ‘UsbHcGetPciAddrForHostAddr’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/XhciDxe/UsbHcMem.c:273:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Block’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def154]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/XhciDxe/UsbHcMem.c: scope_hint: In function ‘UsbHcGetHostAddrForPciAddr’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/XhciDxe/UsbHcMem.c:328:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Block’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def155]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/XhciDxe/UsbHcMem.c: scope_hint: In function ‘UsbHcInsertMemBlockToPool’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/XhciDxe/UsbHcMem.c:347:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Head’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/XhciDxe/Xhci.h:28: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/XhciDxe/UsbHcMem.c:10: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/XhciDxe/UsbHcMem.c:46:3: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def156]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/XhciDxe/UsbHcMem.c: scope_hint: In function ‘UsbHcIsMemBlockEmpty’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Pci/XhciDxe/UsbHcMem.c:367:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Block’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def157]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c: scope_hint: In function ‘USBParseKey’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c:1266:64: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘UsbKey.KeyCode’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def158]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Core/Dxe/Misc/MemoryAttributesTable.c: scope_hint: In function ‘EnforceMemoryMapAttribute’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Core/Dxe/Misc/MemoryAttributesTable.c:450:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘MemoryMapEntry’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Core/Dxe/Misc/MemoryAttributesTable.c:15: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Core/Dxe/Misc/MemoryAttributesTable.c:536:5: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-127): [#def159]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Core/Pei/Dependency/Dependency.c: scope_hint: In function ‘IsPpiInstalled’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Core/Pei/Dependency/Dependency.c:43:12: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Core/Pei/PeiMain.h:30: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Core/Pei/Dependency/Dependency.c:13: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Core/Pei/Dependency/Dependency.c:135:11: note: in expansion of macro ‘DEBUG’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Core/Pei/Dependency/Dependency.c:43:12: note: valid subscripts for ‘EvalStack’ are ‘[0]’ to ‘[63]’
Error: GCC_ANALYZER_WARNING (CWE-127): [#def160]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Core/Pei/Dependency/Dependency.c:44:17: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Core/Pei/Dependency/Dependency.c:135:11: note: in expansion of macro ‘DEBUG’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Core/Pei/Dependency/Dependency.c:44:17: note: valid subscripts for ‘EvalStack’ are ‘[0]’ to ‘[63]’
Error: GCC_ANALYZER_WARNING (CWE-124): [#def161]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Core/Pei/Dependency/Dependency.c: scope_hint: In function ‘PeimDispatchReadiness’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Core/Pei/Dependency/Dependency.c:168:36: warning[-Wanalyzer-out-of-bounds]: stack-based buffer underwrite
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Core/Pei/Dependency/Dependency.c:135:11: note: in expansion of macro ‘DEBUG’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Core/Pei/Dependency/Dependency.c:168:36: note: valid subscripts for ‘EvalStack’ are ‘[0]’ to ‘[63]’
Error: GCC_ANALYZER_WARNING (CWE-124): [#def162]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Core/Pei/Dependency/Dependency.c:169:36: warning[-Wanalyzer-out-of-bounds]: stack-based buffer underwrite
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Core/Pei/Dependency/Dependency.c:135:11: note: in expansion of macro ‘DEBUG’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Core/Pei/Dependency/Dependency.c:169:36: note: valid subscripts for ‘EvalStack’ are ‘[0]’ to ‘[63]’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def163]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c: scope_hint: In function ‘PeiDispatcher’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c:1669:15: warning[-Wanalyzer-jump-through-null]: jump through null pointer
<command-line>: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Library/PcdLib.h:401:32: note: in expansion of macro ‘_PCD_GET_MODE_BOOL_PcdMigrateTemporaryRamFirmwareVolumes’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c:1640:18: note: in expansion of macro ‘PcdGetBool’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def164]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Core/PiSmmCore/Locate.c: scope_hint: In function ‘SmmLocateHandle’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Core/PiSmmCore/Locate.c:375:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ResultBuffer’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def165]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Core/PiSmmCore/MemoryAttributesTable.c: scope_hint: In function ‘EnforceMemoryMapAttribute’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Core/PiSmmCore/MemoryAttributesTable.c:137:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘MemoryMapEntry’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Core/PiSmmCore/MemoryAttributesTable.c:15: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Core/PiSmmCore/MemoryAttributesTable.c:232:7: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def166]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Core/PiSmmCore/Page.c: scope_hint: In function ‘SmmInternalAllocatePagesEx’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Core/PiSmmCore/Page.c:611:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*Memory’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def167]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c: scope_hint: In function ‘BootLogoEnableLogo’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c:117:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘UgaDraw’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c:24: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c:116:5: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def168]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c:224:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘UgaDraw’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def169]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c: scope_hint: In function ‘BootLogoUpdateProgress’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c:494:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘UgaDraw’
<command-line>: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Library/PcdLib.h:50:35: note: in expansion of macro ‘_PCD_GET_MODE_BOOL_PcdUgaConsumeSupport’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c:493:16: note: in expansion of macro ‘FeaturePcdGet’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def170]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c:530:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘UgaDraw’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Library/PcdLib.h:50:35: note: in expansion of macro ‘_PCD_GET_MODE_BOOL_PcdUgaConsumeSupport’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c:529:16: note: in expansion of macro ‘FeaturePcdGet’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def171]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootOption.c: scope_hint: In function ‘BOpt_GetBootOptions’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootOption.c:368:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘NewMenuEntry’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def172]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/BootMaintenanceManagerUiLib/UpdatePage.c: scope_hint: In function ‘UpdateConsolePage’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/BootMaintenanceManagerUiLib/UpdatePage.c:499:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ConsoleCheck’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManager.h:28: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/BootMaintenanceManagerUiLib/UpdatePage.c:9: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/BootMaintenanceManagerUiLib/UpdatePage.c:489:3: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def173]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/BootMaintenanceManagerUiLib/UpdatePage.c:501:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ConsoleCheck’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/BootMaintenanceManagerUiLib/UpdatePage.c:489:3: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def174]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/BootMaintenanceManagerUiLib/UpdatePage.c:536:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ConsoleCheck’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/BootMaintenanceManagerUiLib/UpdatePage.c:489:3: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def175]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/BootMaintenanceManagerUiLib/UpdatePage.c: scope_hint: In function ‘UpdateOrderPage’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/BootMaintenanceManagerUiLib/UpdatePage.c:628:70: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘OptionOrder’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/BootMaintenanceManagerUiLib/UpdatePage.c:622:3: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def176]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/LzmaCustomDecompressLib/Sdk/C/LzmaDec.c: scope_hint: In function ‘LzmaDec_DecodeToDic’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/LzmaCustomDecompressLib/Sdk/C/LzmaDec.c:874:26: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*p.tempBuf[1]’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/LzmaCustomDecompressLib/Sdk/C/LzmaDec.c:11: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/LzmaCustomDecompressLib/Sdk/C/LzmaDec.c:1227:3: note: in expansion of macro ‘LzmaDec_Construct’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/LzmaCustomDecompressLib/Sdk/C/LzmaDec.h:7: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/LzmaCustomDecompressLib/Sdk/C/7zTypes.h:65:39: note: in definition of macro ‘RINOK’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/LzmaCustomDecompressLib/Sdk/C/LzmaDec.c:1155:3: note: in expansion of macro ‘RINOK’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/LzmaCustomDecompressLib/Sdk/C/7zTypes.h:65:39: note: in definition of macro ‘RINOK’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/LzmaCustomDecompressLib/Sdk/C/7zTypes.h:65:39: note: in definition of macro ‘RINOK’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/LzmaCustomDecompressLib/Sdk/C/7zTypes.h:65:39: note: in definition of macro ‘RINOK’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/LzmaCustomDecompressLib/Sdk/C/LzmaDec.c:1156:3: note: in expansion of macro ‘RINOK’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/LzmaCustomDecompressLib/Sdk/C/7zTypes.h:65:39: note: in definition of macro ‘RINOK’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/LzmaCustomDecompressLib/Sdk/C/LzmaDec.c:1228:3: note: in expansion of macro ‘RINOK’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def177]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxMmLib.c: scope_hint: In function ‘InternalFindLockBoxByGuid’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxMmLib.c:385:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘LockBoxQueue’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def178]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxMmLib.c: scope_hint: In function ‘RestoreAllLockBoxInPlace’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxMmLib.c:856:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘LockBoxQueue’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def179]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.c: scope_hint: In function ‘InternalRestoreLockBoxFromSmram’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.c:276:61: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘SmmLockBoxContext’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def180]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.c: scope_hint: In function ‘InternalRestoreAllLockBoxInPlaceFromSmram’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.c:379:61: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘SmmLockBoxContext’
Error: GCC_ANALYZER_WARNING (CWE-674): [#def181]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/UefiBootManagerLib/BmHotkey.c: scope_hint: In function ‘BmGenerateKeyShiftState’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Library/UefiBootManagerLib/BmHotkey.c:602:9: warning[-Wanalyzer-infinite-recursion]: infinite recursion
Error: GCC_ANALYZER_WARNING (CWE-476): [#def182]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/Acpi/AcpiTableDxe/AmlNamespace.c: scope_hint: In function ‘AmlFindNodeInThis’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/Acpi/AcpiTableDxe/AmlNamespace.c:83:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘AmlParentNodeList’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def183]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/Acpi/AcpiTableDxe/AmlNamespace.c: scope_hint: In function ‘AmlFindNodeInTheTree’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/Acpi/AcpiTableDxe/AmlNamespace.c:151:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘AmlCurrentNodeList’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def184]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/Disk/UdfDxe/FileSystemOperations.c: scope_hint: In function ‘GetFileEntryData’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/Disk/UdfDxe/FileSystemOperations.c:569:8: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*Length’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def185]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/Disk/UdfDxe/FileSystemOperations.c: scope_hint: In function ‘GetAdsInformation’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/Disk/UdfDxe/FileSystemOperations.c:628:8: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*Length’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def186]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/Disk/UdfDxe/FileSystemOperations.c: scope_hint: In function ‘GetShortAdFromAds’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/Disk/UdfDxe/Udf.h:102:67: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ShortAd’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/Disk/UdfDxe/FileSystemOperations.c:733:19: note: in expansion of macro ‘GET_EXTENT_FLAGS’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/Disk/UdfDxe/FileSystemOperations.c:733:19: note: in expansion of macro ‘GET_EXTENT_FLAGS’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def187]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/Disk/UdfDxe/FileSystemOperations.c:10: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/Disk/UdfDxe/FileSystemOperations.c: scope_hint: In function ‘GetLongAdFromAds’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/Disk/UdfDxe/Udf.h:104:66: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘LongAd’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/Disk/UdfDxe/FileSystemOperations.c:676:19: note: in expansion of macro ‘GET_EXTENT_FLAGS’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/Disk/UdfDxe/FileSystemOperations.c:676:19: note: in expansion of macro ‘GET_EXTENT_FLAGS’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def188]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c: scope_hint: In function ‘GetSelectionInputPopUp’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c:1718:54: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘CurrentOption’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.h:13: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c:10: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c:1717:11: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def189]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c: scope_hint: In function ‘HiiStringToImage.part.0’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c:1770:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘StringInfoOut’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabase.h:32: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c:10: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c:1766:5: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def190]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c: scope_hint: In function ‘IfrToUint’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c:1272:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Setup.h:36: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c:9: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c:3748:3: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Setup.h:214:41: note: in expansion of macro ‘CR’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c:2580:14: note: in expansion of macro ‘EXPRESSION_OPCODE_FROM_LINK’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Setup.h:235:39: note: in expansion of macro ‘CR’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c:905:18: note: in expansion of macro ‘FORM_EXPRESSION_FROM_LINK’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Setup.h:214:41: note: in expansion of macro ‘CR’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c:2580:14: note: in expansion of macro ‘EXPRESSION_OPCODE_FROM_LINK’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Setup.h:235:39: note: in expansion of macro ‘CR’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c:905:18: note: in expansion of macro ‘FORM_EXPRESSION_FROM_LINK’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Setup.h:214:41: note: in expansion of macro ‘CR’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c:2580:14: note: in expansion of macro ‘EXPRESSION_OPCODE_FROM_LINK’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c:1271:5: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def191]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c: scope_hint: In function ‘InitializeRequestElement’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c:621:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘FormsetStorage’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Setup.h:36: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c:9: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c:41:5: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def192]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c: scope_hint: In function ‘ParseOpCodes’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c:1377:57: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ParentStatement’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def193]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c:2153:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ParentStatement’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def194]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c:2407:44: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ParentStatement’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c:2406:11: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def195]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c:2448:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ParentStatement’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def196]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c:2471:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ParentStatement’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def197]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c:2529:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ParentStatement’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def198]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c:2562:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘CurrentForm’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def199]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c:2578:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘CurrentForm’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def200]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c:2583:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ParentStatement’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def201]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c:2738:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘CurrentStatement’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def202]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c: scope_hint: In function ‘ProcessUserInput’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c:1591:59: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Statement’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Setup.h:36: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c:10: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Setup.h:417:41: note: in expansion of macro ‘CR’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c:2447:27: note: in expansion of macro ‘FORM_BROWSER_FORM_FROM_LINK’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Library/DebugLib.h:625:15: note: in expansion of macro ‘_ASSERT’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Setup.h:417:41: note: in expansion of macro ‘CR’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c:2447:27: note: in expansion of macro ‘FORM_BROWSER_FORM_FROM_LINK’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Setup.h:469:44: note: in expansion of macro ‘CR’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c:697:24: note: in expansion of macro ‘FORM_BROWSER_FORMSET_FROM_LINK’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def203]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c:1612:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Statement’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Setup.h:417:41: note: in expansion of macro ‘CR’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c:2447:27: note: in expansion of macro ‘FORM_BROWSER_FORM_FROM_LINK’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Library/DebugLib.h:625:15: note: in expansion of macro ‘_ASSERT’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Setup.h:417:41: note: in expansion of macro ‘CR’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c:2447:27: note: in expansion of macro ‘FORM_BROWSER_FORM_FROM_LINK’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Setup.h:469:44: note: in expansion of macro ‘CR’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c:697:24: note: in expansion of macro ‘FORM_BROWSER_FORMSET_FROM_LINK’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c:1610:5: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def204]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c: scope_hint: In function ‘DisplayForm’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c:1732:48: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘CurrentMenu’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Setup.h:417:41: note: in expansion of macro ‘CR’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c:2447:27: note: in expansion of macro ‘FORM_BROWSER_FORM_FROM_LINK’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Library/DebugLib.h:625:15: note: in expansion of macro ‘_ASSERT’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Setup.h:417:41: note: in expansion of macro ‘CR’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c:2447:27: note: in expansion of macro ‘FORM_BROWSER_FORM_FROM_LINK’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c:1718:5: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Library/DebugLib.h:400:11: note: in expansion of macro ‘_ASSERT’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c:1718:5: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def205]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c: scope_hint: In function ‘UpdateVariable’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c:1740:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*CacheVariable.CurrPtr’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.h:25: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c:28: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c:3320:7: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c:3320:7: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def206]
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Uefi/UefiBaseType.h:16: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Uefi.h:17: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/Build/OvmfX64/DEBUG_GCC5/X64/ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib/DEBUG/AutoGen.h:16: included_from: Included from here.
<command-line>: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellDebug1CommandsLib/Dmem.c: scope_hint: In function ‘DisplayConformanceProfiles’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Base.h:1061:37: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘Status’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Uefi/UefiBaseType.h:161:23: note: in expansion of macro ‘RETURN_ERROR’
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellDebug1CommandsLib/Dmem.c:325:9: note: in expansion of macro ‘EFI_ERROR’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Uefi/UefiBaseType.h:161:23: note: in expansion of macro ‘RETURN_ERROR’
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellDebug1CommandsLib/Dmem.c:325:9: note: in expansion of macro ‘EFI_ERROR’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Uefi/UefiBaseType.h:161:23: note: in expansion of macro ‘RETURN_ERROR’
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellDebug1CommandsLib/Dmem.c:325:9: note: in expansion of macro ‘EFI_ERROR’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def207]
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.h:24: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.c:13: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.c: scope_hint: In function ‘UnregisterAtaDevice’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Library/DebugLib.h:624:61: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘BlockIo2’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.h:159:46: note: in expansion of macro ‘CR’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.c:466:17: note: in expansion of macro ‘ATA_DEVICE_FROM_BLOCK_IO2’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.c:465:5: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.h:159:46: note: in expansion of macro ‘CR’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.c:466:17: note: in expansion of macro ‘ATA_DEVICE_FROM_BLOCK_IO2’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Uefi/UefiBaseType.h:16: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Uefi.h:17: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/Build/OvmfX64/DEBUG_GCC5/X64/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe/DEBUG/AutoGen.h:16: included_from: Included from here.
<command-line>: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Library/DebugLib.h:624:32: note: in expansion of macro ‘BASE_CR’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.h:159:46: note: in expansion of macro ‘CR’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.c:466:17: note: in expansion of macro ‘ATA_DEVICE_FROM_BLOCK_IO2’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Library/DebugLib.h:624:32: note: in expansion of macro ‘BASE_CR’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.h:159:46: note: in expansion of macro ‘CR’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.c:466:17: note: in expansion of macro ‘ATA_DEVICE_FROM_BLOCK_IO2’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.h:159:46: note: in expansion of macro ‘CR’
edk2-20240813-build/edk2-b158dad150bf/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.c:466:17: note: in expansion of macro ‘ATA_DEVICE_FROM_BLOCK_IO2’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def208]
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.c:20: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.c: scope_hint: In function ‘OrderedCollectionDelete’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.c:1188:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Sibling’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Library/DebugLib.h:399:15: note: in definition of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.c:1188:9: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Library/DebugLib.h:399:15: note: in definition of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Library/DebugLib.h:399:15: note: in definition of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def209]
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.c:1189:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Sibling’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.c:1188:9: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def210]
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.c:1309:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Sibling’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Library/DebugLib.h:399:15: note: in definition of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.c:1309:9: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Library/DebugLib.h:399:15: note: in definition of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Library/DebugLib.h:399:15: note: in definition of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def211]
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.c:1310:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Sibling’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.c:1309:9: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def212]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c: scope_hint: In function ‘ParseDnsResponse’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1304:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Dns4TokenEntry’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.h:24: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:10: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1085:3: note: in expansion of macro ‘NET_LIST_FOR_EACH’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.h:25: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1276:5: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1302:5: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def213]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1343:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Dns6TokenEntry’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1085:3: note: in expansion of macro ‘NET_LIST_FOR_EACH’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1260:5: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1341:5: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def214]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1434:73: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Dns4TokenEntry’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1085:3: note: in expansion of macro ‘NET_LIST_FOR_EACH’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1276:5: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1341:5: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Include/Library/NetLib.h:220:32: note: in definition of macro ‘NTOHS’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def215]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1462:80: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Dns6TokenEntry’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1085:3: note: in expansion of macro ‘NET_LIST_FOR_EACH’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1260:5: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1302:5: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Include/Library/NetLib.h:220:32: note: in definition of macro ‘NTOHS’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def216]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1507:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Dns4TokenEntry’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1085:3: note: in expansion of macro ‘NET_LIST_FOR_EACH’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1276:5: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1341:5: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Include/Library/NetLib.h:220:32: note: in definition of macro ‘NTOHS’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def217]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1569:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Dns6TokenEntry’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1085:3: note: in expansion of macro ‘NET_LIST_FOR_EACH’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1260:5: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1302:5: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Include/Library/NetLib.h:220:32: note: in definition of macro ‘NTOHS’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def218]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1644:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Dns4TokenEntry’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1085:3: note: in expansion of macro ‘NET_LIST_FOR_EACH’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1276:5: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1341:5: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1642:5: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def219]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1657:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Dns6TokenEntry’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1085:3: note: in expansion of macro ‘NET_LIST_FOR_EACH’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1260:5: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1302:5: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/DnsDxe/DnsImpl.c:1655:5: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def220]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/HttpDxe/HttpsSupport.c: scope_hint: In function ‘TlsCommonReceive’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/HttpDxe/HttpsSupport.c:944:51: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Tcp4RxData’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def221]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/HttpDxe/HttpsSupport.c:949:51: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Tcp6RxData’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def222]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/IScsiDxe/IScsiConfig.c: scope_hint: In function ‘IScsiConfigProcessDefault’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/IScsiDxe/IScsiConfig.c:2839:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def223]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/IScsiDxe/IScsiDriver.c: scope_hint: In function ‘IScsiStart’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/IScsiDxe/IScsiDriver.c:907:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ExistPrivate’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/IScsiDxe/IScsiImpl.h:45: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/IScsiDxe/IScsiDriver.c:12: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Include/Library/NetLib.h:637:16: note: in definition of macro ‘NET_LIST_FOR_EACH_SAFE’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def224]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/IScsiDxe/IScsiMisc.c: scope_hint: In function ‘IScsiGetConfigData’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/IScsiDxe/IScsiMisc.c:2223:83: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘NicInfo’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def225]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Dhcp4Dxe/Dhcp4Impl.h:27: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Dhcp4Dxe/Dhcp4Io.c:9: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Dhcp4Dxe/Dhcp4Io.c: scope_hint: In function ‘DhcpSendMessage’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Include/Library/NetLib.h:242:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘SeedHead’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Dhcp4Dxe/Dhcp4Io.c:1225:16: note: in expansion of macro ‘EFI_IP4’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Dhcp4Dxe/Dhcp4Impl.h:22: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Dhcp4Dxe/Dhcp4Io.c:1224:7: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Dhcp4Dxe/Dhcp4Io.c:1225:16: note: in expansion of macro ‘EFI_IP4’
Error: GCC_ANALYZER_WARNING (CWE-124): [#def226]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Ip6Dxe/Ip6ConfigNv.c: scope_hint: In function ‘Ip6ConvertAddressListToString.part.0’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Ip6Dxe/Ip6ConfigNv.c:548:17: warning[-Wanalyzer-out-of-bounds]: stack-based buffer underwrite
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Ip6Dxe/Ip6ConfigNv.c: scope_hint: In function ‘Ip6ConvertAddressListToString.part.0’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Ip6Dxe/Ip6ConfigNv.c: scope_hint: In function ‘Ip6ConvertAddressListToString.part.0’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Ip6Dxe/Ip6Impl.h:28: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Ip6Dxe/Ip6ConfigNv.c:10: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Ip6Dxe/Ip6ConfigNv.c:179:5: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Ip6Dxe/Ip6ConfigNv.c:179:5: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Ip6Dxe/Ip6ConfigNv.c:179:5: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Ip6Dxe/Ip6ConfigNv.c: scope_hint: In function ‘Ip6ConvertAddressListToString.part.0’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Ip6Dxe/Ip6ConfigNv.c: scope_hint: In function ‘Ip6ConvertAddressListToString.part.0’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Ip6Dxe/Ip6ConfigNv.c:548:17: note: valid subscripts for ‘PortString’ are ‘[0]’ to ‘[254]’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def227]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Ip6Dxe/Ip6ConfigNv.c: scope_hint: In function ‘Ip6GetCurrentSetting’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Ip6Dxe/Ip6ConfigNv.c:1566:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘IfInfo’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def228]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Library/DxeNetLib/NetBuffer.c: scope_hint: In function ‘NetbufQueCopy’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Library/DxeNetLib/NetBuffer.c:1485:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Nbuf’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Library/DxeNetLib/NetBuffer.c:10: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Library/DxeNetLib/NetBuffer.c:1469:3: note: in expansion of macro ‘NET_LIST_FOR_EACH’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Library/DxeNetLib/NetBuffer.c:12: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Library/DxeNetLib/NetBuffer.c:1479:3: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def229]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.c: scope_hint: In function ‘TcpIoConnect’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.c:568:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Tcp4’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def230]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.c:570:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Tcp6’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def231]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.c:576:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Tcp4’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def232]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.c:578:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Tcp6’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def233]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.c: scope_hint: In function ‘TcpIoAccept’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.c:644:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Tcp4’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def234]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.c:646:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Tcp6’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def235]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.c:652:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Tcp4’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def236]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.c:654:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Tcp6’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def237]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.c: scope_hint: In function ‘TcpIoReset’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.c:728:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Tcp4’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def238]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.c:730:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Tcp6’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def239]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.c: scope_hint: In function ‘TcpIoTransmit’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.c:836:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Tcp4’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def240]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.c:838:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Tcp6’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def241]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.c: scope_hint: In function ‘TcpIoReceive’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.c:945:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Tcp4’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def242]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.c:947:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Tcp6’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def243]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.c:959:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Tcp4’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def244]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.c:961:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Tcp6’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def245]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.c:970:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Tcp4’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def246]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.c:972:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Tcp6’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def247]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Include/Library/UdpIoLib.h:16: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp4Dxe/Mtftp4Impl.h:30: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp4Dxe/Mtftp4Rrq.c:10: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp4Dxe/Mtftp4Rrq.c: scope_hint: In function ‘Mtftp4RrqInput’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp4Dxe/Mtftp4Rrq.c:719:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Packet’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Include/Library/NetLib.h:220:32: note: in definition of macro ‘NTOHS’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp4Dxe/Mtftp4Impl.h:26: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp4Dxe/Mtftp4Rrq.c:675:3: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp4Dxe/Mtftp4Rrq.c:716:5: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Library/DebugLib.h:400:11: note: in expansion of macro ‘_ASSERT’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp4Dxe/Mtftp4Rrq.c:716:5: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Include/Library/NetLib.h:220:32: note: in definition of macro ‘NTOHS’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def248]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Include/Library/UdpIoLib.h:16: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp4Dxe/Mtftp4Impl.h:30: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp4Dxe/Mtftp4Wrq.c:9: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp4Dxe/Mtftp4Wrq.c: scope_hint: In function ‘Mtftp4WrqInput’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp4Dxe/Mtftp4Wrq.c:393:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Packet’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Include/Library/NetLib.h:220:32: note: in definition of macro ‘NTOHS’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp4Dxe/Mtftp4Impl.h:26: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp4Dxe/Mtftp4Wrq.c:356:3: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp4Dxe/Mtftp4Wrq.c:390:5: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Library/DebugLib.h:400:11: note: in expansion of macro ‘_ASSERT’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp4Dxe/Mtftp4Wrq.c:390:5: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Include/Library/NetLib.h:220:32: note: in definition of macro ‘NTOHS’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def249]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp6Dxe/Mtftp6Impl.h:25: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp6Dxe/Mtftp6Rrq.c:10: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp6Dxe/Mtftp6Rrq.c: scope_hint: In function ‘Mtftp6RrqInput’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp6Dxe/Mtftp6Rrq.c:764:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Packet’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Include/Library/NetLib.h:220:32: note: in definition of macro ‘NTOHS’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp6Dxe/Mtftp6Impl.h:20: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp6Dxe/Mtftp6Rrq.c:704:3: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp6Dxe/Mtftp6Rrq.c:761:5: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Library/DebugLib.h:400:11: note: in expansion of macro ‘_ASSERT’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp6Dxe/Mtftp6Rrq.c:761:5: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Include/Library/NetLib.h:220:32: note: in definition of macro ‘NTOHS’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def250]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp6Dxe/Mtftp6Impl.h:25: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp6Dxe/Mtftp6Wrq.c:10: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp6Dxe/Mtftp6Wrq.c: scope_hint: In function ‘Mtftp6WrqInput’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp6Dxe/Mtftp6Wrq.c:442:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Packet’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Include/Library/NetLib.h:220:32: note: in definition of macro ‘NTOHS’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp6Dxe/Mtftp6Impl.h:20: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp6Dxe/Mtftp6Wrq.c:404:3: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp6Dxe/Mtftp6Wrq.c:439:5: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Library/DebugLib.h:400:11: note: in expansion of macro ‘_ASSERT’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Mtftp6Dxe/Mtftp6Wrq.c:439:5: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/Include/Library/NetLib.h:220:32: note: in definition of macro ‘NTOHS’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def251]
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/TcpDxe/SockImpl.c: scope_hint: In function ‘SockTcpDataToRcv’
edk2-20240813-build/edk2-b158dad150bf/NetworkPkg/TcpDxe/SockImpl.c:121:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘RcvBufEntry’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def252]
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/AcpiPlatformDxe/CloudHvAcpi.c: scope_hint: In function ‘InstallCloudHvTablesTdx’
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/AcpiPlatformDxe/CloudHvAcpi.c:85:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘DsdtTable’
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/AcpiPlatformDxe/CloudHvAcpi.c:14: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/AcpiPlatformDxe/CloudHvAcpi.c:77:5: note: in expansion of macro ‘DEBUG’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def253]
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/AcpiPlatformDxe/CloudHvAcpi.c: scope_hint: In function ‘InstallCloudHvTables’
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/AcpiPlatformDxe/CloudHvAcpi.c:218:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘DsdtTable’
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/AcpiPlatformDxe/CloudHvAcpi.c:210:5: note: in expansion of macro ‘DEBUG’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def254]
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/IntelTdx/TdxHelperLib/SecTdxHelper.c: scope_hint: In function ‘AcceptMemoryForAPsStack’
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/IntelTdx/TdxHelperLib/SecTdxHelper.c:385:23: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘PhysicalEnd’
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/IntelTdx/TdxHelperLib/SecTdxHelper.c:12: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/IntelTdx/TdxHelperLib/SecTdxHelper.c:787:3: note: in expansion of macro ‘DEBUG’
edk2-20240813-build/edk2-b158dad150bf/Build/OvmfX64/DEBUG_GCC5/X64/OvmfPkg/IntelTdx/TdxHelperLib/SecTdxHelperLib/DEBUG/AutoGen.h:16: included_from: Included from here.
<command-line>: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Base.h:948:42: note: in definition of macro ‘ALIGN_VALUE’
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/IntelTdx/TdxHelperLib/SecTdxHelper.c:748:51: note: in expansion of macro ‘APS_STACK_SIZE’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def255]
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/IoMmuDxe/CcIoMmu.c: scope_hint: In function ‘IoMmuUnmapWorker’
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/IoMmuDxe/CcIoMmu.c:445:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘CommonBufferHeader’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def256]
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Library/AcpiPlatformLib/DxeAcpiPlatformLib.c: scope_hint: In function ‘InstallAcpiTablesFromRsdp’
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Library/AcpiPlatformLib/DxeAcpiPlatformLib.c:244:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘DsdtTable’
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Library/AcpiPlatformLib/DxeAcpiPlatformLib.c:14: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Library/AcpiPlatformLib/DxeAcpiPlatformLib.c:236:5: note: in expansion of macro ‘DEBUG’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def257]
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Library/BaseMemEncryptSevLib/X64/VirtualMemory.h:21: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Library/BaseMemEncryptSevLib/X64/PeiDxeVirtualMemory.c:19: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Library/BaseMemEncryptSevLib/X64/PeiDxeVirtualMemory.c: scope_hint: In function ‘Split2MPageTo4K’
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Library/BaseMemEncryptSevLib/X64/PeiDxeVirtualMemory.c:209:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘PageEntry2M’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Library/DebugLib.h:399:15: note: in definition of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Library/BaseMemEncryptSevLib/X64/PeiDxeVirtualMemory.c:209:3: note: in expansion of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Library/DebugLib.h:399:15: note: in definition of macro ‘ASSERT’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Library/DebugLib.h:399:15: note: in definition of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def258]
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Library/BaseMemEncryptSevLib/X64/PeiDxeVirtualMemory.c:221:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘PageTableEntry’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def259]
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Library/BaseMemEncryptSevLib/X64/PeiDxeVirtualMemory.c: scope_hint: In function ‘Split1GPageTo2M’
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Library/BaseMemEncryptSevLib/X64/PeiDxeVirtualMemory.c:481:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘PageDirectoryEntry’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def260]
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Library/BaseMemEncryptSevLib/X64/SnpPageStateChangeInternal.c: scope_hint: In function ‘MemoryStateToGhcbOp’
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Library/BaseMemEncryptSevLib/X64/SnpPageStateChangeInternal.c:41:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘Cmd’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def261]
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Library/CcExitLib/CcExitVcHandler.c: scope_hint: In function ‘CpuidExit’
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Library/CcExitLib/CcExitVcHandler.c:1452:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘XCr0’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def262]
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Library/CcExitLib/CcExitVcHandler.c:1468:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘XCr0’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def263]
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Library/CcExitLib/CcInstruction.c: scope_hint: In function ‘GetEffectiveMemoryAddress’
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Library/CcExitLib/CcInstruction.c:222:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Register/Amd/Ghcb.h:20: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Library/CcExitLib/CcInstruction.h:15: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Library/CcExitLib/CcInstruction.c:14: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Library/CcExitLib/CcInstruction.c:91:3: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def264]
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Library/CcExitLib/CcInstruction.c: scope_hint: In function ‘CcDecodeModRm’
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Library/CcExitLib/CcInstruction.c:271:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Library/CcExitLib/CcInstruction.c:91:3: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def265]
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Library/CcExitLib/CcInstruction.c:274:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Library/CcExitLib/CcInstruction.c:91:3: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def266]
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPei.c: scope_hint: In function ‘InternalQemuFwCfgIsAvailable’
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPei.c:148:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘PlatformInfoHob’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def267]
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPei.c: scope_hint: In function ‘InternalQemuFwCfgDmaIsAvailable’
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPei.c:165:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘PlatformInfoHob’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def268]
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.c: scope_hint: In function ‘FvbGetPhysicalAddress’
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.c:189:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘FwhInstance’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def269]
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.c: scope_hint: In function ‘FvbGetLbaAddress’
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.c:305:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘FwhInstance’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def270]
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.c: scope_hint: In function ‘FvbSetVolumeAttributes’
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.c:374:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘FwhInstance’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def271]
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.c: scope_hint: In function ‘FvbProtocolEraseBlocks’
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.c:661:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘FwhInstance’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def272]
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Sec/AmdSev.c: scope_hint: In function ‘SevEsProtocolCheck’
edk2-20240813-build/edk2-b158dad150bf/OvmfPkg/Sec/AmdSev.c:225:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def273]
edk2-20240813-build/edk2-b158dad150bf/SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.c: scope_hint: In function ‘CheckSupportedHashMaskMismatch’
edk2-20240813-build/edk2-b158dad150bf/SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.c:111:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘HashInterfaceHobLast’
Error: GCC_ANALYZER_WARNING (CWE-465): [#def274]
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.h:38: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.c:12: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.c: scope_hint: In function ‘FreeFileHandleList.part.0’
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Include/Library/ShellLib.h:24:8: warning[-Wanalyzer-deref-before-check]: check of ‘*BufferListEntry.Buffer’ for NULL after already dereferencing it
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.c:216:5: note: in expansion of macro ‘SHELL_FREE_NON_NULL’
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Include/Library/ShellLib.h:24:10: note: in definition of macro ‘SHELL_FREE_NON_NULL’
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.c:216:5: note: in expansion of macro ‘SHELL_FREE_NON_NULL’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def275]
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c: scope_hint: In function ‘UpdateOptionalData’
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c:139:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘OriginalData’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Uefi/UefiBaseType.h:16: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Uefi.h:17: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/Build/OvmfX64/DEBUG_GCC5/X64/ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib/DEBUG/AutoGen.h:16: included_from: Included from here.
<command-line>: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Uefi/UefiBaseType.h:161:23: note: in expansion of macro ‘RETURN_ERROR’
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c:133:8: note: in expansion of macro ‘EFI_ERROR’
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c:23: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c:137:5: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def276]
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellDebug1CommandsLib/Dmem.c: scope_hint: In function ‘GetImageExecutionInfo’
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellDebug1CommandsLib/Dmem.c:241:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘Status’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def277]
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellDebug1CommandsLib/Dmem.c: scope_hint: In function ‘ShellCommandRunDmem’
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellDebug1CommandsLib/Dmem.c:578:27: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘RtPropertiesTableAddress’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def278]
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c: scope_hint: In function ‘PrintSfoVolumeInfoTableEntry’
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c:123:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘SysInfo’
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h:33: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c:10: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c:108:5: note: in expansion of macro ‘ASSERT_EFI_ERROR’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def279]
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c: scope_hint: In function ‘HandleVol’
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:103:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘SysInfo’
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h:33: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:10: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:99:3: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def280]
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:114:69: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘SysInfo’
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c:99:3: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def281]
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellNetwork1CommandsLib/Ping.c: scope_hint: In function ‘PingCreateIpInstance’
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellNetwork1CommandsLib/Ping.c:1206:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘EfiSb’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def282]
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellNetwork2CommandsLib/Ping6.c: scope_hint: In function ‘Ping6CreateIpInstance’
edk2-20240813-build/edk2-b158dad150bf/ShellPkg/Library/UefiShellNetwork2CommandsLib/Ping6.c:926:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Ip6Sb’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def283]
edk2-20240813-build/edk2-b158dad150bf/UefiCpuPkg/Library/MpInitLib/AmdSev.c: scope_hint: In function ‘SetSevEsJumpTable’
edk2-20240813-build/edk2-b158dad150bf/UefiCpuPkg/Library/MpInitLib/AmdSev.c:186:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def284]
edk2-20240813-build/edk2-b158dad150bf/UefiCpuPkg/Library/MpInitLib/PeiMpLib.c: scope_hint: In function ‘NotifyOnS3SmmInitDonePpi’
edk2-20240813-build/edk2-b158dad150bf/UefiCpuPkg/Library/MpInitLib/PeiMpLib.c:72:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘CpuMpData’
edk2-20240813-build/edk2-b158dad150bf/MdePkg/Include/Register/Amd/Ghcb.h:20: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/UefiCpuPkg/Library/MpInitLib/MpLib.h:18: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/UefiCpuPkg/Library/MpInitLib/PeiMpLib.c:9: included_from: Included from here.
edk2-20240813-build/edk2-b158dad150bf/UefiCpuPkg/Library/MpInitLib/PeiMpLib.c:110:5: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def285]
edk2-20240813-build/edk2-b158dad150bf/UefiCpuPkg/Library/MpInitLib/PeiMpLib.c: scope_hint: In function ‘NotifyOnEndOfS3Resume’
edk2-20240813-build/edk2-b158dad150bf/UefiCpuPkg/Library/MpInitLib/PeiMpLib.c:474:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘CpuMpData’
edk2-20240813-build/edk2-b158dad150bf/UefiCpuPkg/Library/MpInitLib/PeiMpLib.c:110:5: note: in expansion of macro ‘ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def286]
edk2-20240813-build/edk2-b158dad150bf/UefiCpuPkg/Library/MpInitLib/X64/AmdSev.c: scope_hint: In function ‘SevSnpCreateAP’
edk2-20240813-build/edk2-b158dad150bf/UefiCpuPkg/Library/MpInitLib/X64/AmdSev.c:309:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘GhcbApicIds’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def287]
edk2-20240813-build/edk2-b158dad150bf/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c: scope_hint: In function ‘FindSmramInfo’
edk2-20240813-build/edk2-b158dad150bf/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c:1469:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘CurrentSmramRange’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def288]
edk2-20240813-build/edk2-b158dad150bf/UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c: scope_hint: In function ‘ReclaimPages’
edk2-20240813-build/edk2-b158dad150bf/UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c:603:53: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ReleasePageAddress’
Scan Properties
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-200.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | edk2-20240813-2.fc42 |
store-results-to | /tmp/tmp4tjnjufp/edk2-20240813-2.fc42.tar.xz |
time-created | 2024-11-13 00:46:43 |
time-finished | 2024-11-13 01:44:27 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp4tjnjufp/edk2-20240813-2.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp4tjnjufp/edk2-20240813-2.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |