Date: Tue, 9 Feb 1999 08:20:27 -0800 (PST) From: Archie Cobbs <archie@whistle.com> To: igusarov@chat.ru (Igor Gousarov) Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Unsafe code in libc in 3.0-RELEASE FreeBSD i386 Message-ID: <199902091620.IAA32532@bubba.whistle.com> In-Reply-To: <199902090823.IAA12593@pc2etp.mephi.ru> from Igor Gousarov at "Feb 9, 99 08:19:08 am"
next in thread | previous in thread | raw e-mail | index | archive | help
Igor Gousarov writes: > 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 ) Please file a PR to make sure that this doesn't "slip through the cracks"... Thanks, -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com 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?199902091620.IAA32532>