Skip to main content
Menu
Advisories

safemath for decimals do not check for 256-bit overflow

GHSA-42J8-8CJV-J5R9Published Updated GitHub

Description

Impact

~since v0.3.2, decimals use the full range of the underlying int168 type. multiplication of 168 bit integers can wrap in 256-bit arithmetic, but safemul does not check for that.~

Patches

Workarounds

References

see github.com/vyperlang/vyper/issues/2845

For more information

If you have any questions or comments about this advisory:

Affected versions

References

GitHub · vyperlang/vyper