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
Division by zero in findHoleBridge #48
Comments
mrgreywater
added a commit
to mrgreywater/earcut.hpp
that referenced
this issue
Jan 13, 2017
Merged
mrgreywater
added a commit
to mrgreywater/earcut.hpp
that referenced
this issue
Jan 13, 2017
mrgreywater
added a commit
to mrgreywater/earcut.hpp
that referenced
this issue
Jan 13, 2017
mrgreywater
added a commit
to mrgreywater/earcut.hpp
that referenced
this issue
Jan 13, 2017
mrgreywater
added a commit
to mrgreywater/earcut.hpp
that referenced
this issue
Jan 13, 2017
mrgreywater
added a commit
to mrgreywater/earcut.hpp
that referenced
this issue
Jan 13, 2017
mourner
pushed a commit
that referenced
this issue
Jan 13, 2017
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Division by zero in C++ may cause an unrecoverable crash and needs to be avoided. The
-fsanitize=undefined
in clang++ 3.9.1 spotted a case where division by zero happens infindHoleBridge
during the mbgl unit tests becausep->next->y - p->y
== 0:earcut.hpp/include/mapbox/earcut.hpp
Line 468 in 888acfc
/cc @mourner
refs mapbox/mapbox-gl-native#5379
The text was updated successfully, but these errors were encountered: