Community
Participate
Working Groups
Build Identifier: This manifests only on JDK7 (tested on JDK7 build 122 and later). Trying to open an object with org.eclipse.jgit.storage.file.UnpackedObject.open() fails and results in a CorruptObjectException once jgit comes across a certain file. As far as i can tell, the problem is in org.eclipse.jgit.storage.file.UnpackedObject.readSome(): the method reads from an input stream into a byte array, however forgets to increment an offset in the array during the second and ongoing pass of the loop, thus overwriting already read bytes. There's no workaround, but the fix should be trivial. Reproducible: Sometimes
Created attachment 189714 [details] proposed trivial patch
cc'ng Shawn Can you upload a patch to Gerrit? http://wiki.eclipse.org/EGit/Contributor_Guide#Contributing_Patches
Fixed by commit 03f78fc3bc0c60e589c98d56830ffa5ba1eacd7e