diff options
author | Dave Borowitz <dborowitz@google.com> | 2015-06-29 16:00:53 -0700 |
---|---|---|
committer | Dave Borowitz <dborowitz@google.com> | 2015-07-07 15:44:17 -0400 |
commit | 59b000a6720c780b1620b7149ce14c9f81d796de (patch) | |
tree | a8659262b82cb51e34aa2a94b7d134c587eabefb /org.eclipse.jgit/src/org/eclipse/jgit/transport/PushCertificateParser.java | |
parent | 91e17b0080f6b53d4d0e1070781b3037f7a0ceaf (diff) | |
download | jgit-59b000a6720c780b1620b7149ce14c9f81d796de.tar.gz jgit-59b000a6720c780b1620b7149ce14c9f81d796de.zip |
BaseReceivePack: More validation during parseCommand
Change-Id: I25f3a5582a45dd0ec8f78f5daf74c2203797a184
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/transport/PushCertificateParser.java')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/transport/PushCertificateParser.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/PushCertificateParser.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/PushCertificateParser.java index fea8f125e1..661a0f094a 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/PushCertificateParser.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/PushCertificateParser.java @@ -294,9 +294,11 @@ public class PushCertificateParser { * @param rawLine * the exact line read from the wire that produced this * command, including trailing newline if present. + * @throws PackProtocolException + * if the raw line cannot be parsed to a command. * @since 4.0 */ - public void addCommand(String rawLine) { + public void addCommand(String rawLine) throws PackProtocolException { commands.add(parseCommand(chomp(rawLine))); rawCommands.append(rawLine); } |