Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WSL-Helper: Certs: Make a copy of foreign memory
We enumerate system certificates on Windows asynchronously and return the results (as *x509.Certificate objects) in a channel. It turns out that those certificates can refer to memory passed in via ParseCertificate(), so we ended up using a certificate that referred to freed memory. Avoid the issue by explicitly making a copy of that slice. Signed-off-by: Mark Yen <[email protected]>
- Loading branch information