jgit/org.eclipse.jgit
Shawn O. Pearce a468cb57c2 PackWriter: Validate reused cached packs
If object reuse validation is enabled, the output pack is going to
probably be stored locally.  When reusing an existing cached pack
to save object enumeration costs, ensure the cached pack has not
been corrupted by checking its SHA-1 trailer.  If it has, writing
will abort and the output pack won't be complete.  This prevents
anyone from trying to use the output pack, and catches corruption
before it can be carried any further.

Change-Id: If89d0d4e429d9f4c86f14de6c0020902705153e6
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
2011-03-02 12:49:00 -08:00
..
.settings Run formatter on edited lines via save action 2010-08-26 12:33:09 -05:00
META-INF daemon: Use HTTP's resolver and factory pattern 2011-02-14 18:28:21 -08:00
findBugs [findbugs] Do not ignore exceptional return value of mkdir 2011-01-28 01:11:12 +01:00
resources/org/eclipse/jgit Add git-reset to the Git API 2011-02-17 10:28:26 -06:00
src/org/eclipse/jgit PackWriter: Validate reused cached packs 2011-03-02 12:49:00 -08:00
.classpath Externalize strings from JGit 2010-05-19 14:37:16 -07:00
.fbprefs Initial JGit contribution to eclipse.org 2009-09-29 16:47:03 -07:00
.gitignore Finish removing Apache Felix maven-bundle-plugin 2010-01-12 11:46:55 -08:00
.project Revert "Hide Maven target directories from Eclipse" 2010-08-28 09:50:50 +02:00
about.html Adding some Eclipse-related legal files to JGit 2010-02-03 15:18:06 -06:00
build.properties Add "resources/" as a source folder 2010-06-05 14:39:27 +02:00
plugin.properties Cleaning up provider and feature names 2010-04-27 09:26:25 -05:00
pom.xml Fix formatting of pom.xml 2011-02-24 16:04:33 +01:00