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

Don't allocate huge buffers in ClassReader

parent f2fc921b
Pipeline #13328 failed with stage
in 4 minutes and 56 seconds
......@@ -345,7 +345,7 @@ public class ClassReader {
if (expectedLength < 256) {
return INPUT_STREAM_DATA_CHUNK_SIZE;
}
return expectedLength;
return Math.min(expectedLength, MAX_BUFFER_SIZE);
}
// -----------------------------------------------------------------------------------------------
......
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