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

possible undefined behaviour in openldap-19981116



Hi,

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 );

I don't have the standard right in front of me but i vaguely remember
that this may lead to undefined behaviour. In order to be on the
sure side, a test might be added to configure whether this really
works.

Regards

J.Pietschmann