public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Rebecca Cran" <rebecca@nuviainc.com>
To: Chris Jones <christopher.jones@arm.com>, devel@edk2.groups.io
Cc: ray.ni@intel.com, zhichao.gao@intel.com, Sami.Mujawar@arm.com,
	nd@arm.com
Subject: Re: [PATCH v1 1/1] ShellPkg: Fix incorrect PPTT FlagName dereference
Date: Tue, 14 Dec 2021 07:57:49 -0700	[thread overview]
Message-ID: <b236c151-60e0-2af5-8a19-858a899558d0@nuviainc.com> (raw)
In-Reply-To: <20211214123736.10854-1-christopher.jones@arm.com>

Reviewed-by: Rebecca Cran <rebecca@nuviainc.com>


Thanks, I'm now seeing:

ERROR: On Arm based systems, all cache properties must be provided in 
the cache
type structure. Missing 'Write Policy Valid' flag.


-- 

Rebecca Cran


On 12/14/21 5:37 AM, Chris Jones wrote:
> Bugzilla: 3770 (https://bugzilla.tianocore.org/show_bug.cgi?id=3770)
>
> The PPTT parser in AcpiView incorrectly dereferences a pointer to
> FlagName when trying to log an error with the PPTT cache flags, which
> can lead to random crashes and other errors.
>
> Also fix some spacing in the error message to ensure the message is
> printed cleanly.
>
> Signed-off-by: Chris Jones <christopher.jones@arm.com>
> ---
>   ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.c | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.c b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.c
> index 8d52bb5e4811298ddc45cdaef41150f6ee7819af..53777644580e779adab4e8047ea279e1c0de14a3 100644
> --- a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.c
> +++ b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.c
> @@ -40,9 +40,9 @@ LogCacheFlagError (
>     IncrementErrorCount ();
>     Print (
>       L"\nERROR: On Arm based systems, all cache properties must be"
> -    L"provided in the cache type structure."
> -    L"Missing '%s' flag.",
> -    *FlagName
> +    L" provided in the cache type structure."
> +    L" Missing '%s' flag.",
> +    FlagName
>       );
>   }
>   

  reply	other threads:[~2021-12-14 14:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-14 12:37 [PATCH v1 1/1] ShellPkg: Fix incorrect PPTT FlagName dereference Chris Jones
2021-12-14 14:57 ` Rebecca Cran [this message]
2021-12-14 16:08 ` Sami Mujawar
2022-01-31 23:32   ` Rebecca Cran
2022-02-07  1:43     ` 回复: [edk2-devel] " gaoliming

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=b236c151-60e0-2af5-8a19-858a899558d0@nuviainc.com \
    --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