[ruby-cvs:55447] naruse:r48297 (trunk): * re.c (unescape_nonascii): cast -1 for the case char is unsigned char.

naruse at ruby-lang.org naruse at ruby-lang.org
Thu Nov 6 19:42:11 JST 2014


naruse	2014-11-06 19:42:10 +0900 (Thu, 06 Nov 2014)

  New Revision: 48297

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

  Log:
    * re.c (unescape_nonascii): cast -1 for the case char is unsigned char.
      If char is signed char, for example gcc for ARM or ppc64, it caused
      infinite loop.
      http://kmuto.jp/build-ruby/arm/ruby-trunk/log/20141106T013005Z.fail.html.gz
      http://rubyci.blob.core.windows.net/f19p8/ruby-trunk/log/20141106T090217Z.fail.html.gz

  Modified files:
    trunk/ChangeLog
    trunk/re.c


More information about the ruby-cvs mailing list