diff options
author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-02-02 15:02:49 +0000 |
---|---|---|
committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-02-02 15:02:49 +0000 |
commit | 241afada7b081a30c4c9ab1b80e254d443a3bcb2 (patch) | |
tree | 79b7731378fcae7dc991cc9e8ef590dee2bb5090 /ext/syck/emitter.c | |
parent | bdd23e6a099b3588424a7fc36642b980674d21db (diff) | |
download | ruby-241afada7b081a30c4c9ab1b80e254d443a3bcb2.tar.gz ruby-241afada7b081a30c4c9ab1b80e254d443a3bcb2.tar.xz ruby-241afada7b081a30c4c9ab1b80e254d443a3bcb2.zip |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@9876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck/emitter.c')
-rw-r--r-- | ext/syck/emitter.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/ext/syck/emitter.c b/ext/syck/emitter.c index 9fe699f9e..f8d7b548a 100644 --- a/ext/syck/emitter.c +++ b/ext/syck/emitter.c @@ -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'; } /* |