fix: 告警修复
Signed-off-by: arvinzzz <zhaotianyu9@huawei.com> Change-Id: Iccf2fa30b1c16148c8c3e548fcdceda07dff8ae5
This commit is contained in:
parent
8cf05b45ec
commit
7d2fd01c2d
|
@ -269,6 +269,10 @@ int LOS_Open(const char *path, int oflag, ...)
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t pathLen = strlen(path) + 1;
|
size_t pathLen = strlen(path) + 1;
|
||||||
|
if ((unsigned)pathLen > PATH_MAX) {
|
||||||
|
errno = EINVAL;
|
||||||
|
return FS_FAILURE;
|
||||||
|
}
|
||||||
char *canonicalPath = (char *)malloc(pathLen);
|
char *canonicalPath = (char *)malloc(pathLen);
|
||||||
if (!canonicalPath) {
|
if (!canonicalPath) {
|
||||||
errno = ENOMEM;
|
errno = ENOMEM;
|
||||||
|
|
|
@ -39,6 +39,7 @@
|
||||||
#include "los_memory.h"
|
#include "los_memory.h"
|
||||||
#include "los_task.h"
|
#include "los_task.h"
|
||||||
#include "los_sched.h"
|
#include "los_sched.h"
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
|
||||||
#if (LOSCFG_BASE_IPC_QUEUE == 1)
|
#if (LOSCFG_BASE_IPC_QUEUE == 1)
|
||||||
|
|
Loading…
Reference in New Issue