8000 gridRing in fuzzer by shresss · Pull Request #1012 · uber/h3 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

gridRing in fuzzer #1012

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 0 commits into from
Closed

gridRing in fuzzer #1012

wants to merge 0 commits into from

Conversation

shresss
Copy link
Contributor
@shresss shresss commented Jun 4, 2025

This PR adds gridRing to fuzzerGridDisk.c to improve test coverage, as requested in #1011.
Related to @justinhwang's PR: #1011.

@CLAassistant
Copy link
CLAassistant commented Jun 4, 2025

CLA assistant check
All committers have signed the CLA.

@@ -90,7 +90,7 @@ int _parseArgsList(int argc, char *argv[], int numArgs, Arg *args[],
// common arguments

#define ARG_HELP \
{ .names = {"-h", "--help"}, .helpText = "Show this help message." }
{.names = {"-h", "--help"}, .helpText = "Show this help message."}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inadvertent formatting change?

Comment on lines 62 to 65
if (results != NULL) {
H3_EXPORT(gridRing)(args->index, args->k, results); // Test the safe version
}
free(results);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (results != NULL) {
H3_EXPORT(gridRing)(args->index, args->k, results); // Test the safe version
}
free(results);
if (results != NULL) {
H3_EXPORT(gridRing)(args->index, args->k, results); // Test the safe version
}
free(results);

inadvertent formatting issue?

@@ -58,6 +58,11 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
free(results);

// TODO: use int64_t
results = calloc(sizeof(H3Index), sz);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the comment above belongs with the int *distances line below?

@isaacbrodsky isaacbrodsky changed the title Gridring gridRing in fuzzer Jun 5, 2025
@coveralls
Copy link

Coverage Status

coverage: 98.801% (+0.02%) from 98.786%
when pulling 9668a06 on shresss:gridring
into b70bd72 on uber:master.

@isaacbrodsky
Copy link
Collaborator

You may be using a different version of clang-format which is resulting in conflicting formatting and CI failing. You may want to reapply your commit with formatting disabled since it is just a few lines of code.

@dfellis
Copy link
Collaborator
dfellis commented Jun 5, 2025

Also, now that the other PR is merged, you can drop the incomplete commit and rebase on the latest commit in the repo.

@shresss
Copy link
Contributor Author
shresss commented Jun 5, 2025

The rebase was giving me a lot of trouble with merging conflicts but I'm pretty sure they are all fixed and I opted for git add and used the ctang format file in the codebase to further correct format on top of my manual edits, I hope this has worked I will verify on my end for a bit, edit to comment** this is so odd my commit seemed to somehow add more format changes i thought I had formatting disabled let me resolve this

@dfellis
Copy link
Collaborator
dfellis commented Jun 5, 2025

Hi @shresss you need to git rebase -i and delete @justinhwang 's commit from the list. He updated it with a force push before merging, and that's what's causing the merge conflicts. (You might have a few merge conflicts of your own after that, but likely simple ones if any.)

@shresss shresss closed this Jun 5, 2025
shresss added a commit to shresss/h3 that referenced this pull request Jun 5, 2025
Adds gridRing testing to fuzzerGridDisk.c to improve test coverage
as requested in uber#1011 and as I tried but ran into merge issues with in uber#1012.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0