aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore/cache/cacherpc.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2025-05-02 15:33:58 +0200
committerGitHub Enterprise <[email protected]>2025-05-02 15:33:58 +0200
commita9c83b3c1299692923e2c16b696f5b9e211f5737 (patch)
tree21e9ea21386672d2b870baf3103ebde2b5fbbb76 /src/zenstore/cache/cacherpc.cpp
parentcbobject validation (#377) (diff)
downloadzen-a9c83b3c1299692923e2c16b696f5b9e211f5737.tar.xz
zen-a9c83b3c1299692923e2c16b696f5b9e211f5737.zip
iterate chunks crash fix (#376)
* Bugfix: Add explicit lambda capture in CasContainer::IterateChunks to avoid accessing state data references
Diffstat (limited to 'src/zenstore/cache/cacherpc.cpp')
-rw-r--r--src/zenstore/cache/cacherpc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zenstore/cache/cacherpc.cpp b/src/zenstore/cache/cacherpc.cpp
index bf78dae86..de4b0a37c 100644
--- a/src/zenstore/cache/cacherpc.cpp
+++ b/src/zenstore/cache/cacherpc.cpp
@@ -653,7 +653,7 @@ CacheRpcHandler::HandleRpcGetCacheRecords(const CacheRequestContext& Context, Cb
{
m_CidStore.IterateChunks(
CidHashes,
- [this, &Request, ValueCount, &RequestValueIndexes](size_t Index, const IoBuffer& Payload) -> bool {
+ [this, &Request, &RequestValueIndexes](size_t Index, const IoBuffer& Payload) -> bool {
try
{
const size_t ValueIndex = RequestValueIndexes[Index];