From 3adb09efeb613f98acc35cf8574d3715a2c23d25 Mon Sep 17 00:00:00 2001 From: liutuantuan Date: Sat, 25 May 2024 18:04:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0=E7=AC=A6=E5=8F=B7=E8=A1=A8=E8=BE=BE?= =?UTF-8?q?=E5=BC=8F=E9=BB=98=E8=AE=A4=E4=BB=8E0=E5=BC=80=E5=A7=8B?= =?UTF-8?q?=EF=BC=8C=E4=B8=8D=E4=BC=9A=E5=B0=8F=E4=BA=8E0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liutuantuan --- src/create_pcid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/create_pcid.c b/src/create_pcid.c index 6f9a373..f2ac891 100644 --- a/src/create_pcid.c +++ b/src/create_pcid.c @@ -362,7 +362,7 @@ int32_t GetPriSyscap(PCIDMain *pcidMain, cJSON *sysCapObject, size_t contextBufL return -1; } - if (contextBufLen < 0 || contextBufLen > UINT32_MAX) { + if (contextBufLen > UINT32_MAX) { PRINT_ERR("the data privateSyscapLen is out of scope."); return GetPriSyscapResult(capVectorPtr, -1); }