Skip to content

Validate buffer index before accessing buffers vector#3535

Open
TristanInSec wants to merge 1 commit intotensorflow:mainfrom
TristanInSec:fix-buffer-index-validation
Open

Validate buffer index before accessing buffers vector#3535
TristanInSec wants to merge 1 commit intotensorflow:mainfrom
TristanInSec:fix-buffer-index-validation

Conversation

@TristanInSec
Copy link
Copy Markdown

@TristanInSec TristanInSec commented Apr 17, 2026

Check that the tensor buffer index is within the bounds of the model buffers vector before accessing it, matching the validation already present in the compression code path.

BUG=b/general

Check that the tensor buffer index is within the bounds of the
model buffers vector before accessing it. The FlatBuffers
Vector::operator[] does not perform bounds checking.
@TristanInSec TristanInSec requested a review from a team as a code owner April 17, 2026 19:31
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.

2 participants