MCPcopy Create free account
hub / github.com/HexHive/NASS / DFTStringToVector

Function DFTStringToVector

fuzz/libfuzzer/FuzzerDataFlowTrace.cpp:126–130  ·  view source on GitHub ↗

converts a string of '0' and '1' into a std::vector

Source from the content-addressed store, hash-verified

124
125// converts a string of '0' and '1' into a std::vector<uint8_t>
126static std::vector<uint8_t> DFTStringToVector(const std::string &DFTString) {
127 std::vector<uint8_t> DFT(DFTString.size());
128 DFTStringAppendToVector(&DFT, DFTString);
129 return DFT;
130}
131
132static bool ParseError(const char *Err, const std::string &Line) {
133 Printf("DataFlowTrace: parse error: %s: Line: %s\n", Err, Line.c_str());

Callers 1

InitMethod · 0.85

Calls 2

DFTStringAppendToVectorFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected