Browse Source

ASM ClassReader leniently handles label offset mismatch (again)

Issue: SPR-17467
pull/2011/head
Juergen Hoeller 6 years ago
parent
commit
2ac4355ec0
  1. 5
      spring-core/src/main/java/org/springframework/asm/ClassReader.java

5
spring-core/src/main/java/org/springframework/asm/ClassReader.java

@ -2437,6 +2437,11 @@ public class ClassReader { @@ -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();
}

Loading…
Cancel
Save