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

Only pass unsigned chars to ctype functions #42

Closed
wants to merge 1 commit into from
Closed

Only pass unsigned chars to ctype functions #42

wants to merge 1 commit into from

Conversation

mmcco
Copy link
Contributor

@mmcco mmcco commented Dec 10, 2015

Passing a signed char to a ctype function is undefined behavior if it's

  1. It's not a serious issue, but it's a worthwhile correctness fix.
    Here's the CERT entry if you're interested:

https://www.securecoding.cert.org/confluence/x/fAs

Passing a signed char to a ctype function is undefined behavior if it's
>127. It's not a serious issue, but it's a worthwhile correctness fix.
Here's the CERT entry if you're interested:

https://www.securecoding.cert.org/confluence/x/fAs
@lichray
Copy link
Owner

lichray commented Dec 10, 2015

How you find them, tools?

@mmcco
Copy link
Contributor Author

mmcco commented Dec 10, 2015

Yeah, Coccinelle.

@lichray lichray closed this in 1942abe Dec 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants