RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1382519 - 1.2.11 only -- coverity fixes
Summary: 1.2.11 only -- coverity fixes
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: 389-ds-base
Version: 6.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Noriko Hosoi
QA Contact: Viktor Ashirov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-06 21:18 UTC by Noriko Hosoi
Modified: 2020-09-13 21:51 UTC (History)
3 users (show)

Fixed In Version: 389-ds-base-1.2.11.15-84.el6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-21 10:23:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 2063 0 None None None 2020-09-13 21:51:42 UTC
Red Hat Product Errata RHBA-2017:0667 0 normal SHIPPED_LIVE 389-ds-base bug fix update 2017-03-21 12:35:05 UTC

Description Noriko Hosoi 2016-10-06 21:18:29 UTC
'''Compiler warnings'''
[1]
1. 389-ds-base-1.2.11.15/ldap/servers/plugins/replication/cl5_api.c:0: scope_hint: In function 'trigger_cl_purging_thread'
2. 389-ds-base-1.2.11.15/ldap/servers/plugins/replication/cl5_api.c:3578: warning: dereferencing pointer 'iterator.302' does break strict-aliasing rules
3. 389-ds-base-1.2.11.15/ldap/servers/plugins/replication/cl5_api.c:3578: note: initialized from here
#  3576|   		object_acquire (obj);
#  3577|   		it->file = obj;
#  3578|-> 		*(CL5Iterator**)iterator = it;
#  3579|
[2]
1. 389-ds-base-1.2.11.15/ldap/servers/plugins/pwdstorage/clear_pwd.c:0: scope_hint: In function 'clear_pw_cmp'
2. 389-ds-base-1.2.11.15/ldap/servers/plugins/pwdstorage/clear_pwd.c:58: warning: unused variable 'len'
#    56|   {
#    57|       int result = 0;
#    58|->     int len = 0;
#    59|       int len_user = strlen(userpwd);
#    60|       int len_dbp = strlen(dbpwd);

'''CLANG_WARNING'''
1. 389-ds-base-1.2.11.15/ldap/servers/slapd/ssl.c:1068:14: warning: Value stored to 'NSSVersionMax' during its initialization is never read
#     PRUint16 NSSVersionMax = enabledNSSVersions.max;
#              ^~~~~~~~~~~~~   ~~~~~~~~~~~~~~~~~~~~~~
4. 389-ds-base-1.2.11.15/ldap/servers/slapd/ssl.c:1068:14: note: Value stored to 'NSSVersionMax' during its initialization is never read
#     PRUint16 NSSVersionMax = enabledNSSVersions.max;
#              ^~~~~~~~~~~~~   ~~~~~~~~~~~~~~~~~~~~~~
#  1066|   #if !defined(NSS_TLS10) /* NSS_TLS11 or newer */
#  1067|       PRUint16 NSSVersionMin = SSL_LIBRARY_VERSION_TLS_1_0;
#  1068|->     PRUint16 NSSVersionMax = enabledNSSVersions.max;
#  1069|   #endif
#  1070|  

'''BUild warnings'''
[1]
Type pun (strict-aliasing) warning seen in i686 build log:
   4703  ldap/servers/plugins/replication/cl5_api.c: In function 'trigger_cl_purging_thread':
   4704  ldap/servers/plugins/replication/cl5_api.c:3578: warning: dereferencing pointer 'iterator.325' does break strict-aliasing rules
[2]
Type pun (strict-aliasing) warning seen in x86_64 build log:
   4773  ldap/servers/plugins/replication/cl5_api.c: In function 'trigger_cl_purging_thread':
   4774  ldap/servers/plugins/replication/cl5_api.c:3578: warning: dereferencing pointer 'iterator.302' does break strict-aliasing rules

Comment 2 Noriko Hosoi 2016-10-21 20:03:51 UTC
Compiler warnings
1. warning: dereferencing pointer 'iterator.302' does break strict-aliasing rules
and
Build warnings 1 and 2
are pointing the same issue. That is a bug in gcc-4 on RHEL6.
Reasoning: the same code is found in 389-ds-base.1.3.5 branch but gcc-5 on RHEL7 does not report the warning.

CLANG_WARNING is false positive. NSSVersionMax is read in the same function slapd_ssl_init2, again. The read happens in the next #if !defined(NSS_TLS10) section. Most likely, coverity failed to detect it(?)

Thus, the real issue is just "Compiler warnings 2".

Comment 6 errata-xmlrpc 2017-03-21 10:23:29 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2017-0667.html


Note You need to log in before you can comment on or make changes to this bug.