| 64 | } |
| 65 | |
| 66 | std::string ProtobufMutator::genFuzzVarDecl(FuzzInput &Input) { |
| 67 | auto FuzzVarName = Input.getFuzzVarName(); |
| 68 | auto Code = SrcGenerator::genDeclStmt(Input.getFTGType(), FuzzVarName, false); |
| 69 | if (Input.getFTGType().getRealType() && |
| 70 | Input.getFTGType().getRealType()->isFixedLengthArrayPtr()) |
| 71 | Code += SrcGenerator::genDeclStmt( |
| 72 | "unsigned", util::getAvasFuzzSizeVarName(FuzzVarName)); |
| 73 | return Code; |
| 74 | } |
| 75 | |
| 76 | std::string ProtobufMutator::genFuzzVarAssign(FuzzInput &FuzzingInput) { |
| 77 | std::string Code; |
nothing calls this directly
no test coverage detected