diff options
author | Stanislav Sedov <stas@FreeBSD.org> | 2006-11-04 10:04:11 +0000 |
---|---|---|
committer | Stanislav Sedov <stas@FreeBSD.org> | 2006-11-04 10:04:11 +0000 |
commit | 586801d65a05e6d9635a07957cbe79576486dea2 (patch) | |
tree | de4863b54fe0265a65665ff9eed1579cc41d7228 /lang/ruby18/files | |
parent | - Update to 0.9.3-1a (diff) |
- Add a workaround for the recently disclosed DoS vulnerability in the cgi.rb
ruby18 module
- Bump portrevision
PR: ports/105113
Submitted by: UEDA Hiroyuki <BSDmad@gmail.com>
Notes
Notes:
svn path=/head/; revision=176342
Diffstat (limited to 'lang/ruby18/files')
-rw-r--r-- | lang/ruby18/files/patch-lib_cgi.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lang/ruby18/files/patch-lib_cgi.rb b/lang/ruby18/files/patch-lib_cgi.rb new file mode 100644 index 000000000000..1ab40f7e2afa --- /dev/null +++ b/lang/ruby18/files/patch-lib_cgi.rb @@ -0,0 +1,11 @@ +--- lib/cgi.rb 2005-10-06 19:01:22.000000000 -0600 ++++ lib/cgi.rb 2006-09-22 16:38:08.000000000 -0600 +@@ -1017,7 +1017,7 @@ + else + stdinput.read(content_length) + end +- if c.nil? ++ if c.nil? || c.empty? + raise EOFError, "bad content body" + end + buf.concat(c) |