[ruby-core:89126] [Ruby trunk Bug#15146] [PATCH] webrick: raise EOFError in parse when read line is nil

From: git@...
Date: 2018-09-22 15:31:51 UTC
List: ruby-core #89126
Issue #15146 has been reported by pushrax (Justin Li).

----------------------------------------
Bug #15146: [PATCH] webrick: raise EOFError in parse when read line is nil
https://bugs.ruby-lang.org/issues/15146

* Author: pushrax (Justin Li)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
If the IO object being read during parse returned `nil` from `gets`, a NoMethodError would be raised calling `bytesize` on `nil`. Instead, an `EOFError` should be returned. This bug has been present since r14260.

https://github.com/ruby/ruby/pull/1960

---Files--------------------------------
0001-webrick-raise-EOFError-in-parse-when-read-line-is-ni.patch (1.58 KB)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next