Reading of LocalVariableTable entries fixed.

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1252 379699f6-c40d-0410-875b-85095c16579e
master
hoenicke 25 years ago
parent ff73414ef3
commit 46f4102cec
  1. 6
      jode/jode/bytecode/BasicBlockReader.java

@ -849,11 +849,11 @@ class BasicBlockReader implements Opcodes {
LVTEntry lve = new LVTEntry(); LVTEntry lve = new LVTEntry();
lve.start = input.readUnsignedShort(); lve.start = input.readUnsignedShort();
lve.end = lve.start + input.readUnsignedShort(); lve.end = lve.start + input.readUnsignedShort();
int slot = input.readUnsignedShort();
int nameIndex = input.readUnsignedShort(); int nameIndex = input.readUnsignedShort();
int typeIndex = input.readUnsignedShort(); int typeIndex = input.readUnsignedShort();
if (cp.getTag(nameIndex) != cp.UTF8 int slot = input.readUnsignedShort();
|| cp.getTag(typeIndex) != cp.UTF8) { if (nameIndex == 0 || cp.getTag(nameIndex) != cp.UTF8
|| typeIndex == 0 || cp.getTag(typeIndex) != cp.UTF8) {
// This is probably an evil lvt as created by HashJava // This is probably an evil lvt as created by HashJava
// simply ignore it. // simply ignore it.

Loading…
Cancel
Save