Solidity is vulnerable to overflow and underflow of uint variables on the version <0.8.
uint8 value = 255; value++; // Result: value = 0
uint8 value = 0; value--; // Result: value = 255
Last updated 1 year ago