summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.archive/META-INF/MANIFEST.MF
diff options
context:
space:
mode:
authorLuca Milanesio <luca.milanesio@gmail.com>2019-03-10 22:03:40 +0000
committerMatthias Sohn <matthias.sohn@sap.com>2019-03-12 15:06:05 +0100
commitbf3d1ded35707432f62318dbcb1f7139cc67b28d (patch)
tree1ae73e591d84d8e7df1aef47b777c582f8ae6870 /org.eclipse.jgit.archive/META-INF/MANIFEST.MF
parentafef866a44cd65fef292c174cad445b3fb526400 (diff)
downloadjgit-bf3d1ded35707432f62318dbcb1f7139cc67b28d.tar.gz
jgit-bf3d1ded35707432f62318dbcb1f7139cc67b28d.zip
Check for packfile validity and fd before reading
When reading from a packfile, make sure that is valid and has a non-null file-descriptor. Because of concurrency between a thread invalidating a packfile and another trying to read it, the read() may result into a NPE that won't be able to be automatically recovered. Throwing a PackInvalidException would instead cause the packlist to be refreshed and the read to eventually succeed. Bug: 544199 Change-Id: I27788b3db759d93ec3212de35c0094ecaafc2434 Signed-off-by: Luca Milanesio <luca.milanesio@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.archive/META-INF/MANIFEST.MF')
0 files changed, 0 insertions, 0 deletions