Descriptionruntime: fix heap corruption during GC
The 'n' variable is used during rescan initiation in GC_END case,
but it's overwritten with chan capacity in GC_CHAN case.
As the result rescan is done with the wrong object size.
Fixes issue 5554.
Patch Set 1 #Patch Set 2 : diff -r e4db68a39f50 https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 3 : diff -r e4db68a39f50 https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 4 : diff -r e4db68a39f50 https://dvyukov%40google.com@code.google.com/p/go/ #
MessagesTotal messages: 4
|