From: "Christoph Egger" <Christoph.Egger@amd.com>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: xen-devel@lists.xensource.com, Pat Campbell <plc@novell.com>
Subject: Re: [PATCH][ioemu] strip tap subtype prefix from image name (restyled)
Date: Thu, 31 Jan 2008 09:36:30 +0100 [thread overview]
Message-ID: <200801310936.30233.Christoph.Egger@amd.com> (raw)
In-Reply-To: <C3C63DEF.1B9FD%Keir.Fraser@cl.cam.ac.uk>
On Wednesday 30 January 2008 15:45:03 Keir Fraser wrote:
> On 30/1/08 14:38, "Christoph Egger" <Christoph.Egger@amd.com> wrote:
> >> out:
> >> + free(drv);
> >> + free(buf);
> >> + free(bpath);
> >> free(image);
> >> free(vec);
> >
> > That doesn't work. If strdup() fails, then drv and buf are NULL here.
> > Analagous counts for the other failures.
> > You need to check for != NULL before calling free().
>
> free() is defined to accept a NULL argument.
>
> -- Keir
That's right. But that is the way to get in double-free() security holes.
Christoph
--
AMD Saxony, Dresden, Germany
Operating System Research Center
Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
Dr. Hans-R. Deppe, Thomas McCoy
next prev parent reply other threads:[~2008-01-31 8:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-30 14:14 [PATCH][ioemu] strip tap subtype prefix from image name (restyled) Pat Campbell
2008-01-30 14:38 ` Christoph Egger
2008-01-30 14:45 ` Keir Fraser
2008-01-31 8:36 ` Christoph Egger [this message]
2008-01-30 16:24 ` Pat Campbell
2008-01-30 16:31 ` Keir Fraser
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=200801310936.30233.Christoph.Egger@amd.com \
--to=christoph.egger@amd.com \
--cc=Keir.Fraser@cl.cam.ac.uk \
--cc=plc@novell.com \
--cc=xen-devel@lists.xensource.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.