dorkbox / PeParser

Windows PE (Portable Executable) file parser for Java 6+
Other
24 stars 4 forks source link

ResourceType lookup invalid ordinal NPE #4

Open WaterKnight opened 5 years ago

WaterKnight commented 5 years ago
Caused by: java.lang.NullPointerException
    at dorkbox.peParser.types.ResourceDirName.<init>(ResourceDirName.java:87)
    at dorkbox.peParser.headers.resources.ResourceDirectoryEntry.<init>(ResourceDirectoryEntry.java:71)
    at dorkbox.peParser.headers.resources.ResourceDirectoryHeader.<init>(ResourceDirectoryHeader.java:62)
    at dorkbox.peParser.PE.fromInputStream(PE.java:135)
    at dorkbox.peParser.PE.<init>(PE.java:68)

Tested in 2.13 and 2.9 releases. The index in my case is 256. The executable in question is not mine but from a famous computer game (Warcraft III), so should be valid.

Frotty commented 2 years ago

@dorkbox still an issue. any feedback on this?

dorkbox commented 9 months ago

Sorry, I didn’t see this issue! I’ll look into this.

Frotty commented 9 months ago

@dorkbox I think the new version already addresses some of this, at least it doesn't produce the same error anymore. Any insights from your side?

Frotty commented 4 months ago

@dorkbox Did you check this out any further?