mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/syck/syck.c (syck_move_tokens): should avoid negative
memmove. [ruby-list:42625] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
99bb7615ca
commit
88d1f04e9b
2 changed files with 7 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Aug 7 15:55:08 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/syck/syck.c (syck_move_tokens): should avoid negative
|
||||||
|
memmove. [ruby-list:42625]
|
||||||
|
|
||||||
Mon Aug 7 14:37:48 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Mon Aug 7 14:37:48 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* configure.in, common.mk: AIX link issue. a patch from Yutaka
|
* configure.in, common.mk: AIX link issue. a patch from Yutaka
|
||||||
|
|
|
||||||
|
|
@ -412,7 +412,8 @@ syck_move_tokens( SyckParser *p )
|
||||||
skip = p->limit - p->token;
|
skip = p->limit - p->token;
|
||||||
if ( ( count = p->token - p->buffer ) )
|
if ( ( count = p->token - p->buffer ) )
|
||||||
{
|
{
|
||||||
S_MEMMOVE( p->buffer, p->token, char, skip );
|
if (skip > 0)
|
||||||
|
S_MEMMOVE( p->buffer, p->token, char, skip );
|
||||||
p->token = p->buffer;
|
p->token = p->buffer;
|
||||||
p->marker -= count;
|
p->marker -= count;
|
||||||
p->cursor -= count;
|
p->cursor -= count;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue