[ruby-cvs:69975] nobu:r62841 (trunk): parse.y: NUL-terminate ruby_sourcefile

nobu at ruby-lang.org nobu at ruby-lang.org
Mon Mar 19 23:12:00 JST 2018


nobu	2018-03-19 23:12:00 +0900 (Mon, 19 Mar 2018)

  New Revision: 62841

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

  Log:
    parse.y: NUL-terminate ruby_sourcefile
    
    * parse.y (yycompile): in some cases (warning, error, dtrace,...),
      ruby_sourcefile is expected to be NUL-terminated, so ensure it.
    
    * template/prelude.c.tmpl (prelude_name): NUL-terminate to get rid
      of copying static data.

  Modified files:
    trunk/parse.y
    trunk/template/prelude.c.tmpl


More information about the ruby-cvs mailing list