You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] wp.Mesh crashes on out-of-range triangle indices #2288
wp.Mesh() reads points[indices[i]] without checking that each index is in [0, len(points)). An out-of-range or negative index crashes the process on CPU:
Expected: a Python exception that names the bad index.
Actual: the process dies with a segmentation fault (exit code 139).
Mesh.refit() and assigning Mesh.points read through the indices the same way, and also crash. An index just past the end may not crash at all, and instead builds the BVH from whatever memory follows the points. On CUDA, the same reads go unchecked and nothing is reported.
wp.Mesh() also accepts an index count that isn't a multiple of 3, and silently drops the extra indices.
System Information
Warp 1.20.0.dev0 (main), Python 3.14, Linux x86_64.
Activity