mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 18:36:31 +01:00
Core/Battle.net: Fixed size check in bit stream
This commit is contained in:
@@ -138,7 +138,7 @@ namespace Battlenet
|
||||
if (!count || !data)
|
||||
return;
|
||||
|
||||
if (_writePos + count > MaxSize)
|
||||
if ((_writePos >> 3) + count > MaxSize)
|
||||
throw BitStreamPositionException();
|
||||
|
||||
_buffer.resize(_buffer.size() + count);
|
||||
|
||||
Reference in New Issue
Block a user