#4861 Crash at LLVolumeFace::createOctree

Looks like LLRiggedVolume::update goes out of bounds when selecting a face
master
Andrey Kleshchev 2025-10-20 19:57:25 +03:00
parent 41e9595522
commit 0369072418
2 changed files with 2 additions and 1 deletions

View File

@ -283,6 +283,7 @@ bool LLPolyMeshSharedData::loadMesh( const std::string& fileName )
LLFILE* fp = LLFile::fopen(fileName, "rb"); /*Flawfinder: ignore*/
if (!fp)
{
LLError::LLUserWarningMsg::showMissingFiles();
LL_ERRS() << "can't open: " << fileName << LL_ENDL;
return false;
}

View File

@ -5025,7 +5025,7 @@ void LLRiggedVolume::update(
else
{
face_begin = face_index;
face_end = face_begin + 1;
face_end = llmin(face_begin + 1, volume->getNumVolumeFaces());
}
for (S32 i = face_begin; i < face_end; ++i)
{