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 a4f71e40e571 from angle #34229

Merged
merged 2 commits into from May 16, 2022

Conversation

ppontes
Copy link
Member

@ppontes ppontes commented May 13, 2022

Fix CheckedNumeric using the wrong type.

Validation for glBufferSubData checks that the buffer is large enough
for size+offset but verifies they fit in a size_t which is a different
type than the deduced type for size+offset on 32-bit systems.

Use decltype to ensure that we always verify there is no overflow on the
correct type.

Bug: chromium:1298867
Change-Id: I82f534b2d227d3273a763e626ebeae068dc918dc
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3563515
Reviewed-by: Jamie Madill jmadill@chromium.org
Reviewed-by: Jonah Ryan-Davis jonahr@google.com
Commit-Queue: Geoff Lang geofflang@chromium.org
(cherry picked from commit c458b5add432c3da98ef370680518d0af7e4d4e3)
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3630020

Notes: Backported fix for chromium:1298867.

@ppontes ppontes requested review from a team as code owners May 13, 2022 16:51
@ppontes ppontes added 17-x-y backport-check-skip Skip trop's backport validity checking semver/patch backwards-compatible bug fixes labels May 13, 2022
@electron-cation electron-cation bot added new-pr 🌱 PR opened in the last 24 hours and removed new-pr 🌱 PR opened in the last 24 hours labels May 13, 2022
@jkleinsc jkleinsc merged commit 7118979 into 17-x-y May 16, 2022
@jkleinsc jkleinsc deleted the cherry-pick/17-x-y/angle/a4f71e40e571 branch May 16, 2022 18:59
@release-clerk
Copy link

release-clerk bot commented May 16, 2022

Release Notes Persisted

Backported fix for chromium:1298867.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
17-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

3 participants