mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-09 22:23:13 +02:00
Fix crash issue in websocket server (CVE-2023-50784)
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
ModuleHeader MOD_HEADER
|
||||
= {
|
||||
"websocket_common",
|
||||
"6.0.0",
|
||||
"6.1.4",
|
||||
"WebSocket support (RFC6455)",
|
||||
"UnrealIRCd Team",
|
||||
"unrealircd-6",
|
||||
@@ -149,7 +149,7 @@ int websocket_handle_packet(Client *client, const char *readbuf, int length, int
|
||||
const char *p;
|
||||
int total_packet_size;
|
||||
char *payload = NULL;
|
||||
static char payloadbuf[READBUF_SIZE];
|
||||
static char payloadbuf[MAXLINELENGTH];
|
||||
int maskkeylen = 4;
|
||||
|
||||
if (length < 4)
|
||||
|
||||
Reference in New Issue
Block a user