SGX's std::env::args function is not thread-safe #64304
Labels
C-bug
Category: This is a bug.
I-unsound
Issue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/Soundness
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
The
args
method is defined as follows.Clean-up function is defined as follows;
It is possible for another thread to use
std::env::args()
while the main thread quits, and access already freed memory - assuming the following sequence of events.This issue has been assigned to @Goirad via this comment.
The text was updated successfully, but these errors were encountered: