mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
2 changed files with 5 additions and 1 deletions
|
@ -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>
|
||||
|
||||
* 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 )
|
||||
{
|
||||
len = ( str->ptr - beg ) + 1;
|
||||
len = ( str->ptr - beg );
|
||||
S_MEMCPY( buf + skip, beg, char, len );
|
||||
}
|
||||
len += skip;
|
||||
|
|
Loading…
Reference in a new issue