aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/storage/buildstore/httpbuildstore.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2026-02-24 13:36:44 +0100
committerStefan Boberg <[email protected]>2026-02-24 13:36:44 +0100
commit075bac3ca870a1297e9f62230d56e63aec13a77d (patch)
tree367a820685a829adbab31cd1374b1af2cece4b7e /src/zenserver/storage/buildstore/httpbuildstore.cpp
parentFix correctness and concurrency bugs found during code review (diff)
downloadzen-075bac3ca870a1297e9f62230d56e63aec13a77d.tar.xz
zen-075bac3ca870a1297e9f62230d56e63aec13a77d.zip
Revert "Fix correctness and concurrency bugs found during code review"
This reverts commit 3c89c486338890ce39ddebe5be4722a09e85701a.
Diffstat (limited to 'src/zenserver/storage/buildstore/httpbuildstore.cpp')
-rw-r--r--src/zenserver/storage/buildstore/httpbuildstore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zenserver/storage/buildstore/httpbuildstore.cpp b/src/zenserver/storage/buildstore/httpbuildstore.cpp
index bf7afcc02..f5ba30616 100644
--- a/src/zenserver/storage/buildstore/httpbuildstore.cpp
+++ b/src/zenserver/storage/buildstore/httpbuildstore.cpp
@@ -185,7 +185,7 @@ HttpBuildStoreService::GetBlobRequest(HttpRouterRequest& Req)
{
const HttpRange& Range = Ranges.front();
const uint64_t BlobSize = Blob.GetSize();
- const uint64_t MaxBlobSize = Range.Start < BlobSize ? BlobSize - Range.Start : 0;
+ const uint64_t MaxBlobSize = Range.Start < BlobSize ? Range.Start - BlobSize : 0;
const uint64_t RangeSize = Min(Range.End - Range.Start + 1, MaxBlobSize);
if (Range.Start + RangeSize > BlobSize)
{