Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Aug 2017 16:21:06 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 221224] setlocale.c does not properly detect if locale contains too many slashes
Message-ID:  <bug-221224-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221224

            Bug ID: 221224
           Summary: setlocale.c does not properly detect if locale
                    contains too many slashes
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: leonard.r.koenig@googlemail.com

Overview
There's a loop at [1] which tries to find the first character after a numbe=
r of
consecutive slashes.  In line 164 i =3D=3D _LC_LAST is checked which should=
 be
always false at this location, since it was set to 1 a few lines before and
never changed since.
But even if i was not set in this loop, it'd still wouldn't make any sense,
since then i would always have the value _LC_LAST because of the very first
loop in the function.

Steps to Reproduce
call setlocale(LC_ALL, "/some////////string/");

Actual Results / Expected results:
Unclear

----

[1]
https://svnweb.freebsd.org/base/head/lib/libc/locale/setlocale.c?revision=
=3D314436&view=3Dmarkup#l157

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-221224-8>