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 heap buffer overflow caused by rounding. #49397

Merged
merged 1 commit into from May 21, 2021

Conversation

geetachavan1
Copy link
Contributor

This was hard to fix. Due to the way we compute the pixels that influence an output pixel in resized images, for certain input configuration we might have issued a read to a pixel that is outside of boundary of the original image. This is because of floating errors that affected truncation results.

PiperOrigin-RevId: 369757871
Change-Id: If89425fff930983829a2168203c11858883eebc9

This was hard to fix. Due to the way we compute the pixels that influence an output pixel in resized images, for certain input configuration we might have issued a read to a pixel that is outside of boundary of the original image. This is because of floating errors that affected truncation results.

PiperOrigin-RevId: 369757871
Change-Id: If89425fff930983829a2168203c11858883eebc9
@google-cla google-cla bot added the cla: yes label May 20, 2021
@gbaned gbaned self-assigned this May 21, 2021
@gbaned gbaned added comp:core issues related to core part of tensorflow size:XS CL Change Size: Extra Small labels May 21, 2021
@gbaned gbaned added this to Assigned Reviewer in PR Queue via automation May 21, 2021
@gbaned gbaned requested a review from mihaimaruseac May 21, 2021 10:25
@gbaned gbaned assigned mihaimaruseac and unassigned gbaned May 21, 2021
PR Queue automation moved this from Assigned Reviewer to Approved by Reviewer May 21, 2021
@mihaimaruseac mihaimaruseac merged commit 3c01c50 into tensorflow:r2.1 May 21, 2021
PR Queue automation moved this from Approved by Reviewer to Merged May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes comp:core issues related to core part of tensorflow size:XS CL Change Size: Extra Small
Projects
PR Queue
  
Merged
Development

Successfully merging this pull request may close these issues.

None yet

3 participants