summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.packaging/.project
diff options
context:
space:
mode:
authorThomas Wolf <thomas.wolf@paranor.ch>2021-01-29 12:12:28 +0100
committerThomas Wolf <thomas.wolf@paranor.ch>2021-01-31 10:31:10 +0100
commitaa052ea09956385f5b90130f63ad4b07a3dee8c7 (patch)
treeef1f1e838dd2d91e091d55f4e95476209eadc9ed /org.eclipse.jgit.packaging/.project
parent9109cb9d2b3822ad500f65df57fb7533b18b4d65 (diff)
downloadjgit-aa052ea09956385f5b90130f63ad4b07a3dee8c7.tar.gz
jgit-aa052ea09956385f5b90130f63ad4b07a3dee8c7.zip
LFS: make pointer parsing more robust
Parsing an LFS pointer must check the input more to not run into exceptions. LfsPoint.parseLfsPointer() is used in various places to determine whether a blob is a LFS pointer; it is not only called with valid LFS pointers. Tighten the validations and return null if they fail. All callers already do check for a null return value. Also, LfsPointer implemented Comparable but did not override equals(). This is rather unusual and actually warned against in the javadoc of Comparable. Implement equals() and hashCode(). Add more tests. Bug: 570744 Change-Id: I90ca264d0a250275cf1907e9dcfcee5eab80df0f Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Diffstat (limited to 'org.eclipse.jgit.packaging/.project')
0 files changed, 0 insertions, 0 deletions