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