Issue 663 - assignment bug in servers/slapd/sasl.c
Summary: assignment bug in servers/slapd/sasl.c
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-08-15 18:34 UTC by mei@isi.edu
Modified: 2014-08-01 21:05 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description mei@isi.edu 2000-08-15 18:34:52 UTC
Full_Name: mei-hui su
Version: openldap 2.0 latest
OS: irix  6.5
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (128.9.64.206)


Hi,

  Using irix's cc(okay with gcc and okay with sun solaris compiler), I
encountered 
the following error. Splitting the statement into 2  solves it.

mei

cc -64 -I../../include
-I/nfs/globus2/MEI/nPROJ_CC/OpenLDAP/OpenLDAP-dev/ldap/include
  -c /nfs/globus2/MEI/nPROJ_CC/OpenLDAP/OpenLDAP-dev/ldap/servers/slapd/schema_init.c

-o s

"/nfs/globus2/MEI/nPROJ_CC/OpenLDAP/OpenLDAP-dev/ldap/servers/slapd/schema_init.c",
li
ne 548: error(1133):
          expression must be a modifiable lvalue
        bv->bv_val = (char *) u = ch_malloc( bv->bv_len + sizeof(ldap_unicode_t)
);
                     ^

"/nfs/globus2/MEI/nPROJ_CC/OpenLDAP/OpenLDAP-dev/ldap/servers/slapd/schema_init.c",
li
ne 548: warning(1551):
          variable "u" is used before its value is set
        bv->bv_val = (char *) u = ch_malloc( bv->bv_len + sizeof(ldap_unicode_t)
);



Comment 1 Kurt Zeilenga 2000-08-15 18:38:41 UTC
changed notes
changed state Open to Closed
moved from Incoming to Development
Comment 2 Kurt Zeilenga 2000-08-15 19:57:23 UTC
Fixed, please test, thanks.

At 06:34 PM 8/15/00 +0000, mei@isi.edu wrote:
>Full_Name: mei-hui su
>Version: openldap 2.0 latest
>OS: irix  6.5
>URL: ftp://ftp.openldap.org/incoming/
>Submission from: (NULL) (128.9.64.206)
>
>
>Hi,
>
>  Using irix's cc(okay with gcc and okay with sun solaris compiler), I
>encountered 
>the following error. Splitting the statement into 2  solves it.
>
>mei
>
>cc -64 -I../../include
>-I/nfs/globus2/MEI/nPROJ_CC/OpenLDAP/OpenLDAP-dev/ldap/include
>  -c /nfs/globus2/MEI/nPROJ_CC/OpenLDAP/OpenLDAP-dev/ldap/servers/slapd/schema_init.c
>
>-o s
>
>"/nfs/globus2/MEI/nPROJ_CC/OpenLDAP/OpenLDAP-dev/ldap/servers/slapd/schema_init.c",
>li
>ne 548: error(1133):
>          expression must be a modifiable lvalue
>        bv->bv_val = (char *) u = ch_malloc( bv->bv_len + sizeof(ldap_unicode_t)
>);
>                     ^
>
>"/nfs/globus2/MEI/nPROJ_CC/OpenLDAP/OpenLDAP-dev/ldap/servers/slapd/schema_init.c",
>li
>ne 548: warning(1551):
>          variable "u" is used before its value is set
>        bv->bv_val = (char *) u = ch_malloc( bv->bv_len + sizeof(ldap_unicode_t)
>);

Comment 3 OpenLDAP project 2014-08-01 21:05:27 UTC
fixed.