mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* thread.c (update_coverage): Do not track coverage in loaded files
after Coverage.result. Avoids out-of-bounds access. [Bug #12237] * ext/coverage/coverage.c (coverage_clear_result_i): document. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f0060b81c6
commit
8dd2435877
3 changed files with 9 additions and 1 deletions
|
@ -32,6 +32,7 @@ rb_coverage_start(VALUE klass)
|
|||
return Qnil;
|
||||
}
|
||||
|
||||
/* Make coverage arrays empty so old covered files are no longer tracked. */
|
||||
static int
|
||||
coverage_clear_result_i(st_data_t key, st_data_t val, st_data_t h)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue