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 overflow error for large buffers. #2303

Merged
merged 1 commit into from Jun 9, 2020

Conversation

fmassa
Copy link
Member

@fmassa fmassa commented Jun 9, 2020

Summary:
Allow writes of >= 2^32 bytes. High-res video can cross this threshold sometimes.
LHS is size_t, but RHS is all int32, and will overflow for output tensors >2Gb.

Reviewed By: jsawruk

Differential Revision: D21255664

fbshipit-source-id: 7b4c5da989777297a89e73615aaeee8c7a13186a

Summary:
Allow writes of >= 2^32 bytes. High-res video can cross this threshold sometimes.
LHS is `size_t`, but RHS is all `int32`, and will overflow for output tensors >2Gb.

Reviewed By: jsawruk

Differential Revision: D21255664

fbshipit-source-id: 7b4c5da989777297a89e73615aaeee8c7a13186a
@fmassa fmassa merged commit 2cfc360 into pytorch:master Jun 9, 2020
@fmassa fmassa deleted the import_D21255664 branch June 9, 2020 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant