diff options
author | Mike Dalessio <mike.dalessio@gmail.com> | 2023-08-30 13:52:03 -0400 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-08-30 18:27:51 +0000 |
commit | ae7f9075592ea3570dfba831d086c423301fbcb7 (patch) | |
tree | 426512354e1c7a9c5a4895eddd6febe2d8ed6eb4 /test/yarp | |
parent | 341f47a6dd3690754fe9660bc248875c7b810260 (diff) | |
download | ruby-ae7f9075592ea3570dfba831d086c423301fbcb7.tar.gz |
[ruby/yarp] fix: heredoc with incomplete escape at end of file
Previously this resulted in invalid memory access.
Found by the fuzzer.
https://github.com/ruby/yarp/commit/ec4abd87f4
Diffstat (limited to 'test/yarp')
-rw-r--r-- | test/yarp/fuzzer_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/yarp/fuzzer_test.rb b/test/yarp/fuzzer_test.rb index 2d851ff886..6dfbf94f39 100644 --- a/test/yarp/fuzzer_test.rb +++ b/test/yarp/fuzzer_test.rb @@ -23,4 +23,5 @@ class FuzzerTest < Test::Unit::TestCase snippet "incomplete hex number", "0x" snippet "incomplete escaped list", "%w[\\" snippet "incomplete escaped regex", "/a\\" + snippet "unterminated heredoc with unterminated escape at end of file", "<<A\n\\" end |