Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix race condition when updating password #81

Merged
merged 1 commit into from
Aug 5, 2021

Conversation

PaulHigin
Copy link
Contributor

This PR fixes three problems found when investigation Issue (#79).

  • There was a race condition that prevented changing password (either directly or through changing store configuration), where the password variable reference is cleared before it is through being used. Fix is to pass a copy of the password so that the source variable reference can be used repeatedly.

  • Error information when updating the configuration failed, was not being surfaced, causing confusion when update failed.

  • Updating the password would sometimes corrupt the store data, because of ordering changes in the metadata. Fix is to directly set metadata blob offset and size information during update.

@PaulHigin PaulHigin requested a review from SteveL-MSFT August 5, 2021 00:59
@PaulHigin PaulHigin merged commit 1ec86a9 into PowerShell:master Aug 5, 2021
@PaulHigin PaulHigin deleted the next-changes branch August 5, 2021 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants