danleh / wasabi

A dynamic analysis framework for WebAssembly programs.
http://wasabi.software-lab.org
MIT License
366 stars 48 forks source link

Fix if hook condition #38

Closed AntDum closed 1 year ago

AntDum commented 1 year ago

Description

Revised the condition from ===1 to !==0 to align with the concept that positive values are considered as true, while only 0 is regarded as false.

Changes Made

Replaced the condition ===1 with !==0 for improved accuracy in evaluating truthiness. Applied this change to the following hooks:

danleh commented 1 year ago

Thanks for the PR! Merged :)