bongtrop / hbctool

Hermes Bytecode Reverse Engineering Tool (Assemble/Disassemble Hermes Bytecode)
MIT License
461 stars 81 forks source link

Writing patch code to hbc #7

Open joshuachenn opened 3 years ago

joshuachenn commented 3 years ago

I think it is hard to write patch code to hbc, when I added some patch code to hbc in some offset of instruction segment, the offset will be reuse in afterwards, which will cause beforehand code being modified and affect code to be disassembled incorrectly. Because added bytecode changes offset of some function.

bongtrop commented 3 years ago

Thank you for notifying me. Let me check !