diff options
author | Luca Milanesio <luca.milanesio@gmail.com> | 2019-03-10 22:03:40 +0000 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2019-03-12 15:06:05 +0100 |
commit | bf3d1ded35707432f62318dbcb1f7139cc67b28d (patch) | |
tree | 1ae73e591d84d8e7df1aef47b777c582f8ae6870 /org.eclipse.jgit.archive/META-INF/MANIFEST.MF | |
parent | afef866a44cd65fef292c174cad445b3fb526400 (diff) | |
download | jgit-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