tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef __VTS_DRIVER__lib_shared_bionic_libc_V1_0__
#define __VTS_DRIVER__lib_shared_bionic_libc_V1_0__
 
#undef LOG_TAG
#define LOG_TAG "FuzzerExtended_libc"
#include <unistd.h>
#include <stdint.h>
#include <sys/types.h>
#include <linux/socket.h>
 
#include <log/log.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
 
#include <driver_base/DriverBase.h>
#include <driver_base/DriverCallbackBase.h>
 
namespace android {
namespace vts {
class FuzzerExtended_libc : public DriverBase {
 public:
    FuzzerExtended_libc() : DriverBase(LIB_SHARED) {}
 protected:
    bool Fuzz(FunctionSpecificationMessage* func_msg, void** result, const string& callback_socket_name);
    bool CallFunction(const FunctionSpecificationMessage& func_msg, const string& callback_socket_name, FunctionSpecificationMessage* result_msg);
    bool VerifyResults(const FunctionSpecificationMessage& expected_result, const FunctionSpecificationMessage& actual_result);
    bool GetAttribute(FunctionSpecificationMessage* func_msg, void** result);
 private:
};
 
 
extern "C" {
extern android::vts::DriverBase* vts_func_11_1002_V1_0_();
}
}  // namespace vts
}  // namespace android
#endif