Build with GCC10 generates some new compiler warnings: https://kojipkgs.fedoraproject.org//packages/389-ds-base/1.4.3.2/1.fc32.1/data/logs/x86_64/build.log
[1]
In file included from /usr/include/string.h:495, from ldap/servers/slapd/tools/ldclt/ldclt.c:36: In function 'strncpy', inlined from 'basicInit' at ldap/servers/slapd/tools/ldclt/ldclt.c:1164:9: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ldap/servers/slapd/tools/ldclt/ldclt.c: In function 'basicInit': ldap/servers/slapd/tools/ldclt/ldclt.c:1164:9: note: length computed here 1164 | strncpy(mctx.attRefDef, mctx.attrpl + i + 1, strlen(mctx.attrpl + i + 1)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from ldap/servers/slapd/tools/ldclt/ldclt.c:36: In function 'strncpy', inlined from 'basicInit' at ldap/servers/slapd/tools/ldclt/ldclt.c:1193:9: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ldap/servers/slapd/tools/ldclt/ldclt.c: In function 'basicInit': ldap/servers/slapd/tools/ldclt/ldclt.c:1193:9: note: length computed here 1193 | strncpy(mctx.attrplFile, mctx.attrpl + i + 1, strlen(mctx.attrpl + i + 1)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from ldap/servers/slapd/tools/ldclt/ldclt.c:36: In function 'strcat', inlined from 'buildArgListString' at ldap/servers/slapd/tools/ldclt/ldclt.c:2195:5: /usr/include/bits/string_fortified.h:128:10: warning: '__builtin_strcpy' offset 0 is out of the bounds [0, 0] [-Warray-bounds] 128 | return __builtin___strcat_chk (__dest, __src, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[2]
In file included from /usr/include/string.h:495, from ldap/servers/slapd/tools/ldclt/threadMain.c:122: In function 'strncpy', inlined from 'msgIdAdd' at ldap/servers/slapd/tools/ldclt/threadMain.c:538:5: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'strncpy', inlined from 'msgIdAdd' at ldap/servers/slapd/tools/ldclt/threadMain.c:540:5: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[3]
In file included from /usr/include/string.h:495, from ldap/servers/snmp/main.c:15: In function 'strncpy', inlined from 'main' at ldap/servers/snmp/main.c:151:17: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ldap/servers/snmp/main.c: In function 'main': ldap/servers/snmp/main.c:151:63: note: length computed here 151 | strncpy((char *)log_hdl->token, agent_logdir, strlen(agent_logdir) + 1); | ^~~~~~~~~~~~~~~~~~~~
[4]
In file included from /usr/include/string.h:495, from ldap/servers/plugins/acl/acl.h:24, from ldap/servers/plugins/acl/aclparse.c:14: In function 'strncpy', inlined from '__aclp__parse_aci' at ldap/servers/plugins/acl/aclparse.c:266:17, inlined from 'acl_parse' at ldap/servers/plugins/acl/aclparse.c:94:24: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output truncated before terminating nul copying 1 byte from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'strncpy', inlined from '__aclp__parse_aci' at ldap/servers/plugins/acl/aclparse.c:348:17, inlined from 'acl_parse' at ldap/servers/plugins/acl/aclparse.c:94:24: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output truncated before terminating nul copying 1 byte from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'strncpy', inlined from '__aclp__parse_aci' at ldap/servers/plugins/acl/aclparse.c:401:17, inlined from 'acl_parse' at ldap/servers/plugins/acl/aclparse.c:94:24: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output truncated before terminating nul copying 1 byte from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[5]
ldap/servers/slapd/back-ldbm/db-bdb/bdb_layer.c: In function 'bdb_delete_database_ex': ldap/servers/slapd/back-ldbm/db-bdb/bdb_layer.c:4230:22: warning: variable 'priv' set but not used [-Wunused-but-set-variable] 4230 | dblayer_private *priv = NULL; | ^~~~ ldap/servers/slapd/back-ldbm/db-bdb/bdb_layer.c: In function 'bdb_get_aux_id2entry_ext': ldap/servers/slapd/back-ldbm/db-bdb/bdb_layer.c:1932:8: warning: 'priv' may be used uninitialized in this function [-Wmaybe-uninitialized] 1932 | if (priv) { | ^
[6]
In file included from /usr/include/string.h:495, from ldap/servers/plugins/syntaxes/string.c:17: In function 'strncpy', inlined from 'string_filter_sub' at ldap/servers/plugins/syntaxes/string.c:345:13: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 8192 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
389-ds-base-1.4.3.2-1.fc32.1
might be duplicate of https://pagure.io/389-ds-base/issue/50814
Metadata Update from @mreynolds: - Custom field origin adjusted to None - Custom field reviewstatus adjusted to None
Metadata Update from @mreynolds: - Issue set to the milestone: 1.4.3
389-ds-base is moving from Pagure to Github. This means that new issues and pull requests will be accepted only in 389-ds-base's github repository.
This issue has been cloned to Github and is available here: - https://github.com/389ds/389-ds-base/issues/2929
If you want to receive further updates on the issue, please navigate to the github issue and click on subscribe button.
subscribe
Thank you for understanding. We apologize for all inconvenience.
Metadata Update from @spichugi: - Issue close_status updated to: wontfix - Issue status updated to: Closed (was: Open)