You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 20, 2022. It is now read-only.
void alloc_buffer(uv_handle_t *handle, size_t suggested_size, uv_buf_t buf) {
buf->base = (char) malloc(suggested_size);
memset(buf->base, 0, suggested_size); // set 0
buf->len = suggested_size;
}
After malloc, memset should be added, otherwise the received data may be scrambled. Actually, the test will be scrambled
The text was updated successfully, but these errors were encountered: