[Date Prev][Date Next]
(ITS#3755) OpenLDAP breaks strict aliasing rules
Full_Name: Ralf Haferkamp
OS: Linux (Kernel 2.6)
Submission from: (NULL) (22.214.171.124)
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