diff options
| author | bors <bors@rust-lang.org> | 2023-12-28 22:12:13 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-12-28 22:12:13 +0000 |
| commit | 8bec0a50d2db73f21df0f5ebb13cfa61a70ab347 (patch) | |
| tree | 404325f69f8f6cb8e26a5a998ec1020297c17f97 /library/std/src/sys/windows/stack_overflow_uwp.rs | |
| parent | a63fd5ea6ba4895df8794cac0fdd54717f5c3ec4 (diff) | |
| parent | 4da47a418061fb429869ff1a2ad284f2e674856d (diff) | |
| download | rust-8bec0a50d2db73f21df0f5ebb13cfa61a70ab347.tar.gz rust-8bec0a50d2db73f21df0f5ebb13cfa61a70ab347.zip | |
Auto merge of #3246 - saethlin:mmap-ices, r=RalfJung
Fix integer overflow ICEs from round_up_to_next_multiple_of Turns out the standard library _does_ have the function we need. So I swapped us to using the checked version in mmap/munmap where we can return an error, and we're still using the ICEy version in SIMD. I found one of the ICE cases by running this test: https://github.com/wbcchsyn/rust-mmap-allocator/blob/765bcaab6e3bfd1cb1e6eaac80ac7e821fb5979b/src/mmap_allocator.rs#L195-L210
Diffstat (limited to 'library/std/src/sys/windows/stack_overflow_uwp.rs')
0 files changed, 0 insertions, 0 deletions
