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

Calls to atoi() will produce undefined behaviour if token does not point to a string of digits #1

Open
ksmolko opened this issue Mar 10, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ksmolko
Copy link
Owner

ksmolko commented Mar 10, 2021

port = atoi(token);

Add some safeguards here to avoid undefined behaviour.

@ksmolko ksmolko added the bug Something isn't working label Mar 10, 2021
@ksmolko ksmolko self-assigned this Mar 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant