From d5cf2bbe991b485a3b3a870f90a596c2f028100e Mon Sep 17 00:00:00 2001 From: Isaac Brodsky Date: Wed, 20 Oct 2021 05:28:10 -0700 Subject: [PATCH] H3: Update h3NeighborRotations (#6620) uber/h3#505 updated this function to have a different signature; I assume this wasn't caught as a build error because the fuzzer is calling an internal function of the library that isn't in the `h3api.h` header. --- projects/h3/h3_fuzzer.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/h3/h3_fuzzer.c b/projects/h3/h3_fuzzer.c index 5d6073380..816d1c431 100644 --- a/projects/h3/h3_fuzzer.c +++ b/projects/h3/h3_fuzzer.c @@ -21,6 +21,8 @@ #include #include +// for h3NeighborRotations +#include "algos.h" #include "h3api.h" #include "utility.h" @@ -64,7 +66,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { // fuzz h3NeighborRotations int rotations = 0; for (int i = 0; i < 7; i++) { - h3NeighborRotations(h3, DIGITS[i], &rotations); + H3Index neighborRotationsOut; + h3NeighborRotations(h3, DIGITS[i], &rotations, &neighborRotationsOut); } free(compacted); return 0;