[Opendnssec-develop] string handling

Jakob Schlyter jakob at kirei.se
Thu Apr 9 18:14:31 UTC 2009


On 9 apr 2009, at 13.50, Rick van Rein wrote:

> I like strlcat/strlcpy more than strncat/strncpy, but there's one  
> worry
> as far as I'm concerned.  Their spec has an exceptional case if the  
> size
> argument is 0.  I if had designed the function I would have exited on
> those grounds, or at least raise a signal that could be caught.

I'm not worried at all. based on my experience from OpenBSD, this is a  
academic problem give how the functions are being used.

> We do need to be mindful about such things as much as we need to be  
> mindful
> about potential misinterpretations of strncat/strncpy.

or we do need to be mindful about getting a signer written instead of  
ratholing.
sorry if I'm rude, but this is really a non-problem at this point.

	jakob




More information about the Opendnssec-develop mailing list