From: Tim Deegan Subject: Re: [PATCH] pygrub: fix IndexError when editing grub lines Date: Thu, 9 Nov 2006 14:26:21 +0000 Message-ID: <20061109142621.GA25883@york.uk.xensource.com> References: <20061107203058.GX12095@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Return-path: Content-Disposition: inline In-Reply-To: <20061107203058.GX12095@us.ibm.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ryan Harper Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org At 14:30 -0600 on 07 Nov (1162909858), Ryan Harper wrote: > pygrub will attempt to pop out-of-range values from a list if one sets > the cursor past the end of the last character and hits backspace while > in edit mode. > > The attached patch fixes the stack trace below by not allowing the > cursor to move beyond the end of the line and also checks that the > current position is within the range of the line before popping. > > Please apply. Applied, thank you (plus a few other bounds checks). Cheers, Tim.