Revert "Revert "build a basic data flow path to return the return value of a called function to the funzzing framework""
BUG: 28440320
This reverts commit 5ebde2a4b7067c94b3f11360401c8e59f9666384.
Change-Id: I881a69f1df8139b5eb65d75bd59d2018915526e2
diff --git a/sysfuzzer/common/fuzz_tester/FuzzerBase.h b/sysfuzzer/common/fuzz_tester/FuzzerBase.h
index 0e2bd38..8687057 100644
--- a/sysfuzzer/common/fuzz_tester/FuzzerBase.h
+++ b/sysfuzzer/common/fuzz_tester/FuzzerBase.h
@@ -38,13 +38,14 @@
// Fuzz tests the loaded component using the provided interface specification.
// Returns true iff the testing is conducted completely.
- bool Fuzz(const vts::InterfaceSpecificationMessage& message);
+ bool Fuzz(const vts::InterfaceSpecificationMessage& message, void* result);
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) {
+ virtual bool Fuzz(const vts::FunctionSpecificationMessage& func_msg,
+ void* result) {
return false;
};