Konloch / Konloch/bytecode-viewer
java.lang.ArrayIndexOutOfBoundsException
Open
Nobody has claimed this yet.
Bug
Dependency Related
- Dominant language
- Java
- Stars
- 15.6k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I encountered the following error while decompiling a class using bytecode-viewer. Since the class file is not convenient to publicly share, I have emailed it to you. I hope to receive your reply. Thank you.
java.lang.ArrayIndexOutOfBoundsException: Index 65350 out of bounds for length 113
at org.objectweb.asm.ClassReader.readCode(ClassReader.java:2441)
at org.objectweb.asm.ClassReader.readMethod(ClassReader.java:1515)
at org.objectweb.asm.ClassReader.accept(ClassReader.java:745)
at org.objectweb.asm.ClassReader.accept(ClassReader.java:425)
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.base/java.lang.Thread.run(Thread.java:833)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with the emailed class file, then inspect ASMUtil.bytesToNode and the org.objectweb.asm.ClassReader.readCode stack-trace path. Compare the failing input with the import flow through JarUtils.getNode and ClassResourceImporter.open; done means the class can be opened without this exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- reverse-engineering
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100