Electroneum
Loading...
Searching...
No Matches
TransactionFuzzer Class Reference
Inheritance diagram for TransactionFuzzer:
Collaboration diagram for TransactionFuzzer:

Public Member Functions

virtual int run (const std::string &filename)
Public Member Functions inherited from Fuzzer
virtual int init ()

Detailed Description

Definition at line 37 of file transaction.cpp.

Member Function Documentation

◆ run()

int TransactionFuzzer::run ( const std::string & filename)
virtual

Implements Fuzzer.

Definition at line 45 of file transaction.cpp.

46{
47 std::string s;
48
50 {
51 std::cout << "Error: failed to load file " << filename << std::endl;
52 return 1;
53 }
54 cryptonote::transaction tx = AUTO_VAL_INIT(tx);
56 {
57 std::cout << "Error: failed to parse transaction from file " << filename << std::endl;
58 return 1;
59 }
60 return 0;
61}
#define AUTO_VAL_INIT(v)
bool parse_and_validate_tx_from_blob(const blobdata &tx_blob, transaction &tx)
bool load_file_to_string(const std::string &path_to_file, std::string &target_str, size_t max_size=1000000000)
Here is the call graph for this function:

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/transaction.cpp