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

Avoid buffer overflow when loading tensors with insufficient data fro… #52663

Conversation

mihaimaruseac
Copy link
Collaborator

…m checkpoints.

CopyDataFromTensorSliceToTensorSlice does not (and cannot conveniently)
provide any bounds checking on its own, so the size is instead checked prior
to passing unvalidated data to that function.

PiperOrigin-RevId: 392971286
Change-Id: If2073b36d4d5eedd386329f56729395fd7effee1

…m checkpoints.

`CopyDataFromTensorSliceToTensorSlice` does not (and cannot conveniently)
provide any bounds checking on its own, so the size is instead checked prior
to passing unvalidated data to that function.

PiperOrigin-RevId: 392971286
Change-Id: If2073b36d4d5eedd386329f56729395fd7effee1
@google-cla google-cla bot added the cla: yes label Oct 25, 2021
@mihaimaruseac mihaimaruseac merged commit a9bed74 into r2.4 Oct 25, 2021
@mihaimaruseac mihaimaruseac deleted the pranve-cherrypick-368af875869a204b4ac552b9ddda59f6a46a56ec-on-r2.4 branch October 25, 2021 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants