summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMike Dalessio <mike.dalessio@gmail.com>2023-08-29 15:38:48 -0400
committergit <svn-admin@ruby-lang.org>2023-08-30 18:27:48 +0000
commit6f8126faebeddf8a93a7c0041c096bf584efcefb (patch)
treeec57121d31871f31c022cfc4714b8c910256c960 /test
parent476f38d62dd24caf80c586b642a25ede66b13fab (diff)
[ruby/yarp] fix: string escape char "\" at the end of a file
Previously this resulted in invalid memory access. Found by the fuzzer. https://github.com/ruby/yarp/commit/178862e2ca
Diffstat (limited to 'test')
-rw-r--r--test/yarp/fuzzer_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/yarp/fuzzer_test.rb b/test/yarp/fuzzer_test.rb
index 6962e6be76..e2aa9dab61 100644
--- a/test/yarp/fuzzer_test.rb
+++ b/test/yarp/fuzzer_test.rb
@@ -14,4 +14,5 @@ class FuzzerTest < Test::Unit::TestCase
snippet "incomplete global variable", "$"
snippet "incomplete symbol", ":"
+ snippet "incomplete escaped string", '"\\'
end