From 3fa5bd38af50fb3d98de0ea51043d73f8d06a24b Mon Sep 17 00:00:00 2001 From: eregon Date: Mon, 29 Jan 2018 16:08:16 +0000 Subject: Update to ruby/spec@83063a3 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- spec/ruby/security/cve_2011_4815_spec.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'spec/ruby/security') diff --git a/spec/ruby/security/cve_2011_4815_spec.rb b/spec/ruby/security/cve_2011_4815_spec.rb index 0a353b742a..74f0054850 100644 --- a/spec/ruby/security/cve_2011_4815_spec.rb +++ b/spec/ruby/security/cve_2011_4815_spec.rb @@ -22,6 +22,17 @@ describe "Float#hash" do it_behaves_like :resists_cve_2011_4815, '3.14' end +# https://bugs.ruby-lang.org/issues/14420 +guard_not -> { platform_is :windows and PlatformGuard.implementation?(:ruby) } do + describe "Rational#hash" do + it_behaves_like :resists_cve_2011_4815, 'Rational(1, 2)' + end + + describe "Complex#hash" do + it_behaves_like :resists_cve_2011_4815, 'Complex(1, 2)' + end +end + describe "String#hash" do it_behaves_like :resists_cve_2011_4815, '"abc"' end -- cgit v1.2.3