commit b59b84bdb330f73de759ae19cc75e189e708d4ad
parent c32eb5ad0784298cb7afebc89606ac6a8d0b87c2
Author: ukai <ukai>
Date: Thu, 10 Jan 2002 16:11:32 +0000
[w3m-dev 02818]
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat:
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,8 @@
+2002-01-11 Fumitoshi UKAI <ukai@debian.or.jp>
+
+ * [w3m-dev 02818]
+ * regex.c (regmatch_iter): return 0 if out of range
+
2002-01-11 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 02817]
diff --git a/regex.c b/regex.c
@@ -554,6 +554,9 @@ regmatch_iter(struct MatchingContext1 *c,
c->re++;
c->firstp = 0;
}
+ if (c->str >= c->end_p) {
+ return 0;
+ }
}
c->lastpos = c->str;
#ifdef REGEX_DEBUG