For new tickets please use the main OpenSC Trac (direct link)

Ticket #17 (new defect)

Opened 5 years ago

Last modified 22 months ago

Pam_PKCS11 LDAP-mapper references to wrong memory

Reported by: Ludovic Owned by: somebody
Priority: normal Milestone:
Component: component1 Version:
Severity: major Keywords:
Cc:

Description

from http://www.opensc-project.org/pipermail/opensc-user/2007-May/001726.html

Hi @ll,

I try using the LDAP-mapper of Pam_PKCS11 (v.0.5.3), but the following line

static int get_http(uri_t *uri, unsigned char **data, size_t *length,
int rec_level)
{
  [...]
      unsigned char *b = (unsigned char *)realloc(buf, (bufsize <<= 1));
/* line 377 */
  [...]
}

cases an

login: myuser
Password for token CardOS Token GDOv1:
[...]
DEBUG:uri.c:334 connecting...
DEBUG:uri.c:358 receiving ...
*** glibc detected *** free(): invalid next size (normal): 0x0806a768
***

This error only happens if I try a login procedure with login. It doesn't happen if I use pklogin_finder!!!

Best regards

Philippe

-- Siemens AG

Change History

comment:1 Changed 22 months ago by ludovic

Hello,

Can you check this bug is still present in version 0.6.3 (released yesterday) of pam_pkcs11?

Note: See TracTickets for help on using tickets.