diff options
author | Philipp Marx <smigfu@googlemail.com> | 2016-11-11 10:43:09 +0100 |
---|---|---|
committer | Philipp Marx <smigfu@googlemail.com> | 2016-11-11 10:43:09 +0100 |
commit | 8adbfe4da6723768febbb86c22ac118e233c2154 (patch) | |
tree | 2ffe1b2ecf24714b5463e0f5b7a765df5f957b6c /org.eclipse.jgit/resources/org/eclipse/jgit | |
parent | f8ac03459a96138cc9cf8578933a946fb1f179f3 (diff) | |
download | jgit-8adbfe4da6723768febbb86c22ac118e233c2154.tar.gz jgit-8adbfe4da6723768febbb86c22ac118e233c2154.zip |
Check that DfsBlockCache#blockSize is a power of 2
In case a value is used which isn’t a power of 2 there will be a high
chance of java.lang.ArrayIndexOutBoundsException and
org.eclipse.jgit.errors.CorruptObjectException due to a mismatching
assumption for the DfsBlockCache#blockSizeShift parameter.
Change-Id: Ib348b3704edf10b5f93a3ffab4fa6f09cbbae231
Signed-off-by: Philipp Marx <smigfu@googlemail.com>
Diffstat (limited to 'org.eclipse.jgit/resources/org/eclipse/jgit')
-rw-r--r-- | org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties b/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties index 399436dfaa..aa73b44848 100644 --- a/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties +++ b/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties @@ -39,6 +39,7 @@ bitmapsMustBePrepared=Bitmaps must be prepared before they may be written. blameNotCommittedYet=Not Committed Yet blobNotFound=Blob not found: {0} blobNotFoundForPath=Blob not found: {0} for path: {1} +blockSizeNotPowerOf2=blockSize must be a power of 2 branchNameInvalid=Branch name {0} is not allowed buildingBitmaps=Building bitmaps cachedPacksPreventsIndexCreation=Using cached packs prevents index creation |