Revert "build a basic data flow path to return the return value of a called function to the funzzing framework"
This reverts commit e35aada698d2d8d14042110c523acea5a707adac.
Change-Id: I63fdefa0a14ae949bcd5492ace36c5cf611ca4c7
diff --git a/sysfuzzer/common/fuzz_tester/FuzzerBase.cpp b/sysfuzzer/common/fuzz_tester/FuzzerBase.cpp
index 281f924..48eb715 100644
--- a/sysfuzzer/common/fuzz_tester/FuzzerBase.cpp
+++ b/sysfuzzer/common/fuzz_tester/FuzzerBase.cpp
@@ -43,8 +43,7 @@
}
-bool FuzzerBase::Fuzz(const vts::InterfaceSpecificationMessage& message,
- void* result) {
+bool FuzzerBase::Fuzz(const vts::InterfaceSpecificationMessage& message) {
cout << "Fuzzing target component: "
<< "class " << message.component_class()
<< " type " << message.component_type()
@@ -53,7 +52,7 @@
string function_name_prefix = GetFunctionNamePrefix(message);
function_name_prefix_ = function_name_prefix.c_str();
for (const vts::FunctionSpecificationMessage& func_msg : message.api()) {
- Fuzz(func_msg, result);
+ Fuzz(func_msg);
}
return true;
}
diff --git a/sysfuzzer/common/fuzz_tester/FuzzerBase.h b/sysfuzzer/common/fuzz_tester/FuzzerBase.h
index 8687057..0e2bd38 100644
--- a/sysfuzzer/common/fuzz_tester/FuzzerBase.h
+++ b/sysfuzzer/common/fuzz_tester/FuzzerBase.h
@@ -38,14 +38,13 @@
// Fuzz tests the loaded component using the provided interface specification.
// Returns true iff the testing is conducted completely.
- bool Fuzz(const vts::InterfaceSpecificationMessage& message, void* result);
+ bool Fuzz(const vts::InterfaceSpecificationMessage& message);
protected:
// Actual implementation of routines to test a specific function using the
// provided function interface specification message.
// Returns true iff the testing is conducted completely.
- virtual bool Fuzz(const vts::FunctionSpecificationMessage& func_msg,
- void* result) {
+ virtual bool Fuzz(const vts::FunctionSpecificationMessage& func_msg) {
return false;
};