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

Replace std::stol with ParseInt. #896

Closed
2 tasks done
tanruixiang opened this issue Sep 19, 2022 · 0 comments · Fixed by #897
Closed
2 tasks done

Replace std::stol with ParseInt. #896

tanruixiang opened this issue Sep 19, 2022 · 0 comments · Fixed by #897
Labels
enhancement type enhancement

Comments

@tanruixiang
Copy link
Member

Search before asking

  • I had searched in the issues and found no similar issues.

Motivation

There are many places in the code that use std::stol. Replace std::stol with ParseInt. Use ParseInt instead of std::stol for safer parsing.

Solution

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement type enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant