mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 711205: Limit websocket outbound msg size to PR_INT32_MAX. r=mcmanus
This commit is contained in:
parent
a1f113cf0d
commit
289afd9b5c
@ -2373,6 +2373,11 @@ WebSocketChannel::SendMsgCommon(const nsACString *aMsg, bool aIsBinary,
|
||||
return NS_ERROR_NOT_CONNECTED;
|
||||
}
|
||||
|
||||
if (aLength > mMaxMessageSize) {
|
||||
LOG(("WebSocketChannel:: Error: message too big\n"));
|
||||
return NS_ERROR_FILE_TOO_BIG;
|
||||
}
|
||||
|
||||
return mSocketThread->Dispatch(
|
||||
aStream ? new OutboundEnqueuer(this, new OutboundMessage(aStream, aLength))
|
||||
: new OutboundEnqueuer(this,
|
||||
|
Loading…
Reference in New Issue
Block a user