From bd0268372e09eb45d088c44a534a5302bdca9796 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Tue, 29 Aug 2023 17:01:09 -0400 Subject: [ruby/yarp] fix: trailing comment at end of file Previously this resulted in invalid memory access. Found by the fuzzer. https://github.com/ruby/yarp/commit/a1c9404906 --- test/yarp/fuzzer_test.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/yarp/fuzzer_test.rb b/test/yarp/fuzzer_test.rb index e2aa9dab61..8da1a2dc76 100644 --- a/test/yarp/fuzzer_test.rb +++ b/test/yarp/fuzzer_test.rb @@ -15,4 +15,5 @@ class FuzzerTest < Test::Unit::TestCase snippet "incomplete global variable", "$" snippet "incomplete symbol", ":" snippet "incomplete escaped string", '"\\' + snippet "trailing comment", "1\n#\n" end -- cgit v1.2.3