提交 02a6f318 编写于 作者: J Juergen Hoeller

ASM ClassReader leniently handles label offset mismatch

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