DescriptionZero closed ThreadCondition handles
The ThreadCondition constructor checks for failed calls to CreateMutex
and CreateSemaphore, but if they are detected it closes the handles
without zeroing them. This change zeroes them to avoid unpredictable
behavior from use-after-close.
The change also checks for nullptr before closing them in the destructor
in order to keep handle verifiers happy.
BUG=615306
Committed: https://crrev.com/42b7246433e2b79901292d2bc97dc6607530fac2
Cr-Commit-Position: refs/heads/master@{#398314}
Patch Set 1 #
Messages
Total messages: 13 (7 generated)
|