koinos / koinos-types

The Rosetta Stone of the Koinos ecosystem. Allows for the interpretation of Koinos data structures in a multitude of languages. Useful in the development of microservices, clients, and smart contracts.
MIT License
12 stars 3 forks source link

Ensure C++ JSON deserializer handles out-of-range integer values #88

Closed theoreticalbts closed 3 years ago

theoreticalbts commented 3 years ago

If we try to deserialize a string like "9999999999999999999999" as a uint32_t it should fail. We need to check all integer types throw errors for out-of-range input (including negative input and input that only exceeds the range by 1).

mvandeberg commented 3 years ago

These are already tested in the json tests