Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Throw error if `kthvalue` `out` argument overlaps with input #47934
Comments
@kurtamohler Have you started working on it? I'd be happy to work on it. |
No I haven't, you can take over. Thank you for volunteering! |
@kurtamohler can you assign me this issue? |
As discussed here, calling
kthvalue
liketorch.kthvalue(a, k, out=(a, indices))
produces a buffer overflow. Natalia suggested disallowing outputs that overlap with the input.cc @VitalyFedyunin