fix possible buffer overflow in world streaming packet

This commit is contained in:
DrPerkyLegit committed 2026-10-30 14:47:31 -04:00
1 parent d051e5bab6
commit b3e474ac87
2 files changed
+31 -15

No files matched your search

+2 -2
View File
@@ -126,7 +126,7 @@ HRESULT Compression::CompressLZXRLE(void *pDestination, unsigned int *pDestSize,
PIXEndNamedEvent();
PIXBeginNamedEvent(0,"Secondary compression");
Compress(pDestination, pDestSize, rleBuf, rleSize);
HRESULT result = Compress(pDestination, pDestSize, rleBuf, rleSize);
PIXEndNamedEvent();
if(dynamicRleBuf != nullptr) delete [] dynamicRleBuf;
@@ -134,7 +134,7 @@ HRESULT Compression::CompressLZXRLE(void *pDestination, unsigned int *pDestSize,
LeaveCriticalSection(&rleCompressLock);
// printf("Compressed from %d to %d to %d\n",SrcSize,rleSize,*pDestSize);
return S_OK;
return result;
}
HRESULT Compression::CompressRLE(void *pDestination, unsigned int *pDestSize, void *pSource, unsigned int SrcSize)