Skip to content

Commit

Permalink
Fix crash issue in websocket server (CVE-2023-50784)
Browse files Browse the repository at this point in the history
  • Loading branch information
syzop committed Dec 15, 2023
1 parent fa84174 commit b0e87dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/websocket_common.c
Expand Up @@ -10,7 +10,7 @@
ModuleHeader MOD_HEADER
= {
"websocket_common",
"6.0.0",
"6.1.4",
"WebSocket support (RFC6455)",
"UnrealIRCd Team",
"unrealircd-6",
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b0e87dc

Please sign in to comment.