AmendHub

Download:

jcs

/

amend

/

amendments

/

155

diffreg: Fix short overflow in newcand


jcs made amendment 155 about 1 year ago
--- diffreg.c Mon Mar 25 16:04:57 2024 +++ diffreg.c Mon Nov 4 08:40:02 2024 @@ -593,7 +593,7 @@ newcand(int x, int y, int pred) struct cand *q; if (clen == clistlen) { - clistlen = clistlen * 11 / 10; + clistlen = (long)clistlen * 11 / 10; clist = xreallocarray(clist, clistlen, sizeof(*clist)); } q = clist + clen;