Date: Tue, 9 Feb 1999 08:19:08 +0300 From: "Igor Gousarov" <igusarov@chat.ru> To: <freebsd-hackers@FreeBSD.ORG> Subject: Unsafe code in libc in 3.0-RELEASE FreeBSD i386 Message-ID: <199902090823.IAA12593@pc2etp.mephi.ru>
next in thread | raw e-mail | index | archive | help
The source file for setlocale function (/usr/src/lib/libc/locale/setlocale.c) contains the line which might put libc into infinite loop: Line 172: while ( i < _LC_LAST ) Should be replaced with Line 172: for ( ; i < _LC_LAST ; i++ ) And there's one more line to correct in the same source file: Line 178: if (category) This line rely on the fact that LC_ALL is defined to be equal 0. Correct statement should look like Line 178: if ( category != LC_ALL ) --------------------------------------------------- Igor A. Goussarov, igusarov@chat.ru, ICQ UIN 11267740 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902090823.IAA12593>