From 2b106b5f3bf3cac7da423671bcb716a8ef9cfb8d Mon Sep 17 00:00:00 2001 From: Tamas K Lengyel Date: Fri, 12 Apr 2024 08:54:26 -0400 Subject: [PATCH 1/2] Add oss-fuzz TestBmpSupportLib.options --- oss-fuzz/TestBmpSupportLib.options | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 oss-fuzz/TestBmpSupportLib.options diff --git a/oss-fuzz/TestBmpSupportLib.options b/oss-fuzz/TestBmpSupportLib.options new file mode 100644 index 0000000..0b4f66a --- /dev/null +++ b/oss-fuzz/TestBmpSupportLib.options @@ -0,0 +1,2 @@ +[libfuzzer] +rss_limit_mb=6000 From fed8fa6a79c2bc51b9b600b3413644b7573216c0 Mon Sep 17 00:00:00 2001 From: Tamas K Lengyel Date: Fri, 12 Apr 2024 08:57:19 -0400 Subject: [PATCH 2/2] Copy options in build.sh --- oss-fuzz/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oss-fuzz/build.sh b/oss-fuzz/build.sh index f2febbd..df6266c 100755 --- a/oss-fuzz/build.sh +++ b/oss-fuzz/build.sh @@ -34,7 +34,7 @@ python $SRC/hbfa-fl/HBFA/UefiHostTestTools/HBFAEnvSetup.py cp $SRC/hbfa-fl/HBFA/UefiHostFuzzTestPkg/Conf/build_rule.txt $SRC/edk2/Conf/build_rule.txt cp $SRC/hbfa-fl/HBFA/UefiHostFuzzTestPkg/Conf/tools_def.txt $SRC/edk2/Conf/tools_def.txt -cp $SRC/*.options $OUT +cp $SRC/hbfa-fl/oss-fuzz/*.options $OUT build_fuzzer "TestBmpSupportLib" \ "$SRC/hbfa-fl/HBFA/UefiHostFuzzTestCasePkg/TestCase/MdeModulePkg/Library/BaseBmpSupportLib/TestBmpSupportLib.inf" \ @@ -78,4 +78,4 @@ build_fuzzer "TestVirtioBlk" \ "$SRC/hbfa-fl/HBFA/UefiHostFuzzTestCasePkg/TestCase/OvmfPkg/VirtioBlkDxe/TestVirtioBlk.inf" build_fuzzer "TestVirtioPciDevice" \ - "$SRC/hbfa-fl/HBFA/UefiHostFuzzTestCasePkg/TestCase/OvmfPkg/VirtioPciDeviceDxe/TestVirtioPciDevice.inf" \ No newline at end of file + "$SRC/hbfa-fl/HBFA/UefiHostFuzzTestCasePkg/TestCase/OvmfPkg/VirtioPciDeviceDxe/TestVirtioPciDevice.inf"