-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Don't assume FILE_ID_BOTH_DIR_INFO
will be aligned
#104558
Conversation
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
Nominating for beta backport since it seems pretty bad. I'm hoping it's just an issue with sketchy drivers, but who knows. |
I think we should consider using a different directory iteration method (FindNextFileW, like we use for the other directory iteration), but I'm not sure if there's a reason we're doing it the way we are currently (perhaps stability in the face of deletions?) That said, I know |
There are various other things we could do (like doing a memcpy if unaligned) but I do agree we should keep this small for now. So... @bors r+ |
Ah, good points! |
I decided to do this. It's not much code, but probably warrants re-review. @bors r- |
Ok, this look fine. @bors r+ |
I'll leave the backport request present, but it's tempting to remove it: it's worth noting that this appears to be due to a bug in a particular sandboxing application (Sandboxie), rather than a bug in the stdlib itself. These sorts of bugs are somewhat unsurprising on Windows, given how arbitrary things insert themselves in various places, but I'm unconvinced it's actually worth taking that seriously as a result. Still, I'll leave the request present so we can discuss in the meeting. It's harmless enough either way. |
…iaskrgr Rollup of 6 pull requests Successful merges: - rust-lang#104537 (fix std::thread docs are unclear regarding stack sizes) - rust-lang#104558 (Don't assume `FILE_ID_BOTH_DIR_INFO` will be aligned) - rust-lang#104564 (interpret: use Either over Result when it is not representing an error condition) - rust-lang#104568 (clarify that realloc refreshes pointer provenance even when the allocation remains in-place) - rust-lang#104611 (rustdoc: use real buttons for scrape examples controls) - rust-lang#104640 (Migrate kdb style to CSS variables) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
…troalbini [stable] Prepare 1.66.0 release This PR prepares the artifacts for the 1.66.0 release. The following PRs have been backported: * rust-lang#104782 * rust-lang#105023 * rust-lang#104558 * rust-lang#104610 * rust-lang#103989 * rust-lang#104650 * rust-lang#105539 * rust-lang#105477 r? `@ghost`
This avoids the Windows dependencies. The bug that caused us to switch to the crate in the first place was addressed in Rust 1.66+ (rust-lang/rust#104558)
This avoids the Windows dependencies. The bug that caused us to switch to the crate in the first place was addressed in Rust 1.66+ (rust-lang/rust#104558)
Fixes #104530. See that issue for info.
r? @ChrisDenton