Re: Signed indexing in bc(1)

2015-11-16 Thread Otto Moerbeek
On Mon, Nov 16, 2015 at 12:45:08PM -0500, Michael McConville wrote: > I may be missing something obvious here, but it seems that the below > indices should be unsigned. str_table has UCHAR_MAX elements, so it > expects to be indexed by chars > 127. > > I'm currently digging through a bunch of seg

Signed indexing in bc(1)

2015-11-16 Thread Michael McConville
I may be missing something obvious here, but it seems that the below indices should be unsigned. str_table has UCHAR_MAX elements, so it expects to be indexed by chars > 127. I'm currently digging through a bunch of segfaults found by American Fuzzy Lop (afl). I don't think I've come across this i