]> source.dussan.org Git - jgit.git/commit
Fix corrupted large deltas 23/1723/1
authorShawn O. Pearce <spearce@spearce.org>
Mon, 11 Oct 2010 01:48:15 +0000 (18:48 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 11 Oct 2010 01:50:46 +0000 (18:50 -0700)
commit4522b07d0f78174d632a3159a553f1e4c78c8408
tree6b89ce5cd2d733759c8c0af43645f6e380a711eb
parent782dbfc60f01021e29d31ac5189eed77c55583ab
Fix corrupted large deltas

Large objects stored as deltas get unpacked by JGit into a loose
object, so they are cheaper to access later on.  This unpacking was
broken because TeeInputStream copied the wrong length into the loose
object, sometimes copying too many bytes into the result.  This
created a loose object that did not have the correct content, and
whose length did not match the length denoted in the object header.

Change-Id: I3ce1fd9f3dc5bd195249c7872b3bec49570424a2
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/util/io/TeeInputStream.java