mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-21 17:23:56 +01:00
fix possible buffer overflow in world streaming packet
This commit is contained in:
1 parent
d051e5bab6
commit
b3e474ac87
2 files changed
+31
-15
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user