mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-25 12:23:20 -04:00
576ed372bb176aba5d3ff46d83f40bdfbd1a41c6
fix: 防止GetDumpResult将空字符串赋值给dumpResult Created-by: denganliang Commit-by: denganliang Merged-by: openharmony_ci Description: ## 修改说明 - 防止 GetDumpResult 将 malloc 分配但内容为空字符串的 buf 赋值给 dumpResult - 根因:当 OHOS_GetMemLeakString malloc 分配了缓冲区但内容为空字符串时,原代码只判断 buf!=nullptr 就赋值 - 增加 *buf!=空字符 判断,与 buf!=nullptr 一起构成双重防御 **IssueNo**: https://gitcode.com/openharmony/hiviewdfx_hidumper/issues/586 ## 关联PR - openharmony/hiviewdfx_hidumper!767 ## 验证 - 编译通过 - 与 hidumper PR 配合验证 See merge request: openharmony/ability_ability_runtime!19413
Description
暂无描述
Languages
C++
98.1%
C
1.5%
JavaScript
0.2%
TypeScript
0.1%