#49511 memory leak in pwdhash
Closed: wontfix 6 years ago Opened 6 years ago by firstyear.

Issue Description

Given multiple inputs we leak 1 to N strings allocate.

/opt/dirsrv/bin/pwdhash hello there            
{PBKDF2_SHA256}AAAgAB0RKzAm/VckfnPO3riWsKlYwfkUHLrD2OmDZPL7Q1RjDjeAUCTEh8YpfA3dTq61/bISjGLFwNuvtjuHHWqMXyaxVB+Hmgb7ol/XWYxcvpRodB12h4rzTZ2kCbpUo0SFZ7+1fbQlyk9/64ZJ+3VFGRGPvWkrIje3qRfC2xFJw6frWUX1E18BR8lq02MMzHcoa58GntywASwJ0ApiKd7jPud+j9wsvpTA8LOgux+1LbllFZXVkxhNdlhGunrU3QCaxrQ4wsmT13mXE2yW9yASh1QZ0WgDOEqnccZVt/vwRG2TB5rWKQT9/qAALb6zE3+TC3m5/Y5lTQbsxILu4k5gPMJr3n53mgOJkhPloj2xmh9OxBRhM6Dn2gSxNL8gvU4objxz9t7NHeMhkCqTVjy+xS+rfZhyBLfMsQPXGBHqbsfB
{PBKDF2_SHA256}AAAgAJ2GFU4IE2Sgp19FFwz2khI+ybqwbdVMigyWxButiS7EN7WqEyXVHG915kREVbGMzimhA+LJC7TgjSv328ElPZb4HLYkQLZrs3guu3jYJOngjtE7i3a1K2h47dUVvLmz3NhSgnNiYRXztXNyklOyJgr9A+KOdAqQg5aY7cYeZCQYrJneWQ4LZT7gzH5A4lCd6BRgh2e61Wk3kWy+vvtf4zrYq3PipEpGmGNSBo/CV6+/nnbTlenb2Ohtn+vMxX7vOUfROaBGCOWdG3ze7Q9CCLZODdsEv3V2Fej0Z8j9bRiCKWVJwEtMr/ZxcPtjxu5KeGn+HA39Dtqi8BWa5dGEFQNQJnCU1j+1JWWVO8wKpAxkjyIjAbfM8sfXTbOIUQgSo32rAkbO2BKf9WiseQRayBnBpcsl3pEYZqk2E/IEQteZ

=================================================================
==31811==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 7 byte(s) in 1 object(s) allocated from:
    #0 0x7f6fc1b7ba38 in __interceptor_calloc (/lib64/libasan.so.4+0xdea38)
    #1 0x7f6fc15bb607 in slapi_ch_calloc /home/william/development/389ds/ds/ldap/servers/slapd/ch_malloc.c:180
    #2 0x40201a in decode /home/william/development/389ds/ds/ldap/servers/slapd/tools/pwenc.c:68
    #3 0x402e40 in main /home/william/development/389ds/ds/ldap/servers/slapd/tools/pwenc.c:242
    #4 0x7f6fbff3a009 in __libc_start_main (/lib64/libc.so.6+0x21009)

Objects leaked above:
0x60200001c1d0 (7 bytes)

SUMMARY: AddressSanitizer: 7 byte(s) leaked in 1 allocation(s).

Metadata Update from @spichugi:
- Issue assigned to spichugi

6 years ago

Metadata Update from @spichugi:
- Custom field component adjusted to None
- Custom field origin adjusted to None
- Custom field reviewstatus adjusted to ack
- Custom field type adjusted to None
- Custom field version adjusted to None

6 years ago

Metadata Update from @spichugi:
- Custom field reviewstatus adjusted to review (was: ack)

6 years ago

Metadata Update from @mreynolds:
- Custom field reviewstatus adjusted to ack (was: review)

6 years ago

Metadata Update from @spichugi:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

6 years ago

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/389ds/389-ds-base/issues/2570

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @spichugi:
- Issue close_status updated to: wontfix (was: fixed)

3 years ago

Login to comment on this ticket.

Metadata