diff options
| author | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2026-02-12 04:25:15 +0200 |
|---|---|---|
| committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2026-02-12 19:35:53 +0200 |
| commit | b404990bb568a0ad222da1fb0187240f9eab8b51 (patch) | |
| tree | 8d15871357759e609630dfb5803072db724465b8 /indra/newview/llvlmanager.cpp | |
| parent | 5386d142b7a1dd5492b02f8fa1d9870e9d1fe834 (diff) | |
#5414 Don't crash on unknown layer type
We don't crash on an invalid size, so shouldn't crash on invalid data.
Not viewer's fault, try to keep going.
Diffstat (limited to 'indra/newview/llvlmanager.cpp')
| -rw-r--r-- | indra/newview/llvlmanager.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llvlmanager.cpp b/indra/newview/llvlmanager.cpp index c2bcd32921..f4c2c27cee 100644 --- a/indra/newview/llvlmanager.cpp +++ b/indra/newview/llvlmanager.cpp @@ -68,7 +68,11 @@ void LLVLManager::addLayerData(LLVLData *vl_datap, const S32Bytes mesg_size) } else { - LL_ERRS() << "Unknown layer type!" << (S32)vl_datap->mType << LL_ENDL; + // Corrupted message? New feature? + LL_WARNS() << "Unknown layer type!" << (S32)vl_datap->mType + << " for region " << vl_datap->mRegionp->getName() << LL_ENDL; + delete vl_datap; // addLayerData took ownership + return; } mPacketData.push_back(vl_datap); |
