mirror of
https://github.com/openharmony/developtools_syscap_codec.git
synced 2026-08-27 02:11:19 -04:00
fix: privateSyscapLen cant be unsigned data.
Signed-off-by: yudechen <chenyude@huawei.com> Change-Id: I729e1f50d84874a3d8117b7ff453bba4185c3c97
This commit is contained in:
+2
-2
@@ -420,11 +420,11 @@ int32_t DecodePCID(char *inputFile, char *outDirPath)
|
||||
}
|
||||
|
||||
char *ptrPrivateSyscap = (char *)(pcidMain + 1);
|
||||
size_t privateSyscapLen = contextBufLen - sizeof(PCIDMain) - 1;
|
||||
int privateSyscapLen = contextBufLen - sizeof(PCIDMain) - 1;
|
||||
char priSyscapStr[SINGLE_SYSCAP_LEN] = {0};
|
||||
char *tempPriSyscapStr = priSyscapStr;
|
||||
char fullPriSyscapStr[SINGLE_SYSCAP_LEN] = {0};
|
||||
if ((long)privateSyscapLen < 0) {
|
||||
if (privateSyscapLen < 0) {
|
||||
PRINT_ERR("parse private syscap failed.");
|
||||
ret = -1;
|
||||
goto FREE_VECTOR_OUT;
|
||||
|
||||
Reference in New Issue
Block a user