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

Usage of atoi() invokes undefined behaviour on integer overflow #53

Closed
craigbarnes opened this issue Apr 19, 2019 · 0 comments
Closed
Assignees
Labels

Comments

@craigbarnes
Copy link

The library code has 3 uses of the atoi() function, which causes signed integer overflow (and thus undefined behaviour) when passed a string whose numeric value is outside of the range INT_MIN ... INT_MAX. Also known as CERT ERR34-C.

@xuhdev xuhdev closed this as completed in 79b7ddd Apr 20, 2019
@xuhdev xuhdev self-assigned this Apr 22, 2019
@xuhdev xuhdev added the bug label Apr 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants