mirror of https://github.com/google/oss-fuzz.git
s2geometry: fix build (#7330)
* s2geometry: fix build * fix patch * fix patch
This commit is contained in:
parent
6611766ac0
commit
5f7d9aad5a
|
@ -16,7 +16,6 @@
|
|||
################################################################################
|
||||
|
||||
cp $SRC/s2_fuzzer.cc $SRC/s2geometry/src/
|
||||
export CXXFLAGS="${CXXFLAGS} -std=c++17"
|
||||
|
||||
cd $SRC/
|
||||
git clone --depth=1 https://github.com/abseil/abseil-cpp
|
||||
|
|
|
@ -2,7 +2,7 @@ diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|||
index 2d2b233..6b52d22 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -418,6 +418,20 @@ install(TARGETS s2 s2testing
|
||||
@@ -418,6 +418,22 @@ install(TARGETS s2 s2testing
|
||||
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
|
||||
|
||||
|
@ -17,7 +17,9 @@ index 2d2b233..6b52d22 100644
|
|||
+ absl::flags_reflection
|
||||
+ absl::memory
|
||||
+ absl::span
|
||||
+ absl::str_format
|
||||
+ absl::strings
|
||||
+ absl::utility
|
||||
+ absl::synchronization)
|
||||
+
|
||||
message("GTEST_ROOT: ${GTEST_ROOT}")
|
||||
|
|
|
@ -88,7 +88,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
|||
return 0;
|
||||
}
|
||||
if (isValidFormat(nt_string, size)) {
|
||||
auto index = s2textformat::MakeIndex(nt_string);
|
||||
auto index = absl::make_unique<MutableS2ShapeIndex>();
|
||||
s2textformat::MakeIndex(nt_string, &index);
|
||||
s2shapeutil::RangeIterator it(*index);
|
||||
if (!it.done()) {
|
||||
it.Next();
|
||||
|
|
Loading…
Reference in New Issue