提交 6ce3a596 编写于 作者: X xuelei

6542796: CPU issue with JSSE and tomcat

Summary: record length count error
Reviewed-by: weijun
上级 ed79706e
......@@ -426,12 +426,12 @@ class InputRecord extends ByteArrayInputStream implements Record {
if (really < 0) {
throw new SSLException("SSL peer shut down incorrectly");
}
// now we've got a complete record.
count = contentLen + headerSize;
exlen = 0;
}
// now we've got a complete record.
count = contentLen + headerSize;
exlen = 0;
if (debug != null && Debug.isOn("record")) {
if (count < 0 || count > (maxRecordSize - headerSize)) {
System.out.println(Thread.currentThread().getName()
......@@ -502,10 +502,11 @@ class InputRecord extends ByteArrayInputStream implements Record {
if (really < 0) {
throw new EOFException("SSL peer shut down incorrectly");
}
// now we've got a complete record.
exlen = 0;
}
// now we've got a complete record.
exlen = 0;
hashInternal(buf, 2, 3);
hashInternal(v2Buf, 0, len);
V2toV3ClientHello(v2Buf);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册