mirror of
https://github.com/ruby/ruby.git
synced 2025-08-28 23:45:55 +02:00
* lib/uri/common.rb (URI::WFKV_): get rid of backtrack explosion
by nested repeat operators. [ruby-core:33464] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f0a2b08b44
commit
839ee60687
3 changed files with 8 additions and 1 deletions
|
@ -110,6 +110,8 @@ class TestCommon < Test::Unit::TestCase
|
|||
assert_raise(ArgumentError){URI.decode_www_form("a=1&%=2")}
|
||||
assert_raise(ArgumentError){URI.decode_www_form("a=1&b=%")}
|
||||
assert_raise(ArgumentError){URI.decode_www_form("a&b")}
|
||||
bug4098 = '[ruby-core:33464]'
|
||||
assert_raise(ArgumentError, bug4098){URI.decode_www_form("a=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA&b")}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue