1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-24 07:35:07 +00:00
Commit graph

1 commit

Author SHA1 Message Date
Timothy Flynn
587d4663a3 AK: Return early from swap() when swapping the same object
When swapping the same object, we could end up with a double-free error.
This was found while quick-sorting a Vector of Variants holding complex
types, reproduced by the new swap_same_complex_object test case.
2021-08-30 19:42:40 +01:00