1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/syck
yugui eff01662e4 merges r31441,r31442 and r31443 from trunk into ruby_1_9_2.
--
YAML.load time correctly parse usecs smaller than 1 fixes #4571

Signed-off-by: URABE, Shyouhei <shyouhei@ruby-lang.org>
--
ChangeLog for it
--
* ext/syck/rubyext.c (mktime_do): avoid buffer overrun, by
  silently ignoring lesser significant digits.  Required buffer
  length can be computable so you might at first think of
  allocating enough memory space on the fly using alloca().  That
  is a wrong idea because when using alloca there is always risk
  of integer overflow.  A function that accepts outer-process
  resources like this should not blindly trust its inputs.  In
  this particular case we just want to generate miliseconds
  resolution by strtod() so the string in question needs no more
  length than what we originally have.  Ignoring lesser
  significant digits should suffice I believe.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-31 00:11:35 +00:00
..
lib merges r30763 from trunk into ruby_1_9_2. 2011-03-28 13:40:59 +00:00
.cvsignore add extconf.h to .cvsignore. 2006-06-24 01:15:08 +00:00
bytecode.c * ext/**/*.[ch]: removed trailing spaces. 2010-04-22 08:04:13 +00:00
depend * ext/syck/depend: commit miss. 2004-05-15 05:29:30 +00:00
emitter.c * ext/syck/emitter.c (syck_scan_scalar): set SCAN_WHITEEDGE flag 2010-05-02 23:15:08 +00:00
extconf.rb Initial checkin of YAML substances. 2003-05-09 21:25:50 +00:00
gram.c * ext/**/*.[ch]: removed trailing spaces. 2010-04-22 08:04:13 +00:00
gram.h * lib/yaml.rb: reworking YAML::Stream to use the new 2005-09-13 03:58:33 +00:00
handler.c * ext/**/*.[ch]: removed trailing spaces. 2010-04-22 08:04:13 +00:00
implicit.c merges r27946 from trunk into ruby_1_9_2. 2010-05-23 12:18:56 +00:00
node.c * ext/**/*.[ch]: removed trailing spaces. 2010-04-22 08:04:13 +00:00
rubyext.c merges r31441,r31442 and r31443 from trunk into ruby_1_9_2. 2011-05-31 00:11:35 +00:00
syck.c * ext/**/*.[ch]: removed trailing spaces. 2010-04-22 08:04:13 +00:00
syck.h * ext/**/*.[ch]: removed trailing spaces. 2010-04-22 08:04:13 +00:00
token.c * ext/**/*.[ch]: removed trailing spaces. 2010-04-22 08:04:13 +00:00
yaml2byte.c * ext/syck/yaml2byte.c (bytestring_append, bytestring_extend): 2010-04-24 00:44:42 +00:00
yamlbyte.h merges r27944 from trunk into ruby_1_9_2. 2010-05-23 12:18:51 +00:00