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

chore: cherry-pick e8cb0e7aa32 from angle #31235

Merged
merged 1 commit into from
Oct 4, 2021

Conversation

ppontes
Copy link
Member

@ppontes ppontes commented Oct 1, 2021

Fix integer overflow in BlockLayoutEncoder

BlockLayoutEncoder::mCurrentOffset's computation had the
possibility of causing integer overflows in multiple places,
so this CL adds CheckedNumeric variables in a number of
these occurrences in order to prevent integer overflows and
causing issues.

The issue in this case was an integer overflow causing the
code in ValidateTypeSizeLimitations.cpp to use an invalid
result from "layoutEncoder.getCurrentOffset()", which ended
up compiling a shader which would later cause an OOM error.

Bug: chromium:1248665
Change-Id: I688d669f21c6dc2957e43bdf91f8f8f08180a6f7
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3163356
Reviewed-by: Jamie Madill jmadill@chromium.org
Reviewed-by: Kenneth Russell kbr@chromium.org
Reviewed-by: Geoff Lang geofflang@chromium.org
Commit-Queue: Alexis Hétu sugoi@chromium.org
(cherry picked from commit 158ef351fc8b827c201e056a8ddba50fd4235671)
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3194392

Release Notes

Notes: Security: backported fix for chromium:1248665.

@ppontes ppontes added security 🔒 semver/patch backwards-compatible bug fixes backport-check-skip Skip trop's backport validity checking 14-x-y labels Oct 1, 2021
@ppontes ppontes requested a review from a team as a code owner October 1, 2021 13:49
@deepak1556
Copy link
Member

Failing tests are unrelated, merging.

@deepak1556 deepak1556 merged commit bf1fada into 14-x-y Oct 4, 2021
@deepak1556 deepak1556 deleted the cherry-pick/14-x-y/angle/e8cb0e7aa32 branch October 4, 2021 06:47
@release-clerk
Copy link

release-clerk bot commented Oct 4, 2021

Release Notes Persisted

Security: backported fix for chromium:1248665.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
14-x-y backport-check-skip Skip trop's backport validity checking security 🔒 semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants