Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated protection of remove_all against CVE-2022-21658 on Windows.
This follows up the previous update for POSIX. The new implementation of remove_all on Windows Vista and later uses NtCreateFile internal function in order to open files relative to a previously opened directory handle, similar to POSIX openat. Furthermore, querying file status and removing the file is now also done through file handles to avoid performing path resolutions. Closes #224.
- Loading branch information
Showing
6 changed files
with
551 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.