ASM ClassReader leniently handles label offset mismatch
Issue: SPR-14089
This commit is contained in:
@@ -2182,6 +2182,11 @@ public class ClassReader {
|
|||||||
* @return a non null Label, which must be equal to labels[offset].
|
* @return a non null Label, which must be equal to labels[offset].
|
||||||
*/
|
*/
|
||||||
protected Label readLabel(int offset, Label[] labels) {
|
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) {
|
if (labels[offset] == null) {
|
||||||
labels[offset] = new Label();
|
labels[offset] = new Label();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user