From edf7cb521e445a0c26227fc2a783fdac8254ec87 Mon Sep 17 00:00:00 2001 From: Bertrand Bellenot Date: Wed, 11 Dec 2024 17:15:42 +0100 Subject: [PATCH] Fix assertion failure in TTreeCache --- tree/tree/src/TTreeCache.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tree/tree/src/TTreeCache.cxx b/tree/tree/src/TTreeCache.cxx index 5866134741a2b..205b8e496c1a2 100644 --- a/tree/tree/src/TTreeCache.cxx +++ b/tree/tree/src/TTreeCache.cxx @@ -902,7 +902,7 @@ bool TTreeCache::ProcessMiss(Long64_t pos, int len) mcentry.fIndex = cumulative; cumulative += mcentry.fIO.fLen; } - fMissCache->fData.reserve(cumulative); + fMissCache->fData.resize(cumulative); // printf("Reading %lu bytes into miss cache for %lu entries.\n", cumulative, fEntries->size()); fNMissReadPref += fMissCache->fEntries.size(); fFile->ReadBuffers(&(fMissCache->fData[0]), &(positions[0]), &(lengths[0]), fMissCache->fEntries.size());