Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw an exception on typecasting of bad values #534

Closed
mvorisek opened this issue Mar 27, 2020 · 1 comment
Closed

Throw an exception on typecasting of bad values #534

mvorisek opened this issue Mar 27, 2020 · 1 comment

Comments

@mvorisek
Copy link
Member

mvorisek commented Mar 27, 2020

For booleans/numerical types throw an exception if the input value is not null and is:

  • not numeric
  • out of range (ie. boolean can accept only 0 and 1 only)

Very important to prevent very dangerous conversions like in issue #530 and #396.

@mvorisek
Copy link
Member Author

mvorisek commented Oct 8, 2021

fixed in #897

@mvorisek mvorisek closed this as completed Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant