-
Notifications
You must be signed in to change notification settings - Fork 162
Description
Is there an existing issue for this?
- I have searched existing issues
Current Behavior
AddressSanitizer: stack-buffer-overflow on address 0x7fc8cda02078 at pc 0x00000045929e bp 0x7ffd577b2390 sp 0x7ffd577b2380
READ of size 8 at 0x7fc8cda02078 thread T0
0x45929d in BasePrintLibSPrintMarker mu_basecore/MdePkg/Library/BasePrintLib/PrintLibInternal.c:1037
0x45ad55 in UnicodeVSPrint mu_basecore/MdePkg/Library/BasePrintLib/PrintLib.c:73
0x403550 in HostTestRecordAssertion mu_basecore/MdeModulePkg/Universal/Variable/RuntimeDxe/RuntimeDxeUnitTest/SctShim.c:221
0x40c4a1 in GetVariableConfTestSub1 mu_basecore/MdeModulePkg/Universal/Variable/RuntimeDxe/RuntimeDxeUnitTest/BlackBoxTest/VariableServicesBBTestConformance.c:531
0x40b23f in GetVariableConfTest mu_basecore/MdeModulePkg/Universal/Variable/RuntimeDxe/RuntimeDxeUnitTest/BlackBoxTest/VariableServicesBBTestConformance.c:294
0x40519e in GetVariableConfTestWrapper mu_basecore/MdeModulePkg/Universal/Variable/RuntimeDxe/RuntimeDxeUnitTest/VariableRuntimeDxeUnitTest.c:390
0x4b0299 in CmockaUnitTestFunctionRunner mu_basecore/UnitTestFrameworkPkg/Library/UnitTestLib/RunTestsCmocka.c:56
0x49835a in cmocka_run_one_test_or_fixture mu_basecore/UnitTestFrameworkPkg/Library/CmockaLib/cmocka/src/cmocka.c:2890
Expected Behavior
Unit Test should be able to execute under linux using gcc
Steps To Reproduce
Remove work around in MdeModulePkg/Test/MdeModulePkgHostTest.dsc (!if "MSFT" in $(FAMILY))
stuart_ci_build -c .pytool/CISettings.py -t X64 -a NOOPT TOOL_CHAIN_TAG=GCC -p MdeModulePkg
Build Environment
- OS(s): Ubuntu
- Tool Chain(s): GCC
- Targets Impacted: NOOPTVersion Information
dev/202502
Urgency
Low
Are you going to fix this?
I will fix it
Do you need maintainer feedback?
No maintainer feedback needed
Anything else?
No response