diff --git a/common/TracyProtocol.hpp b/common/TracyProtocol.hpp index cf113a7a..3b515dd8 100755 --- a/common/TracyProtocol.hpp +++ b/common/TracyProtocol.hpp @@ -14,6 +14,7 @@ using lz4sz_t = uint16_t; enum { TargetFrameSize = 64000 }; enum { LZ4Size = LZ4_COMPRESSBOUND( TargetFrameSize ) }; static_assert( LZ4Size <= std::numeric_limits::max(), "LZ4Size greater than lz4sz_t" ); +static_assert( TargetFrameSize * 2 >= 64 * 1024, "Not enough space for LZ4 stream buffer" ); }