ruby-changes:20907
From: tadf <ko1@a...>
Date: Sat, 13 Aug 2011 08:50:16 +0900 (JST)
Subject: [ruby-changes:20907] tadf:r32956 (ruby_1_9_3): * ext/date/date_core.c: .
tadf 2011-08-13 08:50:07 +0900 (Sat, 13 Aug 2011) New Revision: 32956 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32956 Log: * ext/date/date_core.c: [ruby-core:38855]. Modified files: branches/ruby_1_9_3/ChangeLog branches/ruby_1_9_3/ext/date/date_core.c Index: ruby_1_9_3/ChangeLog =================================================================== --- ruby_1_9_3/ChangeLog (revision 32955) +++ ruby_1_9_3/ChangeLog (revision 32956) @@ -1,3 +1,7 @@ +Sat Aug 13 08:49:05 2011 Tadayoshi Funaba <tadf@d...> + + * ext/date/date_core.c: [ruby-core:38855]. + Sat Aug 13 03:41:37 2011 Eric Hodel <drbrain@s...> * backport r32953 from trunk. Index: ruby_1_9_3/ext/date/date_core.c =================================================================== --- ruby_1_9_3/ext/date/date_core.c (revision 32955) +++ ruby_1_9_3/ext/date/date_core.c (revision 32956) @@ -4089,6 +4089,9 @@ rb_warning("invalid start is ignored"); } + if (NIL_P(hash)) + rb_raise(rb_eArgError, "invalid date"); + if (NIL_P(ref_hash("jd")) && NIL_P(ref_hash("yday")) && !NIL_P(ref_hash("year")) && @@ -7853,6 +7856,9 @@ rb_warning("invalid start is ignored"); } + if (NIL_P(hash)) + rb_raise(rb_eArgError, "invalid date"); + if (NIL_P(ref_hash("jd")) && NIL_P(ref_hash("yday")) && !NIL_P(ref_hash("year")) && -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/