Skip to content

fix memory mapping on Windows#19623

Merged
yufenglee merged 1 commit intomainfrom
yufeng/fix_memmap
Feb 25, 2024
Merged

fix memory mapping on Windows#19623
yufenglee merged 1 commit intomainfrom
yufeng/fix_memmap

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
@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.

4 participants