ACOTSP icon indicating copy to clipboard operation
ACOTSP copied to clipboard

Out of bounds write.

Open stolk opened this issue 5 years ago • 0 comments

A long int array is allocated as ints, not long ints, causing out of bound writes.

From ls.c

   long int  *r;

   r = malloc(n * sizeof(int));

   for ( i = 0 ; i < n; i++)
     r[i] = i;

stolk avatar Nov 22 '20 02:11 stolk