Repository navigation
more hostenv isolation #7886
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
Merged
Merged
more hostenv isolation #7886
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
a5ac299
Convert host_env Windows path/argv params from raw *const u16 to &Wid…
youknowone cea48cc
Migrate remaining winapi raw u16 pointer signatures to typed references
youknowone 25a9d40
Migrate winreg pub unsafe fn string parameters to typed references
youknowone 0acdcad
Add ToPyException impls for host_env error types (PyPy wrap_oserror a…
youknowone dc57418
Add CheckLibcResult helper and apply to socket/fcntl/shm/posix_wasi
youknowone 2d4be2c
Add Win32 BOOL/HANDLE check helpers; apply check helpers across host_env
youknowone 592e8b4
Apply Win32/libc check helpers to overlapped/testconsole/os.rs
youknowone 86055d2
Apply Win32 check helpers to winapi.rs (partial)
youknowone fe71c58
Apply Win32 check helpers across more winapi.rs functions
youknowone a7c567a
Apply Win32 check helpers to nt.rs (partial)
youknowone 5329cc5
Add CheckWin32Sentinel helper; apply to nt.rs INVALID_HANDLE_VALUE/IN…
youknowone f1532e2
Add OwnedHandle / HandleToOwned helper; apply to mmap create_named_ma…
youknowone e768278
Use OwnedHandle RAII in nt::pipe to eliminate manual cleanup on error…
youknowone b730f7e
Use OwnedHandle in nt::chmod_follow; hoist HandleToOwned import
youknowone 67ece5b
Drop rustix dependency from vm crate
youknowone a61d9bd
Fix CI failures: cross-platform regressions
youknowone 3320c2a
Fix CI failures: cfg gates and unused imports
youknowone e9ec6e8
Fix CI failures: rustfmt and windows unused import
youknowone ba3f4fa
Push remaining libc/extern callsites from vm into host_env
youknowone 45c83dd
Move time tz state and winsound FFI into host_env
youknowone 49c13f8
Migrate unsetenv to host_env::nt::wputenv; rustfmt
youknowone 61e0fd4
Address PR review comments
youknowone 783c6b5
Fix CI failures and address review follow-ups
youknowone File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev
Previous commit
Fix CI failures and address review follow-ups
CI failures: - rustfmt cleanup in exceptions.rs after the ReadlinkError change. - vm/stdlib/os.rs: drop unused ToWideString import that the wputenv migration left behind. - vm/stdlib/winsound.rs: replace explicit `&*buf` with `&buf` to satisfy clippy::explicit_auto_deref. - Lib/test/test_format.py, Lib/test/test_types.py: drop the now-stale expectedFailureIfWindows decorators on the locale-format tests; the Windows path now reads real `localeconv` data via host_env so these tests pass. Review follow-ups: - host_env::winapi::create_process: switch the new buffer terminator checks from `assert!` to fallible validators returning `io::ErrorKind::InvalidInput`, so bad inputs stay recoverable at the API boundary. - host_env::winsound::play_sound: reject `Memory(_)` together with `SND_ASYNC` (lifetime-unsafe) and `SND_MEMORY` without a `Memory(_)` source. Expand `PlaySoundError` into a variant enum. - vm::stdlib::_winapi::CreateProcess: route the Win32 path/argv strings through `as_wtf8().to_wide_cstring()` like the rest of the Windows API surface; `expect_str()` could panic on Python strings containing lone surrogates.
- Loading branch information
commit 783c6b5064978907b1b4a4cf7121d13eeaafcde7
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.