mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-08 04:45:03 +08:00
Added some validation of protocol message parameters.
This commit is contained in:
@@ -135,6 +135,11 @@ UInt32 CServer::getActivePrimarySides() const
|
||||
void CServer::setInfo(const CString& client,
|
||||
SInt32 w, SInt32 h, SInt32 zoneSize)
|
||||
{
|
||||
assert(!client.empty());
|
||||
assert(w > 0);
|
||||
assert(h > 0);
|
||||
assert(zoneSize >= 0);
|
||||
|
||||
CLock lock(&m_mutex);
|
||||
|
||||
// client must be connected
|
||||
|
||||
Reference in New Issue
Block a user