aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2025-06-16 13:17:37 +0200
committerGitHub Enterprise <[email protected]>2025-06-16 13:17:37 +0200
commit2dbfa547abd7f9e393cb63f9c70de15d91de2815 (patch)
tree722191023ae6eef544b1672562f6c0e4309e1756 /src/zenserver
parentsentry config (#430) (diff)
downloadzen-2dbfa547abd7f9e393cb63f9c70de15d91de2815.tar.xz
zen-2dbfa547abd7f9e393cb63f9c70de15d91de2815.zip
fix build store range check (#437)
* fix range check for blob store fetch * don't try to parse blockdesriptions if empty result is returned * add range to log when fetching blob range fails
Diffstat (limited to 'src/zenserver')
-rw-r--r--src/zenserver/buildstore/httpbuildstore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zenserver/buildstore/httpbuildstore.cpp b/src/zenserver/buildstore/httpbuildstore.cpp
index 75a333687..bcec74ce6 100644
--- a/src/zenserver/buildstore/httpbuildstore.cpp
+++ b/src/zenserver/buildstore/httpbuildstore.cpp
@@ -177,7 +177,7 @@ HttpBuildStoreService::GetBlobRequest(HttpRouterRequest& Req)
const uint64_t BlobSize = Blob.GetSize();
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)
+ if (Range.Start + RangeSize > BlobSize)
{
return ServerRequest.WriteResponse(HttpResponseCode::NoContent);
}