Skip to content

Commit 0c78afc

Browse files
committed
2 parents 5cfaf25 + 5f40aff commit 0c78afc

276 files changed

Lines changed: 104 additions & 127 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.

build_config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ def for_windows?
44
('A'..'Z').to_a.any? { |vol| Dir.exist?("#{vol}:") }
55
end
66
unless for_windows?
7-
#conf.enable_sanitizer "address,undefined"
7+
conf.enable_sanitizer "address,undefined"
88
end
99
conf.cxx.flags << '-fno-omit-frame-pointer' << '-g3' << '-ggdb3' << '-Og'
1010
conf.cc.flags << '-fno-omit-frame-pointer' << '-g3' << '-ggdb3' << '-Og'

fuzz/Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ task :clean do
3333
end
3434
end
3535

36-
desc "minimize corpus deduplicates and keeps only coverage-contributing inputs"
36+
desc "minimize corpus ??? deduplicates and keeps only coverage-contributing inputs"
3737
task :corpus_merge => :compile do
3838
fuzzer = File.expand_path("mruby/build/host/bin/mruby-cbor-fuzzer")
3939
corpus = File.expand_path("corpus")
@@ -46,7 +46,7 @@ task :corpus_merge => :compile do
4646
dirs = [corpus]
4747
dirs << findings if File.directory?(findings)
4848

49-
sh fuzzer, "-merge=1", merged, *dirs
49+
sh fuzzer, "-rss_limit_mb=3072", "-merge=1", merged, *dirs
5050

5151
removed = Dir[File.join(corpus, "*")].count
5252
kept = Dir[File.join(merged, "*")].count

fuzz/bintest/mruby-cbor-fuzzer.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
cmd = cmd_list('mruby-cbor-fuzzer') + [
1313
CORPUS_DIR,
1414
"-dict=#{DICT_FILE}",
15-
"-jobs=7",
15+
"-jobs=4",
1616
"-artifact_prefix=#{findings_dir}/",
1717
"-max_len=65536",
18-
"-ignore_ooms=0",
19-
"-use_value_profile=1"
18+
"-ignore_ooms=1",
19+
"-use_value_profile=1",
20+
"-rss_limit_mb=3072"
2021
]
2122

2223
Dir.chdir(findings_dir) do
-57 Bytes
Binary file not shown.
-3.12 KB
Binary file not shown.
-3 Bytes
Binary file not shown.

fuzz/corpus/04f48058b13f0067217713dc510ef6f760b4253d

Lines changed: 0 additions & 1 deletion
This file was deleted.

fuzz/corpus/05ea3562e321168605998195b20867db4e9da060

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

0 commit comments

Comments
 (0)