Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177546236
D41947.1794679162.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
864 B
Referenced Files
None
Subscribers
None
D41947.1794679162.diff
View Options
diff --git a/lib/libc/regex/regcomp.c b/lib/libc/regex/regcomp.c
--- a/lib/libc/regex/regcomp.c
+++ b/lib/libc/regex/regcomp.c
@@ -828,10 +828,10 @@
handled = false;
assert(MORE()); /* caller should have ensured this */
- c = GETNEXT();
+ c = (uch)GETNEXT();
if (c == '\\') {
(void)REQUIRE(MORE(), REG_EESCAPE);
- cc = GETNEXT();
+ cc = (uch)GETNEXT();
c = BACKSL | cc;
#ifdef LIBREGEX
if (p->gnuext) {
@@ -992,7 +992,7 @@
int ndigits = 0;
while (MORE() && isdigit((uch)PEEK()) && count <= DUPMAX) {
- count = count*10 + (GETNEXT() - '0');
+ count = count*10 + ((uch)GETNEXT() - '0');
ndigits++;
}
@@ -1302,7 +1302,7 @@
if ((p->pflags & PFLAG_LEGACY_ESC) != 0)
return (true);
- if (isalpha(ch) || ch == '\'' || ch == '`')
+ if (iswalpha(ch) || ch == '\'' || ch == '`')
return (false);
return (true);
#ifdef NOTYET
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 14, 5:59 PM (5 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41729576
Default Alt Text
D41947.1794679162.diff (864 B)
Attached To
Mode
D41947: regcomp: use unsigned char when testing for escapes
Attached
Detach File
Event Timeline