Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
util: Zero-initialize result to prevent possible uninit memory read
Fixes #354 `io::Read::read_exact` does not receive `MaybeUninit` memory and a trait implementation can possibly read from our uninitialized vector without `unsafe`, which is UB. As there is no proper solution to this problem yet (see linked issue), our safest bet is to just take the perf-hit and zero-initialize this vector.
- Loading branch information