From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36551) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yv0Yb-0000g8-8u for qemu-devel@nongnu.org; Wed, 20 May 2015 05:44:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yv0YW-0001Pm-9Z for qemu-devel@nongnu.org; Wed, 20 May 2015 05:44:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yv0YW-0001Pi-3z for qemu-devel@nongnu.org; Wed, 20 May 2015 05:44:52 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 9F90C3C224 for ; Wed, 20 May 2015 09:44:51 +0000 (UTC) Date: Wed, 20 May 2015 15:14:32 +0530 From: Amit Shah Message-ID: <20150520094432.GK15452@grmbl.mre> References: <1432114625-23599-1-git-send-email-dgilbert@redhat.com> <1432114625-23599-2-git-send-email-dgilbert@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1432114625-23599-2-git-send-email-dgilbert@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 1/1] Add qemu_get_counted_string to read a string prefixed by a count byte List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert (git)" Cc: qemu-devel@nongnu.org, quintela@redhat.com On (Wed) 20 May 2015 [10:37:05], Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > and use it in loadvm_state and ram_load. > > Where ever it's used, check the return and error if it failed. > > Minor: ram_load was using a 257 byte array for its string, the > maximum length is 255 bytes + 0 terminator, so fix to 256 > > Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Amit Shah Amit