done before the inflateAndSkip.
If I understood you right we should even try to avoid inflating a delta block whose inflated size exceeds the maxObjectSizeLimit.

Since we are also adding the same check in OBJ_REF_DELTA and also at the beginning of the "whole" method I wonder if it is not even better to just check the "sz" before the switch statement:

 checkIfTooLarge(sz);
 switch (typeCode) {
 ...

Does it make sense?