Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Dec 2023 22:08:58 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 275831] wcstoimax function is missing 'L' qualifier on a character constant
Message-ID:  <bug-275831-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 275831
           Summary: wcstoimax function is missing 'L' qualifier on a
                    character constant
           Product: Base System
           Version: Unspecified
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: Paul.Green@stratus.com

Please compare lib/libc/locale/wcstoimax.c to lib/libc/locale/wcstoumax.c a=
nd
you will see that the former file uses the expression:

else if (c >=3D 'a' && c <=3D 'z')

while the latter file uses the expression:

else if (c >=3D L'a' && c <=3D L'z')

The latter expression is correct.

This expression ensures that wide character input strings presented to
wcstoimax are limited to the characters 0-9, A-Z, and a-z. This bug is pres=
ent
in the initial version of the source file from 2002.

--=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-275831-227>