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

improve __buitin_mul_overflow() checks #209

Merged
merged 1 commit into from
Feb 11, 2023

Conversation

carenas
Copy link
Contributor

@carenas carenas commented Feb 10, 2023

Improve the checks introduced with 4678857 (add a C23 inspired checked integer multiplication helper (#198), 2023-02-03) and that could result in build failures at least in AIX with xlc

Use <stddef.h> as a source for size_t as suggested by ANSI in preference
to <sys/types.h> (as suggested by POSIX), and make sure that the check
includes linkin so it won't result in a false positive in platforms that
allow link time resolution of unknown objects (ex: AIX with lxc)
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