parsec-cloud icon indicating copy to clipboard operation
parsec-cloud copied to clipboard

Oxidation overflow

Open TimeEngineer opened this issue 3 years ago • 1 comments

Observation

Arithmetic operations in rust can panic (overflow, division by zero, etc...)

In release mode, arithmetic operations will act like C, in modular arithmetic

Many alternatives are exposed in std lib:

  • checked
  • overflowing
  • saturating
  • wrapping

These numeric values ​​are also exposed to user input (network for example)

What to do

?

TimeEngineer avatar May 16 '22 09:05 TimeEngineer

~Could you provide more information on what this isssue is ?~

FirelightFlagboy avatar May 16 '22 11:05 FirelightFlagboy