未验证 提交 0082b67a 编写于 作者: J Jesse Glick

[JENKINS-45661] ConsoleNote.readFrom could throw NegativeArraySizeException...

[JENKINS-45661] ConsoleNote.readFrom could throw NegativeArraySizeException and block annotation of the rest of the log.
上级 5c52272d
......@@ -239,6 +239,9 @@ public abstract class ConsoleNote<T> implements Serializable, Describable<Consol
mac = new byte[macSz];
decoded.readFully(mac);
sz = decoded.readInt();
if (sz < 0) {
throw new IOException("Corrupt stream");
}
} else {
mac = null;
sz = - macSz;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册