[ruby-cvs:57819] nobu:r50671 (trunk): parse.y: check NTH_REF range

nobu at ruby-lang.org nobu at ruby-lang.org
Fri May 29 14:39:05 JST 2015


nobu	2015-05-29 14:39:03 +0900 (Fri, 29 May 2015)

  New Revision: 50671

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

  Log:
    parse.y: check NTH_REF range
    
    * compile.c (iseq_compile_each): out of range NTH_REF is always
      nil.
    * parse.y (parse_numvar): check overflow of NTH_REF and range.
      [ruby-core:69393] [Bug #11192]
    * util.c (ruby_scan_digits): make public and add length parameter.

  Modified files:
    trunk/ChangeLog
    trunk/compile.c
    trunk/internal.h
    trunk/parse.y
    trunk/test/ruby/test_syntax.rb
    trunk/util.c


More information about the ruby-cvs mailing list