cast to LONG to prevent overflow causing Exall to try and read 4Gb of data.

This commit is contained in:
Kalamatee 2023-05-02 01:38:00 +01:00 committed by deadwood
parent 87aa4cf0f2
commit b5a3f4e43b
1 changed files with 1 additions and 1 deletions

View File

@ -529,7 +529,7 @@ static int sfsExamineAll(struct ExAllControl *eac,
// _DEBUG(("ACTION_EXAMINE_ALL: *eadsize = %ld, *stringsize = %ld, *spaceleft = %ld, packet->dp_Arg4 = %ld\n",*eadsize,*stringsize,*spaceleft,packet->dp_Arg4));
if(*spaceleft < *eadsize + *stringsize) {
if(*spaceleft < (LONG)(*eadsize + *stringsize)) {
return 0;
}