From e8d5304080fb4bdfbad6005089fcf14b6850aae8 Mon Sep 17 00:00:00 2001 From: tadf Date: Wed, 20 Apr 2011 12:34:01 +0000 Subject: * ext/date/date_strptime.c (date__strptime_internal): do not overwrite local variables. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ ext/date/date_strptime.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 987fda39f2..8563299b33 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Apr 20 21:32:11 2011 Tadayoshi Funaba + + * ext/date/date_strptime.c (date__strptime_internal): do not + overwrite local variables. + Wed Apr 20 14:41:28 2011 NARUSE, Yui * string.c (rb_str_each_line): check string's length when compare diff --git a/ext/date/date_strptime.c b/ext/date/date_strptime.c index 27f0893efc..548e6a656d 100644 --- a/ext/date/date_strptime.c +++ b/ext/date/date_strptime.c @@ -576,6 +576,7 @@ date__strptime_internal(const char *str, size_t slen, } b = rb_backref_get(); + rb_match_busy(b); m = f_match(pat, rb_usascii_str_new2(&str[si])); if (!NIL_P(m)) { -- cgit v1.2.3