return BinaryDelta.getResultSize(getDeltaHeader(ctx, deltaAt)); } catch (DataFormatException dfe) { throw new CorruptObjectException(
return BinaryDelta.getResultSize(getDeltaHeader(curs, deltaAt)); } catch (DataFormatException e) { throw new CorruptObjectException(MessageFormat.format(
checkIfTooLarge(type, BinaryDelta.getResultSize(delta));
final long sz = BinaryDelta.getResultSize(cmds); if (Integer.MAX_VALUE <= sz) throw new LargeObjectException.ExceedsByteArrayLimit();
final long sz = BinaryDelta.getResultSize(cmds); if (Integer.MAX_VALUE <= sz) throw new LargeObjectException.ExceedsByteArrayLimit();
return BinaryDelta.getResultSize(getDeltaHeader(ctx, deltaAt)); } catch (DataFormatException dfe) { throw new CorruptObjectException(
return BinaryDelta.getResultSize(getDeltaHeader(curs, deltaAt)); } catch (DataFormatException e) { throw new CorruptObjectException(MessageFormat.format(
return BinaryDelta.getResultSize(getDeltaHeader(curs, deltaAt)); } catch (DataFormatException e) { throw new CorruptObjectException(MessageFormat.format(
return BinaryDelta.getResultSize(getDeltaHeader(ctx, deltaAt)); } catch (DataFormatException dfe) { CorruptObjectException coe = new CorruptObjectException(
checkIfTooLarge(type, BinaryDelta.getResultSize(delta));
final long sz = BinaryDelta.getResultSize(cmds); if (Integer.MAX_VALUE <= sz) throw new LargeObjectException.ExceedsByteArrayLimit();
checkIfTooLarge(type, BinaryDelta.getResultSize(delta));
@Override protected void run() throws Exception { ObjectReader reader = db.newObjectReader(); RevObject obj = new RevWalk(reader).parseAny(objectId); byte[] delta = getDelta(reader, obj); // We're crossing our fingers that this will be a delta. Double // check the size field in the header, it should match. // long size = reader.getObjectSize(obj, obj.getType()); try { if (BinaryDelta.getResultSize(delta) != size) throw die("Object " + obj.name() + " is not a delta"); } catch (ArrayIndexOutOfBoundsException bad) { throw die("Object " + obj.name() + " is not a delta"); } outw.println(BinaryDelta.format(delta)); }
final long sz = BinaryDelta.getResultSize(cmds); if (Integer.MAX_VALUE <= sz) throw new LargeObjectException.ExceedsByteArrayLimit();
final long sz = BinaryDelta.getResultSize(cmds); if (Integer.MAX_VALUE <= sz) throw new LargeObjectException.ExceedsByteArrayLimit();
final long sz = BinaryDelta.getResultSize(cmds); if (Integer.MAX_VALUE <= sz) throw new LargeObjectException.ExceedsByteArrayLimit();