Revert CVE-2013-4164 test

This reverts commit 7688211009.
bug/bundler_fix
Tod Beardsley 2013-11-22 12:26:16 -06:00
parent 994d4e94c6
commit b69a67251f
No known key found for this signature in database
GPG Key ID: 1EFFB682ADB9F193
1 changed files with 0 additions and 11 deletions

View File

@ -1,15 +1,4 @@
# -*- coding:binary -*-
# Test Ruby for CVE-2013-4164
# See https://www.ruby-lang.org/en/news/2013/11/22/heap-overflow-in-floating-point-parsing-cve-2013-4164/
$cve_2013_4164_tested ||= false
unless $cve_2013_4164_tested
$stdout.puts "\n[*] Testing for CVE-2013-4164. If this crashes, update your Ruby version.\n"
10.times { ("1."+"1"*300000).to_f }
$cve_2013_4164_tested = true
$stdout.puts "[*] Success, Ruby survived the segfaulting test."
end
require 'rubygems'
require 'bundler'
Bundler.require(:default, :test, :db)