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.
This commit is contained in:
Isaac Brodsky 2021-10-20 05:28:10 -07:00 committed by GitHub
parent 9aa85855b4
commit d5cf2bbe99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -21,6 +21,8 @@
#include <stdlib.h>
#include <string.h>
// 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;