diff options
| author | Dan Engelbrecht <[email protected]> | 2025-05-02 15:33:58 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-05-02 15:33:58 +0200 |
| commit | a9c83b3c1299692923e2c16b696f5b9e211f5737 (patch) | |
| tree | 21e9ea21386672d2b870baf3103ebde2b5fbbb76 /src/zenstore/cache/cacherpc.cpp | |
| parent | cbobject validation (#377) (diff) | |
| download | zen-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.cpp | 2 |
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]; |