Make parsing of PersonIdent from raw byte array fault-tolerant.
commit2b6c555aee869b7ef01c5953a143ca18583af182
authorMarc Strapetz <marc.strapetz@syntevo.com>
Tue, 23 Mar 2010 08:21:18 +0000 (23 09:21 +0100)
committerMarc Strapetz <marc.strapetz@syntevo.com>
Tue, 23 Mar 2010 08:21:18 +0000 (23 09:21 +0100)
treee09f38dc6db5c62aff791ef9c2d525e32f1aeb95
parentc80181c7379a3564df02503441c563b10a855808
Make parsing of PersonIdent from raw byte array fault-tolerant.

RawParseUtils.parsePersonIdent handles now those invalid byte sequences
which would result in IndexOutOfBoundsException and returns null in this
case.
org.eclipse.jgit.test/tst/org/eclipse/jgit/util/RawParseUtils_ParsePersonIdentTest.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/util/RawParseUtils.java