Modified line in DBconnect.c to cast csa2_size to type (size_t), as

magic crashed when the conSrArea array exceeded the size of a 32-bit
int during the antenna rule check.  Should be good for another four
orders of magnitude.
This commit is contained in:
Tim Edwards 2020-03-28 20:11:22 -04:00
parent 2a7e2ab110
commit 70613a3778
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
8.2.204
8.2.205

View File

@ -948,7 +948,7 @@ dbcConnectFunc(tile, cx)
csa2->csa2_size *= 2;
newlist = (conSrArea *)mallocMagic(csa2->csa2_size * sizeof(conSrArea));
newlist = (conSrArea *)mallocMagic((size_t)(csa2->csa2_size) * sizeof(conSrArea));
memcpy((void *)newlist, (void *)csa2->csa2_list,
(size_t)lastsize * sizeof(conSrArea));
freeMagic((char *)csa2->csa2_list);