GJDuck / e9patch

A powerful static binary rewriting tool
GNU General Public License v3.0
979 stars 65 forks source link

Segmentation fault upon instrumenting 'asm=ret' #37

Closed jjang3 closed 2 years ago

jjang3 commented 2 years ago

Hello!

I am doing very simple patching to test out the latest patching capability of the E9Patch version and came across this issue.

Here are the following steps to reproduce the error:

  1. git clone git@github.com:GJDuck/e9patch.git
  2. cd e9patch && bash build.sh
  3. ./e9tool -M 'asm=ret' -P empty bzip2
  4. truncate --size=1G test.txt && ./a.out test.txt

I'm not sure if this is only the problem from my end, or maybe others have this issue as well.

I have attached the screenshot below:

Screen Shot 2021-11-23 at 5 52 02 PM

I have also tried this on xterm which results in the same error. Sincerely,

GJDuck commented 2 years ago

Thanks for the report. I think it should be fixed now, otherwise please reopen.