P1sec / hermes-dec

A reverse engineering tool for decompiling and disassembling the React Native Hermes bytecode
GNU Affero General Public License v3.0
503 stars 51 forks source link

Incorrect decompilation of `Not` opcode #7

Closed aamiaa closed 8 months ago

aamiaa commented 8 months ago

The Not opcode should use the ! operator, meanwhile it uses the - operator https://github.com/P1sec/hermes-dec/blob/2bd5073066a4917a7b91d7635c07a449e1245b56/src/decompilation/pass2_transform_code.py#L489-L490

p1-mmr commented 8 months ago

Fixed in commit 1a3de1c, thanks!