1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00
freebsd-ports/lang/ruby20/files/patch-lib_mkmf.rb
Steve Wills f38a81fc62 - Fix and report heap overflow in floating point parsing issue in ruby
Security:	cc9043cf-7f7a-426e-b2cc-8d1980618113
2013-11-23 03:10:04 +00:00

12 lines
497 B
Ruby

--- lib/mkmf.rb.orig 2013-06-26 07:03:38.000000000 -0700
+++ lib/mkmf.rb 2013-07-03 17:43:05.000000000 -0700
@@ -226,7 +226,7 @@
end
$extmk ||= false
if not $extmk and File.exist?(($hdrdir = RbConfig::CONFIG["rubyhdrdir"]) + "/ruby/ruby.h")
- $topdir = $hdrdir
+ $topdir = $hdrdir + "/" + "#{CONFIG['arch']}/ruby/"
$top_srcdir = $hdrdir
$arch_hdrdir = RbConfig::CONFIG["rubyarchhdrdir"]
elsif File.exist?(($hdrdir = ($top_srcdir ||= topdir) + "/include") + "/ruby.h")