Skip to content
Snippets Groups Projects
Commit a4235de8 authored by Constantin P.'s avatar Constantin P. 💬
Browse files

Mem corruption fix

parent 5931f83c
No related branches found
No related tags found
1 merge request!480Mem corruption fix
Pipeline #49605 passed with stage
in 21 minutes and 21 seconds
......@@ -99,7 +99,7 @@ DAP_STATIC_INLINE void s_cli_cmd_schedule(dap_events_socket_t *a_es, void *a_arg
size_t l_hdr_len = (size_t)(l_arg->buf - (char*)a_es->buf_in);
if ( a_es->buf_in_size < l_arg->buf_size + l_hdr_len )
return;
l_arg->buf = DAP_DUP_SIZE(l_arg->buf, l_arg->buf_size);
l_arg->buf = strndup(l_arg->buf, l_arg->buf_size);
l_arg->worker = a_es->worker;
l_arg->es_uid = a_es->uuid;
dap_proc_thread_callback_add_pri(NULL, s_cli_cmd_exec, l_arg, DAP_QUEUE_MSG_PRIORITY_HIGH);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment