Skip to content

Commit 82143a6

Browse files
authored
Fix fuzz build (#7401)
Accommodate for the change to `FieldPath::FromServerFormat` introduced in #6818. #no-changelog
1 parent ce9911f commit 82143a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Firestore/fuzzing/fieldpath_fuzzer.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,17 @@
1919
#include <string>
2020

2121
#include "Firestore/core/src/model/field_path.h"
22+
#include "Firestore/core/src/util/statusor.h"
2223

2324
using firebase::firestore::model::FieldPath;
25+
using firebase::firestore::util::StatusOr;
2426

2527
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
2628
const char* str_ptr = reinterpret_cast<const char*>(data);
2729
std::string str{str_ptr, size};
2830

2931
try {
30-
FieldPath fp = FieldPath::FromServerFormat(str);
32+
StatusOr<FieldPath> fp = FieldPath::FromServerFormat(str);
3133
} catch (...) {
3234
// Ignore caught exceptions.
3335
}

0 commit comments

Comments
 (0)