Re: [SSSD] [PATCH] NSS: Fix off-by-one error in parse_getservbyname

2012-09-13 Thread Jakub Hrozek
On Wed, Sep 12, 2012 at 03:51:22PM +0200, Pavel Březina wrote: > On 09/11/2012 05:48 PM, Jakub Hrozek wrote: > >https://fedorahosted.org/sssd/ticket/1438 > > > >This off-by-one bug would hit us especially when using the negative > >cache, I guess it was because we would strdup and later retrieve >

Re: [SSSD] [PATCH] NSS: Fix off-by-one error in parse_getservbyname

2012-09-12 Thread Pavel Březina
On 09/11/2012 05:48 PM, Jakub Hrozek wrote: https://fedorahosted.org/sssd/ticket/1438 This off-by-one bug would hit us especially when using the negative cache, I guess it was because we would strdup and later retrieve something else than intended.. The same bug does not exist in the similar pa

[SSSD] [PATCH] NSS: Fix off-by-one error in parse_getservbyname

2012-09-11 Thread Jakub Hrozek
https://fedorahosted.org/sssd/ticket/1438 This off-by-one bug would hit us especially when using the negative cache, I guess it was because we would strdup and later retrieve something else than intended.. The same bug does not exist in the similar parse_getservbyport function. I managed to repr