From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:34826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNUAH-0001wi-Vv for qemu-devel@nongnu.org; Fri, 20 May 2011 14:11:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QNUAH-0007sY-5Z for qemu-devel@nongnu.org; Fri, 20 May 2011 14:11:09 -0400 Received: from mail-yx0-f173.google.com ([209.85.213.173]:61904) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNUAH-0007sM-1D for qemu-devel@nongnu.org; Fri, 20 May 2011 14:11:09 -0400 Received: by yxk8 with SMTP id 8so1628157yxk.4 for ; Fri, 20 May 2011 11:11:08 -0700 (PDT) Message-ID: <4DD6AEB9.6060506@codemonkey.ws> Date: Fri, 20 May 2011 13:11:05 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <20110520180331.GA21837@amd.home.annexia.org> In-Reply-To: <20110520180331.GA21837@amd.home.annexia.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] qemu: json: Fix parsing of integers >= 0x8000000000000000 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Richard W.M. Jones" Cc: qemu-devel@nongnu.org, Luiz Capitulino On 05/20/2011 01:03 PM, Richard W.M. Jones wrote: > > There seem to be a few unsafe uses of strto* functions. This patch > just fixes the one that affects me :-) Sending an integer of this size is not valid JSON. Your patch won't accept negative numbers, correct? JSON only supports int64_t. Regards, Anthony Liguori > > Rich. >