perimetersec / fuzzlib

Solidity Fuzzing Library
MIT License
32 stars 12 forks source link

Add more input validation for Clamping #54

Open rappie opened 2 months ago

rappie commented 2 months ago

Especially for signed integers it can be confusing which number is the smallest.

Example input validation we already have: https://github.com/perimetersec/fuzzlib/blob/main/src/helpers/HelperClamp.sol#L141-L145