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

Support -D_FORTIFY_SOURCE=3 by using __builtin_dynamic_object_size. #22917

Merged
merged 1 commit into from
Mar 31, 2022

Conversation

marxin
Copy link
Contributor

@marxin marxin commented Mar 31, 2022

As explained in the issue, -D_FORTIFY_SOURCE=3 requires usage
of __builtin_dynamic_object_size in MALLOC_SIZEOF_SAFE macro.

Fixes: #22801

@poettering poettering added util-lib good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed labels Mar 31, 2022
@poettering
Copy link
Member

lgtm

As explained in the issue, -D_FORTIFY_SOURCE=3 requires usage
of __builtin_dynamic_object_size in MALLOC_SIZEOF_SAFE macro.

Fixes: systemd#22801
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed util-lib
Development

Successfully merging this pull request may close these issues.

*** buffer overflow detected *** with GCC 12 and -D_FORTIFY_SOURCE=3
4 participants