From: Ian Jackson Subject: Re: [PATCH] tools: libxl: do not overrun input buffer in libxl__parse_mac Date: Thu, 6 Nov 2014 16:35:42 +0000 Message-ID: <21595.41822.840885.58412@mariner.uk.xensource.com> References: <1415282383-26594-1-git-send-email-ian.campbell@citrix.com> <20141106145539.GB2580@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20141106145539.GB2580@zion.uk.xensource.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: Wei Liu Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Wei Liu writes ("Re: [PATCH] tools: libxl: do not overrun input buffer in libx\ l__parse_mac"): > > This is because on the final iteration the tok += 3 skips over the termina\ ting > > NUL to the next byte, and then *tok reads it. Fix this by using endptr as \ the > > iterator. > > > > Signed-off-by: Ian Campbell > > Acked-by: Wei Liu Committed-by: Ian Jackson > This is a candidate for backporting. Queued. Ian, I don't suppose you could persuade your text editor to wrap your commit messages a bit narrower ? By the time they've been quoted a couple of times they look to me like what you see above. Thanks, Ian.