PeParser icon indicating copy to clipboard operation
PeParser copied to clipboard

ResourceType lookup invalid ordinal NPE

Open WaterKnight opened this issue 5 years ago • 4 comments

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.

WaterKnight avatar Jun 08 '19 11:06 WaterKnight

@dorkbox still an issue. any feedback on this?

Frotty avatar Oct 29 '21 07:10 Frotty

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

dorkbox avatar Nov 13 '23 17:11 dorkbox

@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 avatar Nov 16 '23 14:11 Frotty

@dorkbox Did you check this out any further?

Frotty avatar Apr 14 '24 19:04 Frotty