[前][次][番号順一覧][スレッド一覧]

ruby-changes:45677

From: rhe <ko1@a...>
Date: Wed, 1 Mar 2017 19:15:59 +0900 (JST)
Subject: [ruby-changes:45677] rhe:r57750 (trunk): openssl: avoid segfault during running tests on Ubuntu trusty

rhe	2017-03-01 19:15:55 +0900 (Wed, 01 Mar 2017)

  New Revision: 57750

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

  Log:
    openssl: avoid segfault during running tests on Ubuntu trusty
    
    Import the commit 6693a549d673 ("test/test_pkey_ec: do not use dummy 0
    order", 2017-02-03) from upstream. Hopefully this will fix the segfault
    on RubyCI icc16-x64:
    
      http://rubyci.org/logs/rubyci.s3.amazonaws.com/icc-x64/ruby-trunk/log/20170301T050002Z.fail.html.gz

  Modified files:
    trunk/test/openssl/test_pkey_ec.rb
Index: test/openssl/test_pkey_ec.rb
===================================================================
--- test/openssl/test_pkey_ec.rb	(revision 57749)
+++ test/openssl/test_pkey_ec.rb	(revision 57750)
@@ -282,7 +282,7 @@ class OpenSSL::TestEC < OpenSSL::PKeyTes https://github.com/ruby/ruby/blob/trunk/test/openssl/test_pkey_ec.rb#L282
       group = OpenSSL::PKey::EC::Group.new(:GFp, 17, 2, 2)
       group.point_conversion_form = :uncompressed
       gen = OpenSSL::PKey::EC::Point.new(group, OpenSSL::BN.new("040501", 16))
-      group.set_generator(gen, 0, 0)
+      group.set_generator(gen, 19, 1)
 
       # 3 * (6, 3) = (16, 13)
       point_a = OpenSSL::PKey::EC::Point.new(group, OpenSSL::BN.new("040603", 16))

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]