mirror of https://github.com/google/oss-fuzz.git
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:
parent
9aa85855b4
commit
d5cf2bbe99
|
@ -21,6 +21,8 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
// for h3NeighborRotations
|
||||||
|
#include "algos.h"
|
||||||
#include "h3api.h"
|
#include "h3api.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
|
|
||||||
|
@ -64,7 +66,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||||
// fuzz h3NeighborRotations
|
// fuzz h3NeighborRotations
|
||||||
int rotations = 0;
|
int rotations = 0;
|
||||||
for (int i = 0; i < 7; i++) {
|
for (int i = 0; i < 7; i++) {
|
||||||
h3NeighborRotations(h3, DIGITS[i], &rotations);
|
H3Index neighborRotationsOut;
|
||||||
|
h3NeighborRotations(h3, DIGITS[i], &rotations, &neighborRotationsOut);
|
||||||
}
|
}
|
||||||
free(compacted);
|
free(compacted);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue