Received: from eggs.gnu.org ([2001:4830:134:3::10]:58227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z05Dz-0003fI-3D for qemu-devel@nongnu.org; Wed, 03 Jun 2015 05:44:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z05Du-0007Lr-6F for qemu-devel@nongnu.org; Wed, 03 Jun 2015 05:44:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44659) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z05Dt-0007LC-HB for qemu-devel@nongnu.org; Wed, 03 Jun 2015 05:44:34 -0400 From: Juan Quintela In-Reply-To: <1432211056-6265-2-git-send-email-dgilbert@redhat.com> (David Alan Gilbert's message of "Thu, 21 May 2015 13:24:11 +0100") References: <1432211056-6265-1-git-send-email-dgilbert@redhat.com> <1432211056-6265-2-git-send-email-dgilbert@redhat.com> Date: Wed, 03 Jun 2015 11:44:30 +0200 Message-ID: <878uc1rurl.fsf@neno.neno> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 1/6] Add qemu_get_counted_string to read a string prefixed by a count byte Reply-To: quintela@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert (git)" Cc: amit.shah@redhat.com, qemu-devel@nongnu.org, david@gibson.dropbear.id.au "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 Reviewed-by: Juan Quintela