mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-28 01:31:56 +00:00
!36884 Fix: 安全告警修正back
Merge pull request !36884 from yangziyong/codecheck_0703
This commit is contained in:
commit
4998dab6eb
@ -290,8 +290,6 @@ void PixelMapOhos::SavePixelMapToFile(const std::string& dst) const
|
||||
"_rowStride" + std::to_string(rowStride) + "_byteCount" + std::to_string(totalSize) + dst +
|
||||
".dat";
|
||||
auto path = ImageFileCache::GetInstance().ConstructCacheFilePath(filename);
|
||||
char realPath[PATH_MAX] = { 0x00 };
|
||||
CHECK_NULL_VOID(realpath(path.c_str(), realPath));
|
||||
std::ofstream outFile(path, std::fstream::out);
|
||||
if (!outFile.is_open()) {
|
||||
TAG_LOGW(AceLogTag::ACE_IMAGE, "write error, path=%{public}s", path.c_str());
|
||||
|
Loading…
Reference in New Issue
Block a user