ASM ClassReader leniently handles label offset mismatch
Issue: SPR-14089
This commit is contained in:
parent
6298292523
commit
3910350b0a
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue