mirror of https://github.com/deadw00d/AROS.git
cast to LONG to prevent overflow causing Exall to try and read 4Gb of data.
This commit is contained in:
parent
87aa4cf0f2
commit
b5a3f4e43b
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue