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

Prevent integer overflow in OpLevelCostEstimator::CalculateOutputSize. #54004

Merged
merged 1 commit into from
Jan 26, 2022
Merged

Prevent integer overflow in OpLevelCostEstimator::CalculateOutputSize. #54004

merged 1 commit into from
Jan 26, 2022

Conversation

pranve
Copy link

@pranve pranve commented Jan 25, 2022

In order to not change the API, we return a negative value in case of overflow. A better fix is to change the API to return a status instead.

PiperOrigin-RevId: 408701427
Change-Id: Idf31e7f0bf18ca824d084fdd355e1f653f145c20

In order to not change the API, we return a negative value in case of overflow. A better fix is to change the API to return a status instead.

PiperOrigin-RevId: 408701427
Change-Id: Idf31e7f0bf18ca824d084fdd355e1f653f145c20
@mihaimaruseac mihaimaruseac merged commit d062716 into tensorflow:r2.5 Jan 26, 2022
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

2 participants