]> source.dussan.org Git - jgit.git/commit
reftable: read file footer in ReftableReader#allRefs 69/149169/5
authorHan-Wen Nienhuys <hanwen@google.com>
Mon, 9 Sep 2019 13:07:25 +0000 (15:07 +0200)
committerHan-Wen Nienhuys <hanwen@google.com>
Wed, 11 Sep 2019 11:01:56 +0000 (13:01 +0200)
commit90efbd216f5a8ae616008490253a654f8cca4d16
tree398c5e05a2117d408ac39fe6537c6c046e685e98
parent726bcc4fdb9e4b211b872a15ba47b8a517e1b065
reftable: read file footer in ReftableReader#allRefs

allRefs determined the end of the ref block without accounting for
index or log blocks. This could cause other blocks to be interpreted
as ref blocks, leading to "invalid block" error messages.

Change-Id: I7b9323e7d5e0e7d64535b3ec1efd576aed1e9870
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/reftable/ReftableTest.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftable/ReftableReader.java