tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: strtok_r strange failure



In article <1lgkzn8.25a48o1c86h92M%manu%netbsd.org@localhost>,
Emmanuel Dreyfus <manu%netbsd.org@localhost> wrote:
>Hi
>
>I have thins strange failure in strtok_r() on NetBSD-6.1.2/amd64
>
>Breakpoint 1, load_descriptor (xmlnode=0x7f7ff7bdd680, 
>    provider=0x7f7ff7b05400, role=LASSO_PROVIDER_ROLE_IDP) at
>provider.c:356
>356             LassoProviderPrivate *pdata = provider->private_data;
>(gdb) n
>358             int counter = 0;
>(gdb) 
>361             value = getSaml2MdProp(xmlnode,
>(gdb) 
>363             token = strtok_r((char*) value, " ", &saveptr);
>(gdb) print value
>$1 = (xmlChar *) 0x7f7ff7bc63e0 "urn:oasis:names:tc:SAML:2.0:protocol"
>(gdb) n
>364             while (token) {
>(gdb) print token
>$2 = 0xfffffffff7bc63e0 <Address 0xfffffffff7bc63e0 out of bounds>
>
>token is almost correct: only the upper 32 bytes are wrong. Any idea of
>what is going on?

Prototype not in scope?

christos



Home | Main Index | Thread Index | Old Index