mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/syck/emitter.c (syck_emitter_write): should not set '\0' on
emitter's marker. if marker points to the end of buffer, this is buffer overrun. (ex: YAML.dump("." * 12288)) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
63b7978625
commit
8913015f04
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Fri Feb 3 00:01:31 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
||||
|
||||
* ext/syck/emitter.c (syck_emitter_write): should not set '\0' on
|
||||
emitter's marker. if marker points to the end of buffer, this is
|
||||
buffer overrun. (ex: YAML.dump("." * 12288))
|
||||
|
||||
Thu Feb 2 17:13:01 2006 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser#get_tk): added
|
||||
|
|
|
@ -314,7 +314,6 @@ syck_emitter_write( SyckEmitter *e, char *str, long len )
|
|||
*/
|
||||
S_MEMCPY( e->marker, str, char, len );
|
||||
e->marker += len;
|
||||
e->marker[0] = '\0';
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue