Skip to content

M27-0-1: Do not consider size_t to be provided by cstdio #143

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

Closed
lcartey opened this issue Nov 21, 2022 · 0 comments · Fixed by #144
Closed

M27-0-1: Do not consider size_t to be provided by cstdio #143

lcartey opened this issue Nov 21, 2022 · 0 comments · Fixed by #144
Assignees
Labels
Difficulty-Low A false positive or false negative report which is expected to take <1 day effort to address false positive/false negative An issue related to observed false positives or false negatives. Impact-High top-25-fps user-report Issue reported by an end user of CodeQL Coding Standards

Comments

@lcartey
Copy link
Collaborator

lcartey commented Nov 21, 2022

Affected rules

  • M27-0-1

Description

M27-0-1 prohibits the use of the stream input/output library <cstdio>. However, we currently flag uses of size_t as from cstdio, which is undesirable (as it can be provided by any of a number of headers, and is not strictly part of the stream input/output library).

Example

Any use of size_t.

@lcartey lcartey added Difficulty-Low A false positive or false negative report which is expected to take <1 day effort to address Impact-High false positive/false negative An issue related to observed false positives or false negatives. labels Nov 21, 2022
@lcartey lcartey self-assigned this Nov 21, 2022
@lcartey lcartey added the user-report Issue reported by an end user of CodeQL Coding Standards label Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Difficulty-Low A false positive or false negative report which is expected to take <1 day effort to address false positive/false negative An issue related to observed false positives or false negatives. Impact-High top-25-fps user-report Issue reported by an end user of CodeQL Coding Standards
Projects
Development

Successfully merging a pull request may close this issue.

1 participant