Commit c7ba3763 authored by Сергей Цыпанов's avatar Сергей Цыпанов
Browse files

Set ClassReader.MAX_BUFFER_SIZE to 1 Mb

parent 93b22ac8
......@@ -89,7 +89,7 @@ public class ClassReader {
static final int EXPAND_ASM_INSNS = 256;
/** The maximum size of array to allocate. */
private static final int MAX_BUFFER_SIZE = Integer.MAX_VALUE - 8;
private static final int MAX_BUFFER_SIZE = 1024 * 1024;
/** The size of the temporary byte array used to read class input streams chunk by chunk. */
private static final int INPUT_STREAM_DATA_CHUNK_SIZE = 4096;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment