summaryrefslogtreecommitdiff
path: root/spec/ruby/shared/string
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-27 07:34:21 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-27 07:34:21 +0000
commitb7561dafb95b637911ddb6b667e7a24c18cc08d0 (patch)
treee498b655233fa1d7b92c56884a018e9d0e068eb0 /spec/ruby/shared/string
parent4beec6675716f8189be680e6bb966f4db44a7e53 (diff)
compile.c: prevent out-of-bound initialization of coverage counters
The coverage counters is initialized with `counter[lineno - 1] = 0`, but lineno may be 0, which led to write access for index -1. [ruby-core:90085] [Bug#15346] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/shared/string')
0 files changed, 0 insertions, 0 deletions