We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce9911f commit 82143a6Copy full SHA for 82143a6
Firestore/fuzzing/fieldpath_fuzzer.cc
@@ -19,15 +19,17 @@
19
#include <string>
20
21
#include "Firestore/core/src/model/field_path.h"
22
+#include "Firestore/core/src/util/statusor.h"
23
24
using firebase::firestore::model::FieldPath;
25
+using firebase::firestore::util::StatusOr;
26
27
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
28
const char* str_ptr = reinterpret_cast<const char*>(data);
29
std::string str{str_ptr, size};
30
31
try {
- FieldPath fp = FieldPath::FromServerFormat(str);
32
+ StatusOr<FieldPath> fp = FieldPath::FromServerFormat(str);
33
} catch (...) {
34
// Ignore caught exceptions.
35
}
0 commit comments