Skip to content

Commit a51b6f1

Browse files
committed
add new way to register tags
1 parent dda1f94 commit a51b6f1

79 files changed

Lines changed: 741 additions & 33 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 101 additions & 0 deletions

fuzz/Rakefile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,28 @@ task :clean do
3333
end
3434
end
3535

36+
desc "minimize corpus — deduplicates and keeps only coverage-contributing inputs"
37+
task :corpus_merge => :compile do
38+
fuzzer = File.expand_path("mruby/build/host/bin/mruby-cbor-fuzzer")
39+
corpus = File.expand_path("corpus")
40+
findings = File.expand_path("findings")
41+
merged = File.expand_path("corpus_min")
42+
43+
FileUtils.mkdir_p(merged)
44+
FileUtils.mkdir_p(corpus)
45+
46+
dirs = [corpus]
47+
dirs << findings if File.directory?(findings)
48+
49+
sh fuzzer, "-merge=1", merged, *dirs
50+
51+
removed = Dir[File.join(corpus, "*")].count
52+
kept = Dir[File.join(merged, "*")].count
53+
54+
FileUtils.rm_rf(corpus)
55+
FileUtils.mv(merged, corpus)
56+
57+
puts "Corpus minimized: #{removed} -> #{kept} inputs"
58+
end
59+
3660
task :default => :test
937 Bytes
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������

fuzz/corpus/0cf4391606e3ec88f732981f0fc50b1c8127a533

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
��������

fuzz/corpus/138fb071682713d6a441ef05f681ab69f4baadca

Lines changed: 0 additions & 1 deletion
This file was deleted.
216 Bytes
Binary file not shown.

fuzz/corpus/1fc56ebe4e0fe2a995077fab8158a5072035c359

Lines changed: 0 additions & 1 deletion
This file was deleted.
-219 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)