Segmentation fault when indexing arrays one step beyond bounds using constant
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=6697
Reported by Stefan Wallström stewa@roxen.com
kardemumma:~ stewa? pike
Pike v7.9 release 5 running Hilfe v3.5 (Incremental Pike Frontend)
> ({ 1,2,3})[3];
Segmentation fault: 11
> array a = allocate(50);
> a[50];
Segmentation fault: 11
> array a = allocate(50);
> a[51];
Index 51 is out of array range -50..49.
HilfeInput:1: HilfeInput()->___HilfeWrapper()
> array a = allocate(50);
> a[sizeof(a)];
Index 50 is out of array range -50..49.
HilfeInput:1: HilfeInput()->___HilfeWrapper()