[ruby-cvs:66892] rhe:r59714 (trunk): object.c: fix potential oob write in rb_str_to_dbl()

rhe at ruby-lang.org rhe at ruby-lang.org
Fri Sep 1 17:16:38 JST 2017


rhe	2017-09-01 17:16:38 +0900 (Fri, 01 Sep 2017)

  New Revision: 59714

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

  Log:
    object.c: fix potential oob write in rb_str_to_dbl()
    
    Ensure space for the terminating NUL byte. Note that this code path is
    reachable only when Ruby is compiled with SHARABLE_MIDDLE_SUBSTRING=1.

  Modified files:
    trunk/object.c


More information about the ruby-cvs mailing list