From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JAFkH-0007q2-2C for qemu-devel@nongnu.org; Wed, 02 Jan 2008 21:23:45 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JAFkC-0007pZ-Kr for qemu-devel@nongnu.org; Wed, 02 Jan 2008 21:23:44 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JAFkC-0007pW-EK for qemu-devel@nongnu.org; Wed, 02 Jan 2008 21:23:40 -0500 Received: from pop-sarus.atl.sa.earthlink.net ([207.69.195.72]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JAFkC-0004vw-AI for qemu-devel@nongnu.org; Wed, 02 Jan 2008 21:23:40 -0500 Received: from user-142h2k8.cable.mindspring.com ([72.40.138.136] helo=earthlink.net) by pop-sarus.atl.sa.earthlink.net with esmtp (Exim 3.36 #1) id 1JAFk7-00041j-00 for qemu-devel@nongnu.org; Wed, 02 Jan 2008 21:23:35 -0500 Message-ID: <477C4727.9090305@earthlink.net> Date: Wed, 02 Jan 2008 21:23:35 -0500 From: Robert Reif MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090404090700010502000504" Subject: [Qemu-devel] [PATCH] fix possible NULL pointer use in vl.c Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is a multi-part message in MIME format. --------------090404090700010502000504 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit --------------090404090700010502000504 Content-Type: text/plain; name="vl.c.diff.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="vl.c.diff.txt" 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; --------------090404090700010502000504--