Fix empty multipart (#2789)
This commit is contained in:
parent
25386bfb5f
commit
03f7fc93ad
@ -198,6 +198,10 @@ where
|
||||
let mut other_testcase = state.corpus().get(id)?.borrow_mut();
|
||||
let other = other_testcase.load_input(state.corpus())?;
|
||||
|
||||
if other.names().is_empty() {
|
||||
return Ok(MutationResult::Skipped);
|
||||
}
|
||||
|
||||
let choice = name_choice % other.names().len();
|
||||
let name = &other.names()[choice];
|
||||
|
||||
@ -324,6 +328,10 @@ where
|
||||
let mut other_testcase = state.corpus().get(id)?.borrow_mut();
|
||||
let other = other_testcase.load_input(state.corpus())?;
|
||||
|
||||
if other.names().is_empty() {
|
||||
return Ok(MutationResult::Skipped);
|
||||
}
|
||||
|
||||
let choice = name_choice % other.names().len();
|
||||
let name = &other.names()[choice];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user