https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275831
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: [email protected]
Reporter: [email protected]
Please compare lib/libc/locale/wcstoimax.c to lib/libc/locale/wcstoumax.c and
you will see that the former file uses the expression:
else if (c >= 'a' && c <= 'z')
while the latter file uses the expression:
else if (c >= L'a' && c <= 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 present
in the initial version of the source file from 2002.
--
You are receiving this mail because:
You are the assignee for the bug.