mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/syck/emitter.c (syck_scan_scalar): avoid accessing
uninitialized array element. a patch from Pat Eyler <rubypate at gmail.com>. [ruby-core:07809] * array.c (rb_ary_fill): initialize local variables first. a patch from Pat Eyler <rubypate at gmail.com>. [ruby-core:07810] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3d2d405046
commit
704fbef5b6
3 changed files with 11 additions and 2 deletions
|
|
@ -1,3 +1,12 @@
|
|||
Thu May 4 02:24:16 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* ext/syck/emitter.c (syck_scan_scalar): avoid accessing
|
||||
uninitialized array element. a patch from Pat Eyler
|
||||
<rubypate at gmail.com>. [ruby-core:07809]
|
||||
|
||||
* array.c (rb_ary_fill): initialize local variables first. a
|
||||
patch from Pat Eyler <rubypate at gmail.com>. [ruby-core:07810]
|
||||
|
||||
Wed May 3 02:12:07 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* ext/socket/socket.c (make_hostent_internal): accept ai_family
|
||||
|
|
|
|||
2
array.c
2
array.c
|
|
@ -2223,7 +2223,7 @@ rb_ary_fill(argc, argv, ary)
|
|||
VALUE ary;
|
||||
{
|
||||
VALUE item, arg1, arg2;
|
||||
long beg = 0, end, len;
|
||||
long beg = 0, end = 0, len = 0;
|
||||
VALUE *p, *pend;
|
||||
int block_p = Qfalse;
|
||||
|
||||
|
|
|
|||
|
|
@ -559,7 +559,7 @@ syck_scan_scalar( int req_width, char *cursor, long len )
|
|||
}
|
||||
if ( ( cursor[0] == '-' || cursor[0] == ':' ||
|
||||
cursor[0] == '?' || cursor[0] == ',' ) &&
|
||||
( cursor[1] == ' ' || cursor[1] == '\n' || len == 1 ) )
|
||||
( len == 1 || cursor[1] == ' ' || cursor[1] == '\n' ) )
|
||||
{
|
||||
flags |= SCAN_INDIC_S;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue