Received: from eggs.gnu.org ([2001:4830:134:3::10]:47902) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmIIG-0004n0-OW for qemu-devel@nongnu.org; Wed, 14 Oct 2015 05:24:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZmIID-00039l-LO for qemu-devel@nongnu.org; Wed, 14 Oct 2015 05:24:20 -0400 Date: Wed, 14 Oct 2015 14:54:08 +0530 (IST) From: P J P In-Reply-To: <20151014080902.GA4281@noname.str.redhat.com> Message-ID: References: <1444721930-5121-1-git-send-email-kwolf@redhat.com> <20151014080902.GA4281@noname.str.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Re: [Qemu-devel] [PATCH] gdbstub: Fix buffer overflows in gdb_handle_packet() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org, qemu-stable@nongnu.org +-- On Wed, 14 Oct 2015, Kevin Wolf wrote --+ | > Ie host gdb(1) user would need to | > supply len/2 value to read/write 'len' bytes. | | That's just how the gdb protocol works. Binary data is transferred as a | string of hex digits, with every byte being represented by two digits. | The requested length is in bytes of binary data, so the length of the | actually transferred data on the wire is indeed double that length. I see, got it. Thank you. -- - P J P 47AF CE69 3A90 54AA 9045 1053 DD13 3D32 FE5B 041F