Bug#452789: xxd segfaults with large values for -c

James Vega jamessan at debian.org
Fri Nov 30 00:11:12 UTC 2007


On Thu, Nov 29, 2007 at 09:19:10PM +0100, Bram Moolenaar wrote:
> 
> James -
> 
> > On Wed, Nov 28, 2007 at 09:19:46AM -0500, James Vega wrote:
> > > On Tue, Nov 27, 2007 at 10:26:31PM +0100, Bram Moolenaar wrote:
> > > > I'm not the maintainer of xxd, but since it's included with Vim I tried
> > > > fixing it anyway.  Please try the patch below and check that it fixes
> > > > the problem for you.
> > > 
> > > That does work. Thanks.
> > 
> > Actually, I was incorrect.  I still see crashes when using values larger
> > than 140 for -c.  The following was from running
> > "xxd -b -c 145 /usr/bin/xxd".
> 
> Hmm, I still underestimated the size of the array needed for the bitwise
> display.  Try this new diff:

Yeah, that one does work for the entire range of valid values.  Thanks.

James
-- 
GPG Key: 1024D/61326D40 2003-09-02 James Vega <jamessan at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20071129/8ab9fb91/attachment.pgp 


More information about the pkg-vim-maintainers mailing list