nevillegrech / gigahorse-toolchain

A binary lifter and analysis framework for Ethereum smart contracts
Other
295 stars 61 forks source link

Improve public function inference when the function selector is smaller than 3 bytes #91

Closed sifislag closed 8 months ago

sifislag commented 1 year ago

Our current heuristic supports public functions with 3 or 4 byte sighashes. However, there are cases of optimized code with "mined" sighashes that are smaller than 3 bytes. In order to support this with generality we'd probably need some limited global analysis. Example