[ruby-cvs:55819] nobu:r48669 (trunk): re.c: check if onig_region_copy failed

nobu at ruby-lang.org nobu at ruby-lang.org
Tue Dec 2 04:43:13 JST 2014


nobu	2014-12-02 04:43:10 +0900 (Tue, 02 Dec 2014)

  New Revision: 48669

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

  Log:
    re.c: check if onig_region_copy failed
    
    * re.c (CHECK_REGION_COPIED): onig_region_copy() can fail when
      memory exhausted but returns nothing, so check by if allocated.

  Modified files:
    trunk/ChangeLog
    trunk/ext/strscan/strscan.c
    trunk/re.c


More information about the ruby-cvs mailing list