Definition at line 36 of file load_from_binary.cpp.
◆ PortableStorageFuzzer() [1/2]
| PortableStorageFuzzer::PortableStorageFuzzer |
( |
| ) |
|
|
inline |
◆ PortableStorageFuzzer() [2/2]
| PortableStorageFuzzer::PortableStorageFuzzer |
( |
| ) |
|
|
inline |
◆ init() [1/2]
| int PortableStorageFuzzer::init |
( |
| ) |
|
|
virtual |
◆ init() [2/2]
| virtual int PortableStorageFuzzer::init |
( |
| ) |
|
|
virtual |
◆ run() [1/2]
| int PortableStorageFuzzer::run |
( |
const std::string & | filename | ) |
|
|
virtual |
Implements Fuzzer.
Definition at line 49 of file load_from_binary.cpp.
50{
51 std::string s;
52
54 {
55 std::cout << "Error: failed to load file " << filename << std::endl;
56 return 1;
57 }
58 try
59 {
60 epee::serialization::portable_storage ps;
62 }
63 catch (const std::exception &e)
64 {
65 std::cerr << "Failed to load from binary: " << e.what() << std::endl;
66 return 1;
67 }
68 return 0;
69}
bool load_from_binary(const epee::span< const uint8_t > target)
bool load_file_to_string(const std::string &path_to_file, std::string &target_str, size_t max_size=1000000000)
◆ run() [2/2]
| virtual int PortableStorageFuzzer::run |
( |
const std::string & | filename | ) |
|
|
virtual |
The documentation for this class was generated from the following files:
- /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/tests/fuzz/load_from_binary.cpp
- /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/tests/fuzz/load_from_json.cpp