From: "Heinrich Schuchardt" <xypron.glpk@gmx.de>
To: Eric Jin <eric.jin@intel.com>,
G Edhaya Chandran <Edhaya.Chandran@arm.com>
Cc: EDK II Development <devel@edk2.groups.io>
Subject: Re: [edk2-test] [PATCH 1/1] uefi-sct/SctPkg: EFI_RNG_PROTOCOL.GetInfo check size != 0
Date: Thu, 30 Jul 2020 07:28:11 +0200 [thread overview]
Message-ID: <98ce9abb-771a-27cf-b56d-08d160c840c2@gmx.de> (raw)
In-Reply-To: <20191228153710.46035-1-xypron.glpk@gmx.de>
Hello Eric, hello Edhaya,
probably due to a maintainer change the patch below was missed out.
Could you, please, review and merge it.
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2438
Best regards
Heinrich
On 12/28/19 4:37 PM, Heinrich Schuchardt wrote:
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2438
>
> The EFI_RNG_PROTOCOL conformance test checks that the size returned by
> GetInfo() is a multiple of 16. This would be fulfilled by size == 0.
>
> The UEFI specification requires that at least one algorithm is implemented.
> So we should check that size is non-zero too.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
> .../RandomNumber/BlackBoxTest/RandomNumberBBTestConformance.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/RandomNumber/BlackBoxTest/RandomNumberBBTestConformance.c b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/RandomNumber/BlackBoxTest/RandomNumberBBTestConformance.c
> index f0a7c030..cd419d68 100644
> --- a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/RandomNumber/BlackBoxTest/RandomNumberBBTestConformance.c
> +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/RandomNumber/BlackBoxTest/RandomNumberBBTestConformance.c
> @@ -169,7 +169,8 @@ BBTestGetInfoConformanceTestCheckpoint1 (
> return Status;
> }
>
> - if (EFI_BUFFER_TOO_SMALL == Status && RNGAlgorithmListSize % sizeof(EFI_RNG_ALGORITHM) == 0) {
> + if (EFI_BUFFER_TOO_SMALL == Status && RNGAlgorithmListSize &&
> + RNGAlgorithmListSize % sizeof(EFI_RNG_ALGORITHM) == 0) {
> AssertionType = EFI_TEST_ASSERTION_PASSED;
> } else {
> AssertionType = EFI_TEST_ASSERTION_FAILED;
>
next prev parent reply other threads:[~2020-07-30 5:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-28 15:37 [edk2-test] [PATCH 1/1] uefi-sct/SctPkg: EFI_RNG_PROTOCOL.GetInfo check size != 0 Heinrich Schuchardt
2020-07-30 5:28 ` Heinrich Schuchardt [this message]
2020-08-04 11:08 ` [edk2-devel] " Samer El-Haj-Mahmoud
2020-08-16 21:40 ` G Edhaya Chandran
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=98ce9abb-771a-27cf-b56d-08d160c840c2@gmx.de \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox