Hi,
gcc 14.2.1 refuse to compile:
- you made -Werror
- src/u_websocket.c line 2117 memcpy() makes a warning
The warning is quite bad, it says you test: if (data_len_in && data_len_in <= (SIZE_MAX-4))
but memcpy() max size is SSIZE_MAX (that is smaller)
possible fix:
add #include <limits.h> and change the if to SSIZE_MAX
Hi,
gcc 14.2.1 refuse to compile:
The warning is quite bad, it says you test: if (data_len_in && data_len_in <= (SIZE_MAX-4))
but memcpy() max size is SSIZE_MAX (that is smaller)
possible fix:
add #include <limits.h> and change the if to SSIZE_MAX