Skip to content

Use unsigned chars for ctype macros.#124

Merged
daviesrob merged 1 commit into
samtools:masterfrom
jkbonfield:ctype-unsigned
Jul 2, 2024
Merged

Use unsigned chars for ctype macros.#124
daviesrob merged 1 commit into
samtools:masterfrom
jkbonfield:ctype-unsigned

Conversation

@jkbonfield

Copy link
Copy Markdown
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
Copy Markdown
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
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