XboxDev / ghidra-xbe

Xbox Executable Format (XBE) Loader Extension for Ghidra SRE framework
82 stars 17 forks source link

Attempt to read beyond EOF #21

Closed thrimbor closed 2 years ago

thrimbor commented 3 years ago

Somewhere the plugin tries to read from the xbe beyond EOF, causing an error in the Ghidra log.

For example when opening the Counter-Strike xbe (its size is 3,973,120 bytes): Screenshot_20201218_160839

x1nixmzeng commented 3 years ago

I'm seeing the same error:

2021-02-26 | 22:52:15 | ERROR | (XbeLoader) EOF: unable to read 2240544 bytes at 3321856

Downloaded the prebuilt release :https://github.com/mborgerson/ghidra-xbe/releases/tag/build-202102142037

Ghidra v9.2.2 Java 15.0.2

Repro seems to be create a new project from an XBE file. It seems you can still launch the 'code browser' tool for analysis though, not sure what the initial read is doing