diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2013-08-23 06:03:29 -0700 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2013-08-23 06:03:29 -0700 |
commit | d9ee8379543c59e75e39a7a233df6639ee7d4160 (patch) | |
tree | b3b4ab995e8270cdce5453c35378c5619670fb17 /test/unit/debug.rb | |
parent | 21d07b305f6293065cf08134cee2c66e727422cf (diff) | |
parent | 28c57a5f02ca066e66346a69db1bfe33fc6bfb6e (diff) | |
download | coderay-d9ee8379543c59e75e39a7a233df6639ee7d4160.tar.gz |
Merge pull request #149 from rubychan/fix-cache-attack
Fix Symbol/Cache attacks
Diffstat (limited to 'test/unit/debug.rb')
-rw-r--r-- | test/unit/debug.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/unit/debug.rb b/test/unit/debug.rb index f2b80bd..88baf56 100644 --- a/test/unit/debug.rb +++ b/test/unit/debug.rb @@ -18,15 +18,15 @@ class DebugEncoderTest < Test::Unit::TestCase [:begin_group, :string], ['test', :content], [:end_group, :string], - [:begin_line, :test], + [:begin_line, :head], ["\n", :space], ["\n \t", :space], [" \n", :space], ["[]", :method], - [:end_line, :test], + [:end_line, :head], ].flatten TEST_OUTPUT = <<-'DEBUG'.chomp -integer(10)operator((\\\))string<content(test)>test[ +integer(10)operator((\\\))string<content(test)>head[ method([])] @@ -62,10 +62,10 @@ method([])] [:begin_group, :string], ['test', :content], [:end_group, :string], - [:begin_line, :test], + [:begin_line, :unknown], ["\n\n \t \n", :space], ["[]", :method], - [:end_line, :test], + [:end_line, :unknown], ].flatten def test_filtering_text_tokens |