public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Pedro Falcato" <pedro.falcato@gmail.com>
To: Savva Mitrofanov <savvamtr@gmail.com>
Cc: devel@edk2.groups.io, "Marvin Häuser" <mhaeuser@posteo.de>,
	"Vitaly Cheptsov" <vit9696@protonmail.com>
Subject: Re: [edk2-platforms][PATCH v4 1/1] Ext4Pkg: Fixes double-free in Ext4ReadSymlink
Date: Fri, 17 Feb 2023 17:34:26 +0000	[thread overview]
Message-ID: <CAKbZUD2TBQNNH5KuM5gQ0ec1idNVzapH3MjOjhGq6o7NbQEkkw@mail.gmail.com> (raw)
In-Reply-To: <20230217085647.70781-1-savvamtr@gmail.com>

On Fri, Feb 17, 2023 at 8:56 AM Savva Mitrofanov <savvamtr@gmail.com> wrote:
>
> The SymlinkTmp was deallocated unconditionally, so we shouldn't free it
> again on EFI_ERROR
>
> Cc: Marvin Häuser <mhaeuser@posteo.de>
> Cc: Pedro Falcato <pedro.falcato@gmail.com>
> Cc: Vitaly Cheptsov <vit9696@protonmail.com>
> Fixes: e81432fbacb7 ("Ext4Pkg: Add symbolic links support")
> Signed-off-by: Savva Mitrofanov <savvamtr@gmail.com>
> ---
>  Features/Ext4Pkg/Ext4Dxe/Symlink.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/Features/Ext4Pkg/Ext4Dxe/Symlink.c b/Features/Ext4Pkg/Ext4Dxe/Symlink.c
> index 1189a99ded2b..d80cb9fff92e 100644
> --- a/Features/Ext4Pkg/Ext4Dxe/Symlink.c
> +++ b/Features/Ext4Pkg/Ext4Dxe/Symlink.c
> @@ -243,7 +243,6 @@ Ext4ReadSymlink (
>        Status
>        ));
>      FreePool (Symlink16Tmp);
> -    FreePool (SymlinkTmp);
>      return Status;
>    }
>
> --
> 2.39.1
>

Thank you!

Reviewed-by: Pedro Falcato <pedro.falcato@gmail.com>

-- 
Pedro

  parent reply	other threads:[~2023-02-17 17:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-17  8:56 [edk2-platforms][PATCH v4 1/1] Ext4Pkg: Fixes double-free in Ext4ReadSymlink Savva Mitrofanov
2023-02-17  9:09 ` Marvin Häuser
2023-02-17 17:34 ` Pedro Falcato [this message]
2023-02-17 19:06   ` Pedro Falcato

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=CAKbZUD2TBQNNH5KuM5gQ0ec1idNVzapH3MjOjhGq6o7NbQEkkw@mail.gmail.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