Author: markt Date: Sun Oct 14 00:13:57 2012 New Revision: 1397971 URL: http://svn.apache.org/viewvc?rev=1397971&view=rev Log: Restore incorrectly removed reads when parsing
Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Code.java Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Code.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Code.java?rev=1397971&r1=1397970&r2=1397971&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Code.java (original) +++ tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Code.java Sun Oct 14 00:13:57 2012 @@ -59,8 +59,10 @@ public final class Code extends Attribut Code(int name_index, int length, DataInputStream file, ConstantPool constant_pool) throws IOException { // Initialize with some default values which will be overwritten later - this(name_index, length, (byte[]) null, (CodeException[]) null, - (Attribute[]) null, constant_pool); + this(name_index, length, (byte[]) null, + (CodeException[]) null, (Attribute[]) null, constant_pool); + file.readUnsignedShort(); // Unused max_stack + file.readUnsignedShort(); // Unused max_locals code_length = file.readInt(); code = new byte[code_length]; // Read byte code file.readFully(code); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org