Bug#710476: an: Aborts with malloc.c assert failure on a particular input

2013-05-31 Thread Paul Martin
On Fri, May 31, 2013 at 05:11:09PM +1000, Mark Triggs wrote: > I noticed I could crash 'an' by providing a particular input string: > > $ an gwelymernans > My C is a little rusty, but it looks like this might be due to the > make_alphabet function in bitfield.c not allocating room for a NULL

Bug#710476: an: Aborts with malloc.c assert failure on a particular input

2013-05-31 Thread Mark Triggs
Paul Martin writes: > On Fri, May 31, 2013 at 05:11:09PM +1000, Mark Triggs wrote: >> I noticed I could crash 'an' by providing a particular input string: >> >> $ an gwelymernans > >> My C is a little rusty, but it looks like this might be due to the >> make_alphabet function in bitfield.c

Bug#710476: an: Aborts with malloc.c assert failure on a particular input

2013-05-31 Thread Mark Triggs
Package: an Version: 1.0-2 Severity: normal Tags: patch Hi there, I noticed I could crash 'an' by providing a particular input string: $ an gwelymernans an: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct ma