grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
From: Andrei Borzenkov <arvidjaar@gmail.com>
To: Sarah Newman <srn@prgmr.com>
Cc: grub-devel@gnu.org
Subject: Re: [PATCH] grub-core/loader/i386/xen.c: Initialized initrd_ctx so we don't free a random pointer from the stack.
Date: Sat, 28 Mar 2015 07:15:21 +0300	[thread overview]
Message-ID: <20150328071521.34c77c19@opensuse.site> (raw)
In-Reply-To: <1427486203-8265-1-git-send-email-srn@prgmr.com>

В Fri, 27 Mar 2015 12:56:43 -0700
Sarah Newman <srn@prgmr.com> пишет:

> Signed-off-by: Sarah Newman <srn@prgmr.com>
> ---
>  grub-core/loader/i386/xen.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/grub-core/loader/i386/xen.c b/grub-core/loader/i386/xen.c
> index c16b4b2..c4d9689 100644
> --- a/grub-core/loader/i386/xen.c
> +++ b/grub-core/loader/i386/xen.c
> @@ -521,7 +521,7 @@ grub_cmd_initrd (grub_command_t cmd __attribute__ ((unused)),
>  {
>    grub_size_t size = 0;
>    grub_err_t err;
> -  struct grub_linux_initrd_context initrd_ctx;
> +  struct grub_linux_initrd_context initrd_ctx = { 0, 0, 0 };
>    grub_relocator_chunk_t ch;
>  
>    if (argc == 0)

Applied. Thanks!


      reply	other threads:[~2015-03-28  4:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-27 19:56 [PATCH] grub-core/loader/i386/xen.c: Initialized initrd_ctx so we don't free a random pointer from the stack Sarah Newman
2015-03-28  4:15 ` Andrei Borzenkov [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-all 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=20150328071521.34c77c19@opensuse.site \
    --to=arvidjaar@gmail.com \
    --cc=grub-devel@gnu.org \
    --cc=srn@prgmr.com \
    /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;
as well as URLs for NNTP newsgroup(s).