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

[8.0.1] Detect file reads that are longer than expected #24821

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

bazel-io
Copy link
Member

@bazel-io bazel-io commented Jan 3, 2025

When Bazel knows the size of a file, it can also detect whether it would go past this size while reading the file. This is virtually free due to using a buffered stream and can catch cases of concurrent modifications or even bugs in Bazel.

Work towards #24694

Closes #24708.

PiperOrigin-RevId: 711678485
Change-Id: I85093c0d54dd365b1c301b6036f150dae3552c2a

Commit 57ef120

When Bazel knows the size of a file, it can also detect whether it would go past this size while reading the file. This is virtually free due to using a buffered stream and can catch cases of concurrent modifications or even bugs in Bazel.

Work towards bazelbuild#24694

Closes bazelbuild#24708.

PiperOrigin-RevId: 711678485
Change-Id: I85093c0d54dd365b1c301b6036f150dae3552c2a
@bazel-io bazel-io requested a review from a team as a code owner January 3, 2025 10:02
@bazel-io bazel-io added team-Core Skyframe, bazel query, BEP, options parsing, bazelrc awaiting-review PR is awaiting review from an assigned reviewer labels Jan 3, 2025
@meteorcloudy meteorcloudy added this pull request to the merge queue Jan 3, 2025
Merged via the queue into bazelbuild:release-8.0.1 with commit 11b76a0 Jan 3, 2025
46 checks passed
@github-actions github-actions bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Core Skyframe, bazel query, BEP, options parsing, bazelrc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants