diff options
author | Saša Živkov <sasa.zivkov@sap.com> | 2019-09-27 15:58:10 +0200 |
---|---|---|
committer | Saša Živkov <sasa.zivkov@sap.com> | 2019-09-27 15:58:10 +0200 |
commit | 3d8649ddef2874aeea7e3e83b47e5fd4867c5cd5 (patch) | |
tree | ad73af9197b84974378e38f2e811e023206b8e99 /org.eclipse.jgit.http.server | |
parent | e3f535cb15a75d6b2448bfadbc9839da8085f1ec (diff) | |
download | jgit-3d8649ddef2874aeea7e3e83b47e5fd4867c5cd5.tar.gz jgit-3d8649ddef2874aeea7e3e83b47e5fd4867c5cd5.zip |
Do not rely on ArrayIndexOutOfBoundsException to detect end of input
In the Config#StringReader we relied on ArrayIndexOutOfBoundsException
to detect the end of the input. Creation of exception with (deep) stack
trace can significantly degrade performance in case when we read
thousands of config files, like in the case when Gerrit reads all
external ids from the NoteDb.
Use the buf.length to detect the end of the input.
Change-Id: I12266f25751373a870ce3fa623cf2a95d882d521
Diffstat (limited to 'org.eclipse.jgit.http.server')
0 files changed, 0 insertions, 0 deletions