ASM ClassReader leniently handles label offset mismatch

Issue: SPR-14089
This commit is contained in:
Juergen Hoeller 2016-03-29 15:38:23 +02:00
parent 6298292523
commit 3910350b0a
1 changed files with 5 additions and 0 deletions

View File

@ -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();
}