From: Nikolai Weibull Date: 2011-04-20T01:19:53+09:00 Subject: [ruby-core:35815] Missing length check in rb_str_each_line? In rb_str_each line, the following test is performed: (rslen <= 1 || memcmp(RSTRING_PTR(rs), p, rslen) == 0) Shouldn���t it be (rslen <= 1 || (pend - p >= rslen && memcmp(RSTRING_PTR(rs), p, rslen) == 0)) ?