mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-24 12:43:16 -04:00
97af2be38a
fix: update GetMemLeakStringFunc interface to prevent data truncation Created-by: denganliang Commit-by: denganliang Merged-by: openharmony_ci Description: ## Description - Update GetMemLeakStringFunc interface signature to add int * output parameter for actual data length - GetDumpResult uses dumpResult.assign(buf, outLen) instead of dumpResult = buf to avoid truncation when char* contains null bytes - GetSnapshot uses write(fd, buf, outLen) instead of strlen(buf) to avoid null byte truncation ## Related Issue Fixes #15524 ## Verification - Compilation: pending - Unit test: pending See merge request: openharmony/ability_ability_runtime!19686