Skip to content

Conversation

@cobalt-github-releaser-bot
Copy link
Collaborator

Refer to the original PR: #7360

This CL backports https://chromium-review.googlesource.com/c/angle/angle/+/5008034 to address an out-of-bounds access bug.

I did some minor modifications to resolve conflict. Some of the upstream code has been moving around, for example FrontendFeatures_autogen.h is in include/platform/autogen/FrontendFeatures_autogen.h in the upstream. And in Context.cpp, it calls caps->maxVertexAttributes and there are some dependency on other PR, I keep the minimum change, and fix it by directly call mState.mCaps.maxVertexAttributes.

Bug: 437918195

Original commit description:
PrivateState::setAllDirtyBits sets all bits in mDirtyCurrentValues. When the context has fewer max attibutes than MAX_VERTEX_ATTRIBS, this can cause out-of-bounds access to
PrivateState::mVertexAttribCurrentValues if the dirty bits are iterated over without range validation.

)

This CL backports
https://chromium-review.googlesource.com/c/angle/angle/+/5008034 to
address an out-of-bounds access bug.

I did some minor modifications to resolve conflict. Some of the upstream
code has been moving around, for example FrontendFeatures_autogen.h is
in include/platform/autogen/FrontendFeatures_autogen.h in the upstream.
And in Context.cpp, it calls caps->maxVertexAttributes and there are
some dependency on other PR, I keep the minimum change, and fix it by
directly call mState.mCaps.maxVertexAttributes.

Bug: 437918195

Original commit description:
PrivateState::setAllDirtyBits sets all bits in mDirtyCurrentValues. When
the context has fewer max attibutes than MAX_VERTEX_ATTRIBS, this can
cause out-of-bounds access to
PrivateState::mVertexAttribCurrentValues if the dirty bits are iterated
over without range validation.

(cherry picked from commit 388ac44)
@cobalt-github-releaser-bot
Copy link
Collaborator Author

MERGE CONFLICT CAT

Caution

There were merge conflicts while cherry picking! Check out cherry-pick-26.android-7360 and fix the conflicts before proceeding. Check the log at https://github.com/youtube/cobalt/actions/runs/18052806236 for details.

@sherryzy sherryzy closed this Sep 29, 2025
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.

3 participants