From: Ian Campbell Subject: Re: [PATCH] libxl: fix the bug which will cause heap to break down Date: Thu, 3 Jul 2014 11:03:36 +0100 Message-ID: <1404381816.14865.39.camel@kazak.uk.xensource.com> References: <1404089317-28063-1-git-send-email-liangx.z.li@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X2dsK-0008UZ-Ma for xen-devel@lists.xenproject.org; Thu, 03 Jul 2014 10:04:20 +0000 In-Reply-To: <1404089317-28063-1-git-send-email-liangx.z.li@intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Liliang Cc: xen-devel@lists.xenproject.org, xen-devel@lists.xen.org, ian.jackson@eu.citrix.com, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On Mon, 2014-06-30 at 08:48 +0800, Liliang wrote: > From: Li Liang > > If the JSON message contains more bytes than QMP_RECEIVE_BUFFER_SIZE, > this bug will break down the heap, that leads to core dump. One more > byte should be allocated to contain the appended null character. > > Signed-off-by: Li Liang Acked + applied. Thanks.