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 strncpy bound error #4151

Closed
wants to merge 1 commit into from
Closed

fix strncpy bound error #4151

wants to merge 1 commit into from

Conversation

kraj
Copy link

@kraj kraj commented Feb 27, 2021

This patch fixes the following error while using gcc 11
error: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound depends on the length of the source argument [-Werror=stringop-overflow=]

Signed-off-by: Khem Raj raj.khem@gmail.com

This patch fixes the following error while using gcc 11
error: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound depends on the length of the source argument [-Werror=stringop-overflow=]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@s-perron
Copy link
Collaborator

@kraj Thanks for this fix. Sorry we did not get around to reviewing it until now. You have the sign the CLA before we can accept the change. Please do that, and I will merge if all of the tests pass.

@kraj
Copy link
Author

kraj commented Apr 29, 2021

@kraj Thanks for this fix. Sorry we did not get around to reviewing it until now. You have the sign the CLA before we can accept the change. Please do that, and I will merge if all of the tests pass.

its a one liner, and I don't want to sign CLA for a trivial change like this. You can abandon it.

@s-perron s-perron closed this Apr 29, 2021
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

4 participants