summaryrefslogtreecommitdiff
path: root/lang/ruby16-base/patches/patch-aj
diff options
context:
space:
mode:
Diffstat (limited to 'lang/ruby16-base/patches/patch-aj')
-rw-r--r--lang/ruby16-base/patches/patch-aj20
1 files changed, 20 insertions, 0 deletions
diff --git a/lang/ruby16-base/patches/patch-aj b/lang/ruby16-base/patches/patch-aj
new file mode 100644
index 00000000000..e285e49a317
--- /dev/null
+++ b/lang/ruby16-base/patches/patch-aj
@@ -0,0 +1,20 @@
+$NetBSD: patch-aj,v 1.1.1.1 2005/03/06 16:36:08 taca Exp $
+
+--- lib/cgi.rb.orig 2002-08-29 18:05:06.000000000 +0900
++++ lib/cgi.rb
+@@ -823,10 +823,13 @@ convert string charset, and set language
+ end
+
+ c = if bufsize < content_length
+- stdinput.read(bufsize) or ''
++ stdinput.read(bufsize)
+ else
+- stdinput.read(content_length) or ''
++ stdinput.read(content_length)
+ end
++ if c.nil?
++ raise EOFError, "bad content body"
++ end
+ buf += c
+ content_length -= c.size
+