* [PATCH edk2-test 1/1] uefi-sct/SctPkg: illegal dereference in CheckEbcProtocol()
@ 2020-11-11 7:55 Heinrich Schuchardt
2020-11-11 14:02 ` Samer El-Haj-Mahmoud
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Heinrich Schuchardt @ 2020-11-11 7:55 UTC (permalink / raw)
To: EDK II Development
Cc: Eric Jin, G Edhaya Chandran, Samer El-Haj-Mahmoud, gaoliming,
Heinrich Schuchardt
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3065
If LocateProtocol() has failed, variable Ebc is not valid and we may not
dereference it.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
.../BlackBoxTest/EfiCompliantBBTestPlatform_uefi.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/EfiCompliant/BlackBoxTest/EfiCompliantBBTestPlatform_uefi.c b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/EfiCompliant/BlackBoxTest/EfiCompliantBBTestPlatform_uefi.c
index be06d139d59e..052f45b71599 100644
--- a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/EfiCompliant/BlackBoxTest/EfiCompliantBBTestPlatform_uefi.c
+++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/EfiCompliant/BlackBoxTest/EfiCompliantBBTestPlatform_uefi.c
@@ -3162,12 +3162,6 @@ CheckEbcProtocol (
);
if (!EFI_ERROR (Status) && (SctStriCmp (String, L"yes") == 0)) {
AssertionType = EFI_TEST_ASSERTION_FAILED;
- if (!GenTestConfigTitle (IniFile, &AssertionType, L"EBCSupport")) {
- GenTestConfigContent (L"Ebc->CreateThunk", Ebc->CreateThunk != NULL);
- GenTestConfigContent (L"Ebc->UnloadImage", Ebc->UnloadImage != NULL);
- GenTestConfigContent (L"Ebc->RegisterICacheFlush", Ebc->RegisterICacheFlush != NULL);
- GenTestConfigContent (L"Ebc->GetVersion ", Ebc->GetVersion != NULL);
- }
}
}
--
2.28.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH edk2-test 1/1] uefi-sct/SctPkg: illegal dereference in CheckEbcProtocol()
2020-11-11 7:55 [PATCH edk2-test 1/1] uefi-sct/SctPkg: illegal dereference in CheckEbcProtocol() Heinrich Schuchardt
@ 2020-11-11 14:02 ` Samer El-Haj-Mahmoud
2020-11-23 10:26 ` [edk2-devel] " Grant Likely
2020-11-24 15:39 ` G Edhaya Chandran
2 siblings, 0 replies; 4+ messages in thread
From: Samer El-Haj-Mahmoud @ 2020-11-11 14:02 UTC (permalink / raw)
To: Heinrich Schuchardt, EDK II Development
Cc: Eric Jin, G Edhaya Chandran, gaoliming@byosoft.com.cn,
Samer El-Haj-Mahmoud
Reviewed-by: Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>
> -----Original Message-----
> From: Heinrich Schuchardt <xypron.glpk@gmx.de>
> Sent: Wednesday, November 11, 2020 2:56 AM
> To: EDK II Development <devel@edk2.groups.io>
> Cc: Eric Jin <eric.jin@intel.com>; G Edhaya Chandran
> <Edhaya.Chandran@arm.com>; Samer El-Haj-Mahmoud <Samer.El-Haj-
> Mahmoud@arm.com>; gaoliming@byosoft.com.cn; Heinrich Schuchardt
> <xypron.glpk@gmx.de>
> Subject: [PATCH edk2-test 1/1] uefi-sct/SctPkg: illegal dereference in
> CheckEbcProtocol()
>
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3065
>
> If LocateProtocol() has failed, variable Ebc is not valid and we may not
> dereference it.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
> .../BlackBoxTest/EfiCompliantBBTestPlatform_uefi.c | 6 ------
> 1 file changed, 6 deletions(-)
>
> diff --git a/uefi-
> sct/SctPkg/TestCase/UEFI/EFI/Generic/EfiCompliant/BlackBoxTest/EfiCompli
> antBBTestPlatform_uefi.c b/uefi-
> sct/SctPkg/TestCase/UEFI/EFI/Generic/EfiCompliant/BlackBoxTest/EfiCompli
> antBBTestPlatform_uefi.c
> index be06d139d59e..052f45b71599 100644
> --- a/uefi-
> sct/SctPkg/TestCase/UEFI/EFI/Generic/EfiCompliant/BlackBoxTest/EfiCompli
> antBBTestPlatform_uefi.c
> +++ b/uefi-
> sct/SctPkg/TestCase/UEFI/EFI/Generic/EfiCompliant/BlackBoxTest/EfiCompli
> antBBTestPlatform_uefi.c
> @@ -3162,12 +3162,6 @@ CheckEbcProtocol (
> );
>
> if (!EFI_ERROR (Status) && (SctStriCmp (String, L"yes") == 0)) {
>
> AssertionType = EFI_TEST_ASSERTION_FAILED;
>
> - if (!GenTestConfigTitle (IniFile, &AssertionType, L"EBCSupport")) {
>
> - GenTestConfigContent (L"Ebc->CreateThunk", Ebc->CreateThunk !=
> NULL);
>
> - GenTestConfigContent (L"Ebc->UnloadImage", Ebc->UnloadImage !=
> NULL);
>
> - GenTestConfigContent (L"Ebc->RegisterICacheFlush", Ebc-
> >RegisterICacheFlush != NULL);
>
> - GenTestConfigContent (L"Ebc->GetVersion ", Ebc->GetVersion !=
> NULL);
>
> - }
>
> }
>
> }
>
>
>
> --
> 2.28.0
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [edk2-devel] [PATCH edk2-test 1/1] uefi-sct/SctPkg: illegal dereference in CheckEbcProtocol()
2020-11-11 7:55 [PATCH edk2-test 1/1] uefi-sct/SctPkg: illegal dereference in CheckEbcProtocol() Heinrich Schuchardt
2020-11-11 14:02 ` Samer El-Haj-Mahmoud
@ 2020-11-23 10:26 ` Grant Likely
2020-11-24 15:39 ` G Edhaya Chandran
2 siblings, 0 replies; 4+ messages in thread
From: Grant Likely @ 2020-11-23 10:26 UTC (permalink / raw)
To: Heinrich Schuchardt, devel
[-- Attachment #1: Type: text/plain, Size: 50 bytes --]
Reviewed-by: Grant Likely <grant.likely@arm.com>
[-- Attachment #2: Type: text/html, Size: 56 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [edk2-devel] [PATCH edk2-test 1/1] uefi-sct/SctPkg: illegal dereference in CheckEbcProtocol()
2020-11-11 7:55 [PATCH edk2-test 1/1] uefi-sct/SctPkg: illegal dereference in CheckEbcProtocol() Heinrich Schuchardt
2020-11-11 14:02 ` Samer El-Haj-Mahmoud
2020-11-23 10:26 ` [edk2-devel] " Grant Likely
@ 2020-11-24 15:39 ` G Edhaya Chandran
2 siblings, 0 replies; 4+ messages in thread
From: G Edhaya Chandran @ 2020-11-24 15:39 UTC (permalink / raw)
To: Heinrich Schuchardt, devel
[-- Attachment #1: Type: text/plain, Size: 177 bytes --]
Reviewed-by: G Edhaya Chandran<edhaya.chandran@arm.com>
Upstreamed by the commit id: https://github.com/tianocore/edk2-test/commit/4b5dde3ed1e3300d61b95a2cc7b4a63594fc586e
[-- Attachment #2: Type: text/html, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-11-24 15:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-11 7:55 [PATCH edk2-test 1/1] uefi-sct/SctPkg: illegal dereference in CheckEbcProtocol() Heinrich Schuchardt
2020-11-11 14:02 ` Samer El-Haj-Mahmoud
2020-11-23 10:26 ` [edk2-devel] " Grant Likely
2020-11-24 15:39 ` G Edhaya Chandran
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox