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

Use unsigned chars for ctype macros. #124

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

jkbonfield
Copy link
Collaborator

On linux these tables are 384 wide, to accommodate -128 to +255. However this is an implementation defined security improvement and the specification is such that the parameter to e.g. isalpha should be unsigned.

Detected with the stock windows gcc install (mingw-w64 didn't complain).

See #123 (comment) for background.

@jkbonfield
Copy link
Collaborator Author

Note Freebsd is failing because the cirrus-ci runner changed from 13.2 to 14.0. It's fixed in #123 so I don't see the need for causing conflicts by fixing it elsewhere too. If we merge this second then the rebased version should pass.

On linux these tables are 384 wide, to accommodate -128 to +255.
However this is an implementation defined security improvement and the
specification is such that the parameter to e.g. isalpha should be
unsigned.

Detected with the stock windows gcc install (mingw-w64 didn't complain).
@daviesrob daviesrob merged commit 1654891 into samtools:master Jul 2, 2024
6 checks passed
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.

2 participants