[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: possible undefined behaviour in openldap-19981116



Jorg Pietschmann writes:
> there are quite some occurances where strcpy is applied to
> overlapping, source and desitnation, like this from slapd/config.c
> (strtok_quote):
> 
>  strcpy( next, next + 1 );

Replaced with SAFEMEMCPY( next, next + 1, strlen( next + 1 ) + 1 );
in the places I noticed with a quick grep.

-- 
Hallvard