diff --git a/src/kit/shell/src/shellCheck.c b/src/kit/shell/src/shellCheck.c index bf73cdfa1324855ece7e69d1095bca862605bd23..5821281a036674e7a60edc2f63500822a358b1bc 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};