mirror of
https://gitee.com/openharmony/developtools_profiler
synced 2025-02-17 01:09:22 +00:00
安全告警清理1115
Signed-off-by: ganchuantao <ganchuantao1@huawei.com> Change-Id: I2e4f01fcb5c655391f49c0c553668416394ed054
This commit is contained in:
parent
bb431328e2
commit
3096293201
@ -120,6 +120,10 @@ std::string FtraceFsOps::GetKernelSymbols() const
|
||||
CHECK_TRUE(restrictValue.size() > 0, "", "read kptr_restrict failed!");
|
||||
|
||||
bool valueChanged = false;
|
||||
if (!COMMON::IsNumeric(restrictValue)) {
|
||||
PROFILER_LOG_ERROR(LOG_CORE, "not numeric string");
|
||||
return "";
|
||||
}
|
||||
if (std::stoi(restrictValue) == 0) {
|
||||
SetKptrRestrict("1");
|
||||
valueChanged = true;
|
||||
|
@ -383,6 +383,7 @@ static void WriteMmap(const char* data)
|
||||
// 建立映射
|
||||
char* pMap = CreateMmap();
|
||||
if (data == nullptr || strlen(data) == 0) {
|
||||
RemoveMmap(pMap);
|
||||
return;
|
||||
}
|
||||
// 写入
|
||||
|
Loading…
x
Reference in New Issue
Block a user