parsec-cloud
parsec-cloud copied to clipboard
Oxidation overflow
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
?
~Could you provide more information on what this isssue is ?~