openca / libpki

Easy-to-use high-level library for PKI-enabled applications
Other
50 stars 34 forks source link

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

Open rapkin61 opened 3 years ago

rapkin61 commented 3 years ago

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 commented 3 years ago

See #46 and #47.