diff options
| author | Hecklezz <tj8@live.com.au> | 2026-03-13 16:05:05 +1000 |
|---|---|---|
| committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2026-03-15 14:42:01 +0200 |
| commit | b82720f9d60302cb15d0e260860143e4b2c14b92 (patch) | |
| tree | 0782c964bcd981c0dc7971f701edc8ca071c93ea /indra/newview/lltexturecache.cpp | |
| parent | 3dc67639d687669b4709ebeaedabc8f8af3c244b (diff) | |
Fix LLTextureCacheRemoteWorker::doRead malloc size error
Diffstat (limited to 'indra/newview/lltexturecache.cpp')
| -rw-r--r-- | indra/newview/lltexturecache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/lltexturecache.cpp b/indra/newview/lltexturecache.cpp index 00b6bc09e9..2042ab2187 100644 --- a/indra/newview/lltexturecache.cpp +++ b/indra/newview/lltexturecache.cpp @@ -341,7 +341,7 @@ bool LLTextureCacheRemoteWorker::doRead() if (!done && (mState == LOCAL)) { llassert(local_size != 0); // we're assuming there is a non empty local file here... - if (!mDataSize || mDataSize > local_size) + if (mDataSize <= 0 || mDataSize > local_size) { mDataSize = local_size; } |
