Closed Bug 246694 Opened 20 years ago Closed 20 years ago

64-bit build: incorrect handling of password policy response

Categories

(Directory :: LDAP Tools, defect)

HP
HP-UX
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mcs, Assigned: mcs)

Details

(Keywords: 64bit)

Attachments

(2 files)

In a 64-bit compilation (where sizeof(long) != sizeof(int), the LDAP command
line tools do not correctly handle the password policy response.  This is
because ints are passed to ber_scanf() instead of longs.  Reported by Netscape.
Status: NEW → ASSIGNED
Target Milestone: --- → 5.14
Keywords: 64bit
Comment on attachment 150737 [details] [diff] [review]
proposed fix from Netscape

r=mcs.
Attachment #150737 - Flags: review+
This fix only affects the LDAP command line tools which are not used by Mozilla
client projects.  Fix committed to the trunk:

mozilla/directory/c-sdk/ldap/clients/tools/common.c
  new revision: 5.12; previous revision: 5.11
     Fix bug # 246694 - 64-bit build: incorrect handling of
                        password policy response.
       The 'i' format specifier to ber_scanf() requires a long arg, not int.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attachment #155688 - Flags: review+
One additional small fix committed:

mozilla/directory/c-sdk/ldap/clients/tools/common.c
  new revision: 5.13; previous revision: 5.12
    Additional fix for bug #246694 - 64-bit build: incorrect handling of
    password policy response.
Status: REOPENED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: