From 9615a847f7baaba6e44679325890352ee80812a8 Mon Sep 17 00:00:00 2001 From: liaoxingxing Date: Fri, 13 Jun 2025 17:37:16 +0800 Subject: [PATCH] =?UTF-8?q?uv=5F=5Fffrt=5Fwork=E5=A2=9E=E5=8A=A0=E5=88=A4?= =?UTF-8?q?=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liaoxingxing --- src/threadpool.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/threadpool.c b/src/threadpool.c index 9d13120..7f3d72b 100644 --- a/src/threadpool.c +++ b/src/threadpool.c @@ -590,6 +590,10 @@ static void uv__queue_done(struct uv__work* w, int err) { void uv__ffrt_work(ffrt_executor_task_t* data, ffrt_qos_t qos) { struct uv__work* w = (struct uv__work *)data; + if (w == NULL || w->work == NULL) { + UV_LOGE("uv work is invalid"); + return; + } w->work(w, (int)qos); } -- Gitee