Konloch / Konloch/bytecode-viewer

java.lang.ArrayIndexOutOfBoundsException

Open
#380 1 comment 0 reactions 0 assignees View on GitHub
Bug
Dominant language
Java
Stars
15.6k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

Bytecode Viewer Version: 2.11.0 [Fat Jar], OS: Windows 10, Java: 1.8.0_281

java.lang.ArrayIndexOutOfBoundsException: 15873
at org.objectweb.asm.ClassReader.readStringish(ClassReader.java:3726)
at org.objectweb.asm.ClassReader.readClass(ClassReader.java:3741)
at org.objectweb.asm.ClassReader.accept(ClassReader.java:454)
at org.objectweb.asm.ClassReader.accept(ClassReader.java:424)
at the.bytecode.club.bytecodeviewer.api.ASMUtil.bytesToNode(ASMUtil.java:42)
at the.bytecode.club.bytecodeviewer.util.JarUtils.getNode(JarUtils.java:242)
at the.bytecode.club.bytecodeviewer.resources.importing.impl.ClassResourceImporter.open(ClassResourceImporter.java:47)
at the.bytecode.club.bytecodeviewer.resources.importing.ImportResource.importKnownFile(ImportResource.java:87)
at the.bytecode.club.bytecodeviewer.resources.importing.ImportResource.run(ImportResource.java:59)
at java.lang.Thread.run(Unknown Source)

.class file: https://drive.google.com/file/d/1K0qxedgfHW-x5fwy-WuflXERInJaBQKn/view

Contributor guide

Open the contributing guide

Research direction

Start with the linked .class file and reproduce its import using the stack-trace path through ASMUtil.java, JarUtils.java, and ClassResourceImporter.java. Read ASMUtil.bytesToNode and the reported ASM ClassReader calls to identify where the ArrayIndexOutOfBoundsException occurs. Done means the supplied class can be imported without this exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
reverse-engineering
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.