提交 8ea30185 编写于 作者: K khazra

8015421: NegativeArraySizeException occurs in ChunkedOutputStream() with Integer.MAX_VALUE

Summary: Ensure integer overflow does not occur
Reviewed-by: chegar
上级 bae21de3
......@@ -125,7 +125,7 @@ public class ChunkedOutputStream extends PrintStream {
completeHeader = getHeader(preferredChunkDataSize);
/* start with an initial buffer */
buf = new byte[preferredChunkDataSize + 32];
buf = new byte[preferredChunkGrossSize];
reset();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册