!656 fix: 告警修复
Merge pull request !656 from Zhaotianyu/0323codex_fix_b_3.1_release
This commit is contained in:
commit
f5fe0b0217
|
@ -269,6 +269,10 @@ int LOS_Open(const char *path, int oflag, ...)
|
|||
}
|
||||
|
||||
size_t pathLen = strlen(path) + 1;
|
||||
if ((unsigned)pathLen > PATH_MAX) {
|
||||
errno = EINVAL;
|
||||
return FS_FAILURE;
|
||||
}
|
||||
char *canonicalPath = (char *)malloc(pathLen);
|
||||
if (!canonicalPath) {
|
||||
errno = ENOMEM;
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
#include "los_memory.h"
|
||||
#include "los_task.h"
|
||||
#include "los_sched.h"
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
#if (LOSCFG_BASE_IPC_QUEUE == 1)
|
||||
|
|
Loading…
Reference in New Issue