warn about corrupt archive

This commit is contained in:
Richard Frith-Macdonald 2018-01-30 07:54:23 +00:00
parent 65ac0eca15
commit 22d7d2428a

View file

@ -736,6 +736,10 @@ static unsigned encodingVersion;
(*desImp)(src, desSel, &big, @encode(int64_t), &cursor, nil);
break;
}
default:
[NSException raise: NSGenericException
format: @"invalid size in archive"];
}
/*
* Now we copy from the big value to the destination location.
@ -810,6 +814,10 @@ static unsigned encodingVersion;
(*desImp)(src, desSel, &big, @encode(uint64_t), &cursor, nil);
break;
}
default:
[NSException raise: NSGenericException
format: @"invalid size in archive"];
}
/*
* Now we copy from the big value to the destination location.