Merge branch 'stable-5.5'

* stable-5.5:
  Prepare 5.5.2-SNAPSHOT builds
  JGit v5.5.1.201910021850-r
  Prepare 5.3.7-SNAPSHOT builds
  JGit v5.3.6.201910020505-r
  Prepare 5.1.13-SNAPSHOT builds
  JGit v5.1.12.201910011832-r
  Do not rely on ArrayIndexOutOfBoundsException to detect end of input

Change-Id: Iabebdc4786b52ec678caa798975428fda4ad7bd7
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
Matthias Sohn 2019-10-03 23:23:30 +02:00
commit 8b6d47636a
1 changed files with 2 additions and 4 deletions

View File

@ -1494,12 +1494,10 @@ private static class StringReader {
}
int read() {
try {
return buf[pos++];
} catch (ArrayIndexOutOfBoundsException e) {
pos = buf.length;
if (pos >= buf.length) {
return -1;
}
return buf[pos++];
}
void reset() {