mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-25 21:55:56 +03:00
[GH-ISSUE #2136] A TOCTOU race in GetObjectWithGeneration (fs backend) #256
Labels
No labels
bug
compatibility-issue
docker
documentation
enhancement
help wanted
needs information
pull-request
question
stale
unfortunate
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/fake-gcs-server#256
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @misha-drozd on GitHub (Feb 5, 2026).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/2136
GetObjectWithGenerationmay return the data from the wrong generation:GetObjectWithGenerationtakes a lock, retrieves object metadata, releases the lock.GetObjectWithGenerationchecks the actual and expected generationGetObjectWithGenerationopens the file (that was replaced on step 2) and returns it.Originally found in https://github.com/fsouza/fake-gcs-server/pull/2117