summaryrefslogtreecommitdiff
path: root/tools/clang-fuzzer/proto-to-cxx/proto_to_cxx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/clang-fuzzer/proto-to-cxx/proto_to_cxx.cpp')
-rw-r--r--tools/clang-fuzzer/proto-to-cxx/proto_to_cxx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/clang-fuzzer/proto-to-cxx/proto_to_cxx.cpp b/tools/clang-fuzzer/proto-to-cxx/proto_to_cxx.cpp
index cd75e0c99c47a..4a86515f55986 100644
--- a/tools/clang-fuzzer/proto-to-cxx/proto_to_cxx.cpp
+++ b/tools/clang-fuzzer/proto-to-cxx/proto_to_cxx.cpp
@@ -94,7 +94,7 @@ std::string FunctionToString(const Function &input) {
}
std::string ProtoToCxx(const uint8_t *data, size_t size) {
Function message;
- if (!message.ParseFromArray(data, size))
+ if (!message.ParsePartialFromArray(data, size))
return "#error invalid proto\n";
return FunctionToString(message);
}