-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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 mmap module (broken seek, 64-bit stuff, overflows) #32438
Comments
No description provided. |
I confirm that, to the best of my knowledge and belief, this I acknowledge that CNRI may, at its sole discretion, decide |
This patch fixes some issues in the mmap module. The changes are:
|
Andrew, I'm not sure if you can review patches for Windows, but since it's your module, I'd like you to have a look at this first. Tim should get it next. |
The patches look OK, particularly the fixing of the seek() |
Some of the casts were changed from (long) to (int) because 'int' was the size being returned (for example in the length value to PyString_FromStringAndSize, or the mmap find method is specified to return an int and not a long, note that sizeof(int) != sizeof(long) on Linux64. Note that this has already been checked in: ...and in the actual checkin the first cast to (int) was dropped anyway :). Maybe you did that yourself, Andrew. |
Best I can tell, this has already been checked in! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: