grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] grub-core/loader/i386/xen.c: Initialized initrd_ctx so we don't free a random pointer from the stack.
@ 2015-03-27 19:56 Sarah Newman
  2015-03-28  4:15 ` Andrei Borzenkov
  0 siblings, 1 reply; 2+ messages in thread
From: Sarah Newman @ 2015-03-27 19:56 UTC (permalink / raw)
  To: grub-devel; +Cc: Sarah Newman

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)
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] grub-core/loader/i386/xen.c: Initialized initrd_ctx so we don't free a random pointer from the stack.
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Andrei Borzenkov @ 2015-03-28  4:15 UTC (permalink / raw)
  To: Sarah Newman; +Cc: grub-devel

В 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!


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-28  4:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).