From 3632f115192baeda66589e13815e4af4d7bbe9f6 Mon Sep 17 00:00:00 2001 From: Vincent Rasquier Date: Fri, 15 Dec 2017 16:51:01 +0100 Subject: [PATCH] URGENT Fix --- asm/classreader.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/asm/classreader.go b/asm/classreader.go index e0e147b..3224c18 100644 --- a/asm/classreader.go +++ b/asm/classreader.go @@ -341,7 +341,12 @@ func (c ClassReader) AcceptB(classVisitor ClassVisitor, attributePrototypes []*A currentClassesOffset := innerClassesOffset + 2 for numberOfClasses > 0 { numberOfClasses-- - classVisitor.VisitInnerClass(c.readClass(currentClassesOffset, charBuffer), c.readClass(currentAttributeOffset+2, charBuffer), c.readClass(currentClassesOffset+4, charBuffer), c.readUnsignedShort(currentClassesOffset+6)) + classVisitor.VisitInnerClass( + c.readClass(currentClassesOffset, charBuffer), + c.readClass(currentClassesOffset+2, charBuffer), + c.readUTF8(currentClassesOffset+4, charBuffer), + c.readUnsignedShort(currentClassesOffset+6), + ) currentClassesOffset += 8 } }