-
Notifications
You must be signed in to change notification settings - Fork 511
Bug fixes for directed edge #559
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
Merged
isaacbrodsky
merged 35 commits into
uber:master
from
isaacbrodsky:llvm-fuzzer-directed-edge
Jan 23, 2022
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
0277ce5
Add LLVM fuzzer harness
1c8ec2e
Add AFL++ test case generator
b89c76b
Fuzz more gridDisk functions
79d2e2c
add fuzzerH3SetToLinkedGeo
a28a807
Add more fuzzers
9445cbb
Additional fuzzers
f971dcf
add fuzzerVertexes
e0c8841
Add test-fuzzer script
007b7c3
Fix linux build
02abb99
Fix fuzzerIndexIO
caedc90
test-fuzzer use subshell for ls
isaacbrodsky de5a2c3
Update test-fuzzer again
isaacbrodsky 8bbc36a
Fix test-fuzzer again
isaacbrodsky 021c994
fuzzerCompact
2195863
Update readme
4a65123
libFuzzer tests
1e7066e
reformat header
0ede718
README updates
65b4ef3
fuzzerDirectedEdge
79b1f44
fuzzerLocalIj
25360ef
fix fuzzerDirectedEdge build
ac4b918
Fix fuzzer programs
isaacbrodsky 1145bce
remove logging
isaacbrodsky cd14266
remove h3Println
isaacbrodsky 76532d8
add fuzzerPoylgonToCells
isaacbrodsky 84bc4e9
Update per review
323d9e9
Merge branch 'master' into llvm-fuzzer-harness
e04c62c
Add comment on memcpy per review
0016f1c
Fix potential crash in vertexRotations
7807131
Merge branch 'master' into llvm-fuzzer-harness
4b4e623
Catch possible failure in getIcosahedronFaces
d501e51
Don't assert specific error in testVertex
9900b82
Bug fixes for directed edge
d12e315
Merge branch 'master' into llvm-fuzzer-directed-edge
979ce07
Remove now irrelevant TODO
isaacbrodsky File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -335,6 +335,9 @@ H3Error h3NeighborRotations(H3Index origin, Direction dir, int *rotations, | |
H3Index *out) { | ||
H3Index current = origin; | ||
|
||
if (dir < CENTER_DIGIT || dir >= INVALID_DIGIT) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For my info, what does There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, that is my expectation |
||
return E_FAILED; | ||
} | ||
for (int i = 0; i < *rotations; i++) { | ||
dir = _rotate60ccw(dir); | ||
} | ||
|
@@ -352,7 +355,6 @@ H3Error h3NeighborRotations(H3Index origin, Direction dir, int *rotations, | |
int r = H3_GET_RESOLUTION(current) - 1; | ||
while (true) { | ||
if (r == -1) { | ||
// TODO: dir may be invalid here (verify via fuzzerDirectedEdge) | ||
H3_SET_BASE_CELL(current, baseCellNeighbors[oldBaseCell][dir]); | ||
newRotations = baseCellNeighbor60CCWRots[oldBaseCell][dir]; | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anything special about this particular H3 index?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No - I just needed a known good index as I wanted the only rotations to be under test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For my info, is there any difference between indexes with the
L
suffix or without? Should we be consistent?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All valid H3 indexes would only be valid integers as 64 bit, so no I don't believe so.