public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "gaoliming" <gaoliming@byosoft.com.cn>
To: "'Chen, Christine'" <yuwei.chen@intel.com>,
	"'Feng, Bob C'" <bob.c.feng@intel.com>, <devel@edk2.groups.io>
Subject: 回复: [Patch] [edk2-staging] BaseTools: Add checkpoint for that there is no fv ext_header
Date: Fri, 28 May 2021 11:02:36 +0800	[thread overview]
Message-ID: <000b01d7536d$e9e35750$bdaa05f0$@byosoft.com.cn> (raw)
In-Reply-To: <DM5PR11MB1594ADE6485A62C0E427C00A96239@DM5PR11MB1594.namprd11.prod.outlook.com>


Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>

> -----邮件原件-----
> 发件人: Chen, Christine <yuwei.chen@intel.com>
> 发送时间: 2021年5月27日 13:57
> 收件人: Feng, Bob C <bob.c.feng@intel.com>; devel@edk2.groups.io
> 抄送: Liming Gao <gaoliming@byosoft.com.cn>
> 主题: RE: [Patch] [edk2-staging] BaseTools: Add checkpoint for that there
is
> no fv ext_header
> 
> Reviewed-by: Yuwei Chen<yuwei.chen@intel.com>
> 
> > -----Original Message-----
> > From: Feng, Bob C <bob.c.feng@intel.com>
> > Sent: Tuesday, May 25, 2021 2:20 PM
> > To: devel@edk2.groups.io
> > Cc: Liming Gao <gaoliming@byosoft.com.cn>; Chen, Christine
> > <yuwei.chen@intel.com>
> > Subject: [Patch] [edk2-staging] BaseTools: Add checkpoint for that there
is
> > no fv ext_header
> >
> > FMMT will crash if there is no fv ext_header in a specific FV.
> > This patch is going to add a check point for this case.
> >
> > Signed-off-by: Bob Feng <bob.c.feng@intel.com>
> > Cc: Liming Gao <gaoliming@byosoft.com.cn>
> > Cc: Yuwei Chen <yuwei.chen@intel.com>
> > ---
> >  BaseTools/Source/C/FMMT/FmmtLib.c | 2 ++
> >  1 file changed, 2 insertions(+)
> >
> > diff --git a/BaseTools/Source/C/FMMT/FmmtLib.c
> > b/BaseTools/Source/C/FMMT/FmmtLib.c
> > index fa77ed7317..4f6056edba 100644
> > --- a/BaseTools/Source/C/FMMT/FmmtLib.c
> > +++ b/BaseTools/Source/C/FMMT/FmmtLib.c
> > @@ -4544,16 +4544,18 @@ LibEncapNewFvFile(
> >          if (CurrentEncapData != NULL) {
> >            LocalEncapData = CurrentEncapData;
> >            while (LocalEncapData->Level != ParentLevel) {
> >              LocalEncapData = LocalEncapData->NextNode;
> >            }
> > +          if (LocalEncapData->FvExtHeader !=NULL) {
> >              for (Index = 0; Index <= FvInFd->FfsNumbers; Index++) {
> >                  if
> ((memcmp(&FvInFd->FfsAttuibutes[Index].GuidName,
> > &(LocalEncapData->FvExtHeader->FvName), sizeof(EFI_GUID)) == 0)) {
> >                      SubFvId = Index;
> >                      break;
> >                  }
> >              }
> > +          }
> >          }
> >          //
> >          // Found FFSs from Fv structure.
> >          //
> >          FfsFoundFlag = FALSE;
> > --
> > 2.29.1.windows.1




      reply	other threads:[~2021-05-28  3:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-25  6:20 [Patch] [edk2-staging] BaseTools: Add checkpoint for that there is no fv ext_header Bob Feng
2021-05-27  5:56 ` Yuwei Chen
2021-05-28  3:02   ` gaoliming [this message]

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='000b01d7536d$e9e35750$bdaa05f0$@byosoft.com.cn' \
    --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