memorysafety/rav1d

UB in `pal_idx_finish_rust`

randomPoison opened this issue · 0 comments

In pal_idx_finish_rust we convert the dst and src pointers back to slices, however dst and src may be pointers to the same allocation, making this UB. We probably need to do something like check if the pointers are the same and handle the logic in there differently depending on if the pointed-to slices are the same or not.