summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMike Dalessio <mike.dalessio@gmail.com>2023-08-29 22:30:12 -0400
committergit <svn-admin@ruby-lang.org>2023-08-30 18:27:49 +0000
commitc83552a596a34808651efca29a4f480bb5c579c6 (patch)
tree1195d45d58466d237b6bc7584b4a28a558d16091 /test
parentbd0268372e09eb45d088c44a534a5302bdca9796 (diff)
[ruby/yarp] fix: trailing asterisk at end of file
Previously this resulted in invalid memory access. Found by the fuzzer. https://github.com/ruby/yarp/commit/c86b4907b4
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 8da1a2dc76..97f128f08b 100644
--- a/test/yarp/fuzzer_test.rb
+++ b/test/yarp/fuzzer_test.rb
@@ -16,4 +16,5 @@ class FuzzerTest < Test::Unit::TestCase
snippet "incomplete symbol", ":"
snippet "incomplete escaped string", '"\\'
snippet "trailing comment", "1\n#\n"
+ snippet "trailing asterisk", "a *"
end