grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Add missing va_end() to xasprintf() in grub-emu
@ 2016-08-13  8:54 Pete Batard
  2016-08-13 13:36 ` Andrei Borzenkov
  0 siblings, 1 reply; 2+ messages in thread
From: Pete Batard @ 2016-08-13  8:54 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 109 bytes --]

Hi,

I believe there's an unbalanced va_start/va_end pair in grub-emu.
This patch fixes it.

Regards,

/Pete

[-- Attachment #2: Add-missing-va_end-to-xasprintf-in-grub-emu.patch --]
[-- Type: text/plain, Size: 665 bytes --]

From 0ed65abd009b79955c8578bfb40cc33e51e463ae Mon Sep 17 00:00:00 2001
From: Pete Batard <pete@akeo.ie>
Date: Sat, 13 Aug 2016 10:51:34 +0200
Subject: [PATCH] Add missing va_end() to xasprintf() in grub-emu.

---
 grub-core/kern/emu/misc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/grub-core/kern/emu/misc.c b/grub-core/kern/emu/misc.c
index d361feb..7666133 100644
--- a/grub-core/kern/emu/misc.c
+++ b/grub-core/kern/emu/misc.c
@@ -127,6 +127,7 @@ xasprintf (const char *fmt, ...)
   
   va_start (ap, fmt);
   result = grub_xvasprintf (fmt, ap);
+  va_end (ap);
   if (!result)
     grub_util_error ("%s", _("out of memory"));
   
-- 
2.8.1.windows.1


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

end of thread, other threads:[~2016-08-13 13:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-13  8:54 [PATCH] Add missing va_end() to xasprintf() in grub-emu Pete Batard
2016-08-13 13:36 ` 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).