1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

sspc: client: restrict forwarded bulk data to 2048

This commit is contained in:
Andy Green 2020-08-10 14:42:00 +01:00
parent 8669f6bf61
commit fff9ca6ee4

View file

@ -108,7 +108,7 @@ callback_sspc_client(struct lws *wsi, enum lws_callback_reasons reason,
void *user, void *in, size_t len)
{
lws_sspc_handle_t *h = (lws_sspc_handle_t *)lws_get_opaque_user_data(wsi);
uint8_t s[32], pkt[LWS_PRE + 8192], *p = pkt + LWS_PRE,
uint8_t s[32], pkt[LWS_PRE + 2048], *p = pkt + LWS_PRE,
*end = p + sizeof(pkt) - LWS_PRE;
void *m = (void *)((uint8_t *)&h[1]);
const uint8_t *cp;