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

ptarray_segmentize2d: Fix undefined behaviour when a high number of segments are required #292

Conversation

@Algunenano
Copy link
Member

commented Sep 7, 2018

$ ./cunit/.libs/lt-cu_tester test_lwgeom_segmentize2d

Running test 'test_lwgeom_segmentize2d' in suite 'measures'.
ptarray.c:450:10: runtime error: 1e+101 is outside the range of representable values of type 'unsigned int'

Trac issue created in https://trac.osgeo.org/postgis/ticket/4173#ticket

@Algunenano Algunenano force-pushed the Algunenano:undefined_ptarray_segmentize2d branch from f21caaa to 92f7ca4 Sep 7, 2018

@strk strk closed this in 1e1c4a6 Sep 7, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.