Encounter overflow when copy a 3d texture to cpu mem

i’ m doing voxel and i want to copy the voxel data(3d tex) back to cpu.
however after calling readTextureSubresource it overflows
and i debug and found that
it seems something wrong with std::vector<uint8_t> CopyContext::ReadTextureTask::getData() this function
when result.resize(mRowCount * actualRowSize);
a 3d texture is sized of mRowCount * actualRowSize* footprint.Footprint.Depth
so i think it should be result.resize(mRowCount * actualRowSize* footprint.Footprint.Depth);
or it’s just i called a wrong function to do this work?