Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tao chen
asm
Commits
edcaba3f
Commit
edcaba3f
authored
May 25, 2021
by
Сергей Цыпанов
Browse files
Don't allocate huge buffers in ClassReader
parent
f2fc921b
Changes
1
Hide whitespace changes
Inline
Side-by-side
asm/src/main/java/org/objectweb/asm/ClassReader.java
View file @
edcaba3f
...
...
@@ -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
)
;
}
// -----------------------------------------------------------------------------------------------
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment