[ruby-cvs:69462] nobu:r62281 (trunk): mjit.c: fix buffer overflow

nobu at ruby-lang.org nobu at ruby-lang.org
Wed Feb 7 22:26:09 JST 2018


nobu	2018-02-07 22:26:09 +0900 (Wed, 07 Feb 2018)

  New Revision: 62281

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

  Log:
    mjit.c: fix buffer overflow
    
    * mjit.c (sprint_uniq_filename): get rid of silent buffer
      overflow.
    
    * mjit.c (get_uniq_filename, convert_unit_to_func): allocate
      enough buffer before formatting.
    
    * mjit.c (convert_unit_to_func): use DLEXT instead of hard coded
      extension.

  Modified files:
    trunk/mjit.c


More information about the ruby-cvs mailing list