[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#3755) OpenLDAP breaks strict aliasing rules

Full_Name: Ralf Haferkamp
Version: HEAD
OS: Linux (Kernel 2.6)
URL: ftp://ftp.openldap.org/incoming/rhafer-2005-06-01_libldap_strict-aliasing.dif
Submission from: (NULL) (

The current OpenLDAP code breaks the C aliasing rules in some places. This might
cause trouble when compiling with gcc and the -fstrict-aliasing option (which is
also enabled via -O2). Future version about gcc (e.g. 4.0) will be even pickier
about this. Therefore I build the current head with -Wstrict-aliasing and tried
to fix the reported issues.

The uploaded patch currently contains just fixes for libldap and the client
tools. There are also some issues in the slapd code. I'll upload a seperate
patch for that later.

Note: An alternative way to fix this would be to compile the with