Page MenuHomeFreeBSD

D10541.id27882.diff
No OneTemporary

D10541.id27882.diff

Index: lib/libc/regex/regcomp.c
===================================================================
--- lib/libc/regex/regcomp.c
+++ lib/libc/regex/regcomp.c
@@ -444,6 +444,8 @@
(void)REQUIRE(!MORE() || !isdigit((uch)PEEK()), REG_BADRPT);
/* FALLTHROUGH */
default:
+ if (p->error != 0)
+ return;
p->next--;
wc = WGETNEXT();
ordinary(p, wc);
@@ -651,6 +653,8 @@
(void)REQUIRE(starordinary, REG_BADRPT);
/* FALLTHROUGH */
default:
+ if (p->error != 0)
+ return(0); /* Definitely not $... */
p->next--;
wc = WGETNEXT();
ordinary(p, wc);

File Metadata

Mime Type
text/plain
Expires
Sun, Jan 19, 7:20 AM (9 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15932750
Default Alt Text
D10541.id27882.diff (575 B)

Event Timeline