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

checksrc: ban use of sscanf() #15687

Closed
wants to merge 1 commit into from
Closed

checksrc: ban use of sscanf() #15687

wants to merge 1 commit into from

Conversation

bagder
Copy link
Member

@bagder bagder commented Dec 5, 2024

Using sscanf() is not a (security) problem in itself, but we strongly discourage using it for parsing input since it is hard to use right, easy to mess up and often makes for sloppy error checking.

@bagder bagder added the script label Dec 5, 2024
@bagder bagder force-pushed the bagder/checksrc-sscanf branch from 4211738 to 1f47ac0 Compare December 5, 2024 07:26
@github-actions github-actions bot added the tests label Dec 5, 2024
Using sscanf() is not a (security) problem in itself, but we strongly
discorage using it for parsing input since it is hard to use right, easy
to mess up and often makes for sloppy error checking.

Allow it in examples and tests
@bagder bagder force-pushed the bagder/checksrc-sscanf branch from 411c5a0 to 38272af Compare December 12, 2024 15:02
@bagder bagder marked this pull request as ready for review December 12, 2024 15:02
@bagder bagder closed this in c2ac9ea Dec 13, 2024
@bagder bagder deleted the bagder/checksrc-sscanf branch December 13, 2024 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

1 participant