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

Fix format specifiers that do not match the argument types #271

Merged
merged 2 commits into from
Jun 23, 2020

Conversation

jamesjer
Copy link
Contributor

In check.h.in, %x is not safe to use with pointers, since it specifies an int-sized value but a pointer is passed in. On some platforms, int is 32 bits and void * is 64 bits.

In check_pack.c, note that t is a length modifier, not a conversion specifier. It must be followed by either d or u; d seems appropriate in this case.

The other changes are fairly obvious mismatches between the argument type and conversion specifier.

@jamesjer
Copy link
Contributor Author

This commit fixes #270

@brarcher brarcher merged commit a2c8ab9 into libcheck:master Jun 23, 2020
@brarcher
Copy link
Contributor

Thanks for the fixes!

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