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

error: 'strncpy' specified bound depends on the length of the source argument [-Werror=stringop-overflow=] #52

Open
rapkin61 opened this issue Dec 27, 2020 · 1 comment

Comments

@rapkin61
Copy link

make crashes:
In function '_xml_search_namespace_add',
inlined from 'PKI_CONFIG_get_element_stack' at pki_config.c:472:14:
pki_config.c:86:2: error: 'strncpy' specified bound depends on the length of the source argument [-Werror=stringop-overflow=]
86 | strncpy( ret, my_search, strlen(my_search) );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
cc1: all warnings being treated as errors
make[2]: *** [Makefile:864: libpki_la-pki_config.lo] Error 1
make[2]: Leaving directory '/home/klaus/libpki-master/src'
make[1]: *** [Makefile:949: all-recursive] Error 1
make[1]: Leaving directory '/home/klaus/libpki-master/src'
make: *** [Makefile:859: all-recursive] Error 1

@dcooper16
Copy link

See #46 and #47.

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

No branches or pull requests

2 participants