ruby-changes:35401
From: nagachika <ko1@a...>
Date: Wed, 10 Sep 2014 03:23:23 +0900 (JST)
Subject: [ruby-changes:35401] nagachika:r47483 (trunk): * gc.c (init_mark_stack): MEMZERO() receive type as 2nd argument instead
nagachika 2014-09-10 03:23:11 +0900 (Wed, 10 Sep 2014) New Revision: 47483 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47483 Log: * gc.c (init_mark_stack): MEMZERO() receive type as 2nd argument instead of size. Coverity Scan found this bug. Modified files: trunk/ChangeLog trunk/gc.c Index: ChangeLog =================================================================== --- ChangeLog (revision 47482) +++ ChangeLog (revision 47483) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Sep 10 03:12:12 2014 CHIKANAGA Tomoyuki <nagachika@r...> + + * gc.c (init_mark_stack): MEMZERO() receive type as 2nd argument instead + of size. + Coverity Scan found this bug. + Tue Sep 9 21:55:39 2014 Masaki Suketa <masaki.suketa@n...> * ext/win32ole/sample/excel2.rb: remove some commented-out code. Index: gc.c =================================================================== --- gc.c (revision 47482) +++ gc.c (revision 47483) @@ -3544,7 +3544,7 @@ init_mark_stack(mark_stack_t *stack) https://github.com/ruby/ruby/blob/trunk/gc.c#L3544 { int i; - MEMZERO(stack, sizeof(mark_stack_t), 1); + MEMZERO(stack, mark_stack_t, 1); stack->index = stack->limit = STACK_CHUNK_SIZE; stack->cache_size = 0; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/