pecoff4j icon indicating copy to clipboard operation
pecoff4j copied to clipboard

PE/COFF 4J is a java engineering library for portable executables, the format used by Windows

Results 7 pecoff4j issues
Sort by recently updated
recently updated
newest added

I've tried a modified version of the Test code, but I couldn't get it working. Any ideas? (entry(), directory(), and createIconDirectory() are just copy/pasted from the test) ```java // https://github.com/kichik/pecoff4j/blob/master/src/test/java/com/kichik/pecoff4j/ResourceDirectoryTest.java...

---------- C:\Windows\System32\MaxxAudioRealtek64.dll -------------- Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 147388 at org.boris.pecoff4j.io.ByteArrayDataReader.read(ByteArrayDataReader.java:61) at org.boris.pecoff4j.io.PEParser.readResourceEntry(PEParser.java:716) at org.boris.pecoff4j.io.PEParser.readResourceDirectory(PEParser.java:685) at org.boris.pecoff4j.io.PEParser.readResourceEntry(PEParser.java:705) at org.boris.pecoff4j.io.PEParser.readResourceDirectory(PEParser.java:685) at org.boris.pecoff4j.io.PEParser.readResourceEntry(PEParser.java:705) at org.boris.pecoff4j.io.PEParser.readResourceDirectory(PEParser.java:685) at org.boris.pecoff4j.io.PEParser.readResourceDirectory(PEParser.java:675) at org.boris.pecoff4j.io.PEParser.readImageData(PEParser.java:368) at org.boris.pecoff4j.io.PEParser.readSection(PEParser.java:478) at...

importSymbols=new ArrayList(); ImportDirectory idir= imd.getImportTable(); int numofIAT=idir.size(); for(int i=0;i

this fix exists in jonnyzzz fork - only porting as I am running into the issue. https://github.com/jonnyzzz/PE/blob/master/src/org/boris/pecoff4j/io/PEParser.java

When someone put a series flie path into a ArrayList , and then analysis those files with the code " PEParser.parse(arrayList.get(i))" in a for-loop , there will be some error...

It is very hard to understand this library if you want to do serious changes in it.

For packed executables we should: - Make all structures optional with `isAvailable()` method - Don't throw exceptions when something is out-of-bounds, but instead mark as not available - Provide an...