Loop with String#scan without creating substrings
authorNobuyoshi Nakada <nobu@ruby-lang.org>
Tue, 13 Aug 2019 03:14:28 +0000 (12:14 +0900)
committerUtkarsh Gupta <utkarsh@debian.org>
Sun, 19 Sep 2021 03:40:46 +0000 (04:40 +0100)
commitb9a85c71414ab95eaa2fbc15221bedc8ea1dbebc
treea77633320c12af42f3deacd9bcc82e5f55f12167
parenteeafab2fc2593bbed063cd33f6e45b1bd070062b
Loop with String#scan without creating substrings

Origin: https://github.com/ruby/ruby/commit/36e057e26ef2104bc2349799d6c52d22bb1c7d03
Bug-Debian-Security: https://security-tracker.debian.org/tracker/CVE-2019-16201

Create the substrings necessary parts only, instead of cutting the
rest of the buffer.  Also removed a useless, probable typo, regexp.

Gbp-Pq: Name Loop-with-String-scan-without-creating-substrings.patch
lib/webrick/httpauth/digestauth.rb
test/webrick/test_httpauth.rb