diff options
| author | Thalia Archibald <thalia@archibald.dev> | 2025-02-26 11:51:28 -0800 |
|---|---|---|
| committer | Thalia Archibald <thalia@archibald.dev> | 2025-03-11 20:16:31 -0700 |
| commit | c62aa0baa1a8228d5bfbb3e810db4c7ee77eb3a1 (patch) | |
| tree | d9443d15e5d7e0d747b106380f7c623737759eac /tests/rustdoc-js-std/parser-slice-array.js | |
| parent | 8c7a94e4cdd9ad70550b19ca2bf6f16046d59506 (diff) | |
| download | rust-c62aa0baa1a8228d5bfbb3e810db4c7ee77eb3a1.tar.gz rust-c62aa0baa1a8228d5bfbb3e810db4c7ee77eb3a1.zip | |
Fix `UserRef<[T]>::copy_to_enclave_vec`
It reinterprets uninitialized memory as initialized and does not drop existing elements of the Vec. Fix that. Additionally, make it more general by appending, instead of overwriting existing elements, and rename it to `append_to_enclave_vec`. A caller can simply call `.clear()` before, for the old behavior.
Diffstat (limited to 'tests/rustdoc-js-std/parser-slice-array.js')
0 files changed, 0 insertions, 0 deletions
