* ext/syck/syck.c (syck_io_str_read): get rid of buffer overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c3c0468f33
commit
3fb4d657d8
@ -1,3 +1,7 @@
|
|||||||
|
Mon Dec 8 15:03:30 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/syck/syck.c (syck_io_str_read): get rid of buffer overflow.
|
||||||
|
|
||||||
Mon Dec 8 13:02:11 2003 Minero Aoki <aamine@loveruby.net>
|
Mon Dec 8 13:02:11 2003 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
* lib/uri/common.rb: new method URI.regexp. [ruby-dev:22121]
|
* lib/uri/common.rb: new method URI.regexp. [ruby-dev:22121]
|
||||||
|
@ -88,7 +88,7 @@ syck_io_str_read( char *buf, SyckIoStr *str, long max_size, long skip )
|
|||||||
}
|
}
|
||||||
if ( beg < str->ptr )
|
if ( beg < str->ptr )
|
||||||
{
|
{
|
||||||
len = ( str->ptr - beg ) + 1;
|
len = ( str->ptr - beg );
|
||||||
S_MEMCPY( buf + skip, beg, char, len );
|
S_MEMCPY( buf + skip, beg, char, len );
|
||||||
}
|
}
|
||||||
len += skip;
|
len += skip;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user