Skip to content
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

Bug fixes for compactCells #558

Merged
merged 38 commits into from
Jan 23, 2022

Conversation

isaacbrodsky
Copy link
Collaborator

Based upon #553. This updates the fuzzer, and applies some cases found via fuzzing to the test suite.

@coveralls
Copy link

coveralls commented Jan 13, 2022

Coverage Status

Coverage increased (+0.006%) to 98.155% when pulling 2392c4e on isaacbrodsky:llvm-fuzzer-compact-2 into af52618 on uber:master.

src/apps/testapps/testCompactCells.c Outdated Show resolved Hide resolved
src/apps/testapps/testCompactCells.c Outdated Show resolved Hide resolved
// algorithm below may encounter undefined behavior
// because it expects to have set the reserved bits
// itself.
if (H3_GET_RESERVED_BITS(currIndex) != 0) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not required, but I wonder if it would make sense to do this kind of validity check first, and fail faster? We could do this without allocating any memory we need to free, and it wouldn't change the complexity

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'd leave that to a separate PR with benchmarks to say

@isaacbrodsky isaacbrodsky merged commit 40dd620 into uber:master Jan 23, 2022
@isaacbrodsky isaacbrodsky deleted the llvm-fuzzer-compact-2 branch January 23, 2022 19:19
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.

4 participants