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 memory mapping on Windows #19623

Merged
merged 1 commit into from
Feb 25, 2024
Merged

fix memory mapping on Windows #19623

merged 1 commit into from
Feb 25, 2024

Conversation

yufenglee
Copy link
Member

@yufenglee yufenglee commented Feb 23, 2024

Description

Windows memory map casts mapped_offset to DWORD directly. It will be truncated if it is larger than 2^32-1. We need to set high dwFileOffsetHigh for this case.

Motivation and Context

The bug was found from #19450

@yufenglee yufenglee merged commit 430a086 into main Feb 25, 2024
92 of 94 checks passed
@yufenglee yufenglee deleted the yufeng/fix_memmap branch February 25, 2024 16:50
maggie1059 pushed a commit that referenced this pull request Mar 8, 2024
### Description
<!-- Describe your changes. -->
Windows memory map casts mapped_offset to DWORD directly. It will be
truncated if it is larger than 2^32-1. We need to set high
dwFileOffsetHigh for this case.


### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->

The bug was found from #19450
YUNQIUGUO pushed a commit that referenced this pull request Mar 21, 2024
### Description
<!-- Describe your changes. -->
Windows memory map casts mapped_offset to DWORD directly. It will be
truncated if it is larger than 2^32-1. We need to set high
dwFileOffsetHigh for this case.


### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->

The bug was found from #19450
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants