[ruby-cvs:73125] mame:r66025 (trunk): compile.c: prevent out-of-bound initialization of coverage counters

mame at ruby-lang.org mame at ruby-lang.org
Tue Nov 27 16:34:21 JST 2018


mame	2018-11-27 16:34:21 +0900 (Tue, 27 Nov 2018)

  New Revision: 66025

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66025

  Log:
    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]

  Modified files:
    trunk/compile.c


More information about the ruby-cvs mailing list