|
| virtual int | run (const std::string &filename) |
| virtual int | init () |
Definition at line 36 of file bulletproof.cpp.
◆ run()
| int BulletproofFuzzer::run |
( |
const std::string & | filename | ) |
|
|
virtual |
Implements Fuzzer.
Definition at line 44 of file bulletproof.cpp.
45{
46 std::string s;
47
49 {
50 std::cout << "Error: failed to load file " << filename << std::endl;
51 return 1;
52 }
53 std::stringstream ss;
54 ss << s;
55 binary_archive<false> ba(ss);
58 if(!r)
59 {
60 std::cout << "Error: failed to parse bulletproof from file " << filename << std::endl;
61 return 1;
62 }
63 return 0;
64}
bool load_file_to_string(const std::string &path_to_file, std::string &target_str, size_t max_size=1000000000)
bool serialize(Archive &ar, T &v)
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/tests/fuzz/bulletproof.cpp