Skip to content

Commit 89df594

Browse files
committed
fixed a bug in the mutator and removed old function declaration
1 parent 7526ecc commit 89df594

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

src/advanced_examples/custom_mutator_example_checks_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ extern "C" size_t LLVMFuzzerCustomMutator(uint8_t *Data, size_t Size,
3838
size_t MaxSize, unsigned int Seed) {
3939
std::cout << "In custom mutator.\n";
4040

41-
return Size;
41+
return MaxSize;
4242
}

src/advanced_examples/explore_me.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,4 @@ struct InputStruct {
1313
std::string c;
1414
};
1515

16-
struct SpecialRequirementsStruct {
17-
long a;
18-
long b;
19-
size_t c_size;
20-
char* c;
21-
};
22-
2316
void ExploreStructuredInputChecks(InputStruct inputStruct);
24-
25-
void ExploreCustomMutatorExampleChecks(SpecialRequirementsStruct* specialRequirementsStruct);

0 commit comments

Comments
 (0)