@@ -53,7 +53,8 @@ def analysis_func(self,
5353 project_profile : project_profile .MergedProjectProfile ,
5454 profiles : List [fuzzer_profile .FuzzerProfile ],
5555 basefolder : str , coverage_url : str ,
56- conclusions : List [html_helpers .HTMLConclusion ]) -> str :
56+ conclusions : List [html_helpers .HTMLConclusion ],
57+ out_dir ) -> str :
5758 logger .info (f" - Running analysis { self .get_name ()} " )
5859
5960 if not self .display_html :
@@ -80,7 +81,8 @@ def analysis_func(self,
8081
8182 # Create dictionary section
8283 html_string += self .get_dictionary_section (profiles [profile_idx ],
83- table_of_contents )
84+ table_of_contents ,
85+ out_dir )
8486
8587 html_string += "<br>"
8688
@@ -98,7 +100,8 @@ def analysis_func(self,
98100
99101 return html_string
100102
101- def get_dictionary (self , profile : fuzzer_profile .FuzzerProfile ) -> str :
103+ def get_dictionary (self , profile : fuzzer_profile .FuzzerProfile ,
104+ out_dir ) -> str :
102105 """Extracts a fuzzer dictionary"""
103106 kn = 0
104107 dictionary_content = ""
@@ -118,12 +121,13 @@ def get_dictionary(self, profile: fuzzer_profile.FuzzerProfile) -> str:
118121 kn += 1
119122 self .set_json_string_result (json .dumps (dictionary ))
120123 json_report .add_analysis_json_str_as_dict_to_report (
121- self .get_name (), self .get_json_string_result ())
124+ self .get_name (), self .get_json_string_result (), out_dir )
122125 return dictionary_content
123126
124127 def get_dictionary_section (
125128 self , profile : fuzzer_profile .FuzzerProfile ,
126- table_of_contents : html_helpers .HtmlTableOfContents ) -> str :
129+ table_of_contents : html_helpers .HtmlTableOfContents ,
130+ out_dir ) -> str :
127131 """
128132 Returns a HTML string with dictionary content, and adds the section
129133 link to the table_of_contents.
@@ -133,7 +137,7 @@ def get_dictionary_section(
133137 "Dictionary" , html_helpers .HTML_HEADING .H3 , table_of_contents )
134138 html_string += "<p>Use this with the libFuzzer -dict=DICT.file flag</p>"
135139 html_string += "<pre><code class='language-clike'>"
136- html_string += self .get_dictionary (profile )
140+ html_string += self .get_dictionary (profile , out_dir )
137141 html_string += "</code></pre>"
138142 return html_string
139143
0 commit comments