mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-14 02:58:10 +00:00
address clippy warnings (#1125)
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -5,7 +5,7 @@ env:
|
|||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
SCCACHE_DIR: ${{github.workspace}}/sccache/
|
SCCACHE_DIR: ${{github.workspace}}/sccache/
|
||||||
SCCACHE_CACHE_SIZE: 1G
|
SCCACHE_CACHE_SIZE: 1G
|
||||||
ACTIONS_CACHE_KEY_DATE: 2021-08-02-01
|
ACTIONS_CACHE_KEY_DATE: 2021-08-06-01
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
agent:
|
agent:
|
||||||
|
@ -73,7 +73,7 @@ where
|
|||||||
// reverse the instrumented basic blocks.
|
// reverse the instrumented basic blocks.
|
||||||
fn provide_from_inline_table(&mut self, inline_table: SancovTable) -> Result<BTreeSet<u32>> {
|
fn provide_from_inline_table(&mut self, inline_table: SancovTable) -> Result<BTreeSet<u32>> {
|
||||||
let mut visitor =
|
let mut visitor =
|
||||||
SancovInlineAccessVisitor::new(inline_table, &self.data, &self.pe, &mut self.pdb)?;
|
SancovInlineAccessVisitor::new(inline_table, self.data, self.pe, &mut self.pdb)?;
|
||||||
|
|
||||||
let debug_info = self.pdb.debug_information()?;
|
let debug_info = self.pdb.debug_information()?;
|
||||||
let mut modules = debug_info.modules()?;
|
let mut modules = debug_info.modules()?;
|
||||||
|
@ -259,7 +259,7 @@ fn process_pdb(data: &[u8], pe: &PE, functions_only: bool, pdb_path: &Path) -> R
|
|||||||
&proc_sym_info[..],
|
&proc_sym_info[..],
|
||||||
&mut blocks,
|
&mut blocks,
|
||||||
&address_map,
|
&address_map,
|
||||||
&pe,
|
pe,
|
||||||
data,
|
data,
|
||||||
functions_only,
|
functions_only,
|
||||||
)?;
|
)?;
|
||||||
@ -274,7 +274,7 @@ fn process_pdb(data: &[u8], pe: &PE, functions_only: bool, pdb_path: &Path) -> R
|
|||||||
&proc_sym_info[..],
|
&proc_sym_info[..],
|
||||||
&mut blocks,
|
&mut blocks,
|
||||||
&address_map,
|
&address_map,
|
||||||
&pe,
|
pe,
|
||||||
data,
|
data,
|
||||||
functions_only,
|
functions_only,
|
||||||
)?;
|
)?;
|
||||||
|
@ -275,7 +275,7 @@ impl BreakpointCollection {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn bulk_write_process_memory(&self, process_handle: HANDLE, buffer: &[u8]) -> Result<()> {
|
fn bulk_write_process_memory(&self, process_handle: HANDLE, buffer: &[u8]) -> Result<()> {
|
||||||
process::write_memory_slice(process_handle, self.min_breakpoint_addr as _, &buffer)?;
|
process::write_memory_slice(process_handle, self.min_breakpoint_addr as _, buffer)?;
|
||||||
process::flush_instruction_cache(
|
process::flush_instruction_cache(
|
||||||
process_handle,
|
process_handle,
|
||||||
self.min_breakpoint_addr as _,
|
self.min_breakpoint_addr as _,
|
||||||
|
@ -263,7 +263,7 @@ impl Tester {
|
|||||||
.context("Writing markdown summary for crash/timeout.")?;
|
.context("Writing markdown summary for crash/timeout.")?;
|
||||||
|
|
||||||
// Create a batch file to help reproduce the bug with the settings we used.
|
// Create a batch file to help reproduce the bug with the settings we used.
|
||||||
self.create_repro_bat(&log_dir, &result.input_path, &deduped_input_path)?;
|
self.create_repro_bat(log_dir, &result.input_path, deduped_input_path)?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
@ -389,7 +389,7 @@ impl Tester {
|
|||||||
"{}-logs",
|
"{}-logs",
|
||||||
logs_dir.file_stem().unwrap().to_string_lossy()
|
logs_dir.file_stem().unwrap().to_string_lossy()
|
||||||
));
|
));
|
||||||
self.create_test_failure_artifacts(&logs_dir, &result, &copied_file)?;
|
self.create_test_failure_artifacts(&logs_dir, result, &copied_file)?;
|
||||||
Ok(Some(new_test_result(
|
Ok(Some(new_test_result(
|
||||||
result.debugger_result.clone(),
|
result.debugger_result.clone(),
|
||||||
&result.input_path,
|
&result.input_path,
|
||||||
|
@ -65,8 +65,8 @@ pub fn configure_machine_wide_app_debug_settings(application_path: impl AsRef<Pa
|
|||||||
// This is a machine-wide setting, not process specific.
|
// This is a machine-wide setting, not process specific.
|
||||||
wer::disable_wer_ui()?;
|
wer::disable_wer_ui()?;
|
||||||
|
|
||||||
wer::add_exclusion(&exe_name)?;
|
wer::add_exclusion(exe_name)?;
|
||||||
aedebug::add_exclusion(&exe_name)?;
|
aedebug::add_exclusion(exe_name)?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user