提交 2ac4355e 编写于 作者: J Juergen Hoeller

ASM ClassReader leniently handles label offset mismatch (again)

Issue: SPR-17467
上级 a3cd7af7
......@@ -2437,6 +2437,11 @@ public class ClassReader {
* @return a non null Label, which must be equal to labels[bytecodeOffset].
*/
protected Label readLabel(final int bytecodeOffset, final Label[] labels) {
// SPRING PATCH: leniently handle offset mismatch
if (bytecodeOffset >= labels.length) {
return new Label();
}
// END OF PATCH
if (labels[bytecodeOffset] == null) {
labels[bytecodeOffset] = new Label();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册