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/>
index | next in thread | raw e-mail
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: bugs@FreeBSD.org Reporter: Paul.Green@stratus.com 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.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-275831-227>
