From cf806134291dfa5a5f90fef59130c34f596d73ec Mon Sep 17 00:00:00 2001 From: wpan Date: Sun, 26 Sep 2021 11:03:12 +0800 Subject: [PATCH] fix bug --- src/kit/shell/src/shellCheck.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/kit/shell/src/shellCheck.c b/src/kit/shell/src/shellCheck.c index bf73cdfa13..5821281a03 100644 --- a/src/kit/shell/src/shellCheck.c +++ b/src/kit/shell/src/shellCheck.c @@ -111,6 +111,7 @@ static void *shellCheckThreadFp(void *arg) { int32_t start = pThread->threadIndex * interval; int32_t end = (pThread->threadIndex + 1) * interval; + if (start >= tbNum) return NULL; if (end > tbNum) end = tbNum + 1; char file[32] = {0}; -- GitLab