Re: kiconv related enhancement

From: R. Imura <imura_at_ryu16.org>
Date: Wed, 24 Aug 2005 21:49:45 +0900
Hi,

On Tue, Aug 23, 2005 at 04:34:56PM +0200, Rudolf Cejka wrote:
> Please, do you have a plan to fix ranges too? You have either allocate
> sufficient space (ICONV_CSNMAXLEN + 1 instead of just ICONV_CSNMAXLEN),
> or check for string length >= ICONV_CSNMAXLEN instead of > ICONV_CSNMAXLEN.
> The second problem is that some strcpy()s could overwrite one byte
> after allocated space and strnpcy()s could produce unterminated
> strings - everything is around egrep -r "ICONV_C(S|NV)NMAXLEN" /usr/src.
> The last problem is that sys/libkern/iconv.c does not check the length
> of from and to in iconv_sysctl_add(), which can be source of unexpected
> results.

Thanks.  Fixed.
I remember that this is the second time you ask me about the issue.
I apologize that I'm late, and thank you for testing new patches.

Redards,
- R. Imura
Received on Wed Aug 24 2005 - 10:49:58 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:42 UTC