]> source.dussan.org Git - jgit.git/commit
Do not attempt to read bitmap from invalid pack 13/10913/1
authorShawn Pearce <spearce@spearce.org>
Wed, 6 Mar 2013 20:48:25 +0000 (12:48 -0800)
committerShawn Pearce <spearce@spearce.org>
Wed, 6 Mar 2013 20:48:25 +0000 (12:48 -0800)
commit913cccd5c4597d908698fdcb79eaf228c3afefb9
treeeddaef6bf7e4565c8c5a97db874b3a0aa20c45fb
parent88c962484f695971f75a6e776c5cb8e1257fddac
Do not attempt to read bitmap from invalid pack

If a pack file has been marked invalid due to a prior IOException
accessing its contents, do not offer its bitmap index to callers.
The pack cannot be used so its bitmap should be off limits from
any reader trying to work from a bitmap.

Change-Id: Ia44e46558abdddee560bb184158b1e0af9437eee
org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsPackFile.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/PackFile.java