From: Robert Reif <reif@earthlink.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] fix possible NULL pointer use in vl.c
Date: Wed, 02 Jan 2008 21:23:35 -0500 [thread overview]
Message-ID: <477C4727.9090305@earthlink.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 1 bytes --]
[-- Attachment #2: vl.c.diff.txt --]
[-- Type: text/plain, Size: 331 bytes --]
diff -p -u -r1.392 vl.c
--- vl.c 28 Dec 2007 20:59:23 -0000 1.392
+++ vl.c 3 Jan 2008 02:20:42 -0000
@@ -985,6 +985,8 @@ QEMUTimer *qemu_new_timer(QEMUClock *clo
QEMUTimer *ts;
ts = qemu_mallocz(sizeof(QEMUTimer));
+ if (!ts)
+ return NULL;
ts->clock = clock;
ts->cb = cb;
ts->opaque = opaque;
reply other threads:[~2008-01-03 2:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=477C4727.9090305@earthlink.net \
--to=reif@earthlink.net \
--cc=qemu-devel@nongnu.org \
/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).