diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-07-16 04:01:43 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-07-16 04:01:43 +0000 |
commit | b13e6e39feb604143d06d0b496c975828e73aa1d (patch) | |
tree | 6d9d844e6be1cabfab1fcc695f0d97535cf4807c /regex.c | |
parent | f7d19237c6037a9efe3eab7344e99704da1df961 (diff) |
* eval.c (proc_invoke): should preserve iter status for embedded
frame in the block.
* file.c (rb_file_s_expand_path): may overrun buffer on stack.
* regex.c (re_search): should consider reverse search.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regex.c')
-rw-r--r-- | regex.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -12,7 +12,7 @@ Library General Public License for more details. You should have received a copy of the GNU Library General Public - License along with the GNU C Library; see the file LGPL. If not, + License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Multi-byte extension added May, 1993 by t^2 (Takahiro Tanimoto) @@ -3264,7 +3264,7 @@ re_search(bufp, string, size, startpos, range, regs) } if (startpos > size) return -1; - if ((anchor || !bufp->can_be_null) && size > 0 && startpos == size) + if ((anchor || !bufp->can_be_null) && range > 0 && size > 0 && startpos == size) return -1; val = re_match(bufp, string, size, startpos, regs); if (val >= 0) return startpos; |