Deltares / numba_celltree

Celltree data structure for searching for points, lines, boxes, and cells (convex polygons) in a two dimensional unstructured mesh.
https://deltares.github.io/numba_celltree/
MIT License
11 stars 3 forks source link

validate_node_bounds runs with an unitialized stack #15

Closed Huite closed 3 months ago

Huite commented 3 months ago

Before the first pop, the first element should be set to zero.

This allocate_stack method just calls empty, so it just grabs some memory.

This is triggering failures after increasing the stack size to 128. Somewhat surprising that it always grabbed a zero before...

Huite commented 3 months ago

Fixed by 6492f29204b83bea97b0ed66718af39b23cdcd27