summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/yarp/fuzzer_test.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/yarp/fuzzer_test.rb b/test/yarp/fuzzer_test.rb
new file mode 100644
index 0000000000..3aed73ecd5
--- /dev/null
+++ b/test/yarp/fuzzer_test.rb
@@ -0,0 +1,14 @@
+# frozen_string_literal: true
+
+require_relative "test_helper"
+
+# These tests are simply to exercise snippets found by the fuzzer that caused invalid memory access.
+class FuzzerTest < Test::Unit::TestCase
+ class << self
+ def snippet(name, source)
+ test "fuzzer #{name}" do
+ YARP.dump(source)
+ end
+ end
+ end
+end