Received: from [140.186.70.92] (port=40966 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTEmr-0005Yd-Cw for qemu-devel@nongnu.org; Mon, 28 Jun 2010 09:54:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OTEmq-0001hA-4n for qemu-devel@nongnu.org; Mon, 28 Jun 2010 09:54:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42755) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTEmp-0001h5-R9 for qemu-devel@nongnu.org; Mon, 28 Jun 2010 09:54:12 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o5SDsB75018208 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 28 Jun 2010 09:54:11 -0400 From: Markus Armbruster Subject: Re: [Qemu-devel] [PATCH][RESEND] qdev-properties: Fix (u)intXX parsers References: <1276878423-19955-1-git-send-email-kwolf@redhat.com> Date: Mon, 28 Jun 2010 15:54:08 +0200 In-Reply-To: <1276878423-19955-1-git-send-email-kwolf@redhat.com> (Kevin Wolf's message of "Fri, 18 Jun 2010 18:27:03 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: qemu-devel@nongnu.org Kevin Wolf writes: > scanf calls must not use PRI constants, they have probably the wrong size and > corrupt memory. We could replace them by SCN ones, but strtol is simpler than > scanf here anyway. While at it, also fix the parsers to reject garbage after > the number ("4096xyz" was accepted before). > > Signed-off-by: Kevin Wolf Ping... this secures an open deathtrap, please apply.