Files
ability_ability_runtime/interfaces
openharmony_ci 97af2be38a !19686 merge fix-memleak-string-truncation into master
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
2026-06-26 18:57:25 +08:00
..
2026-06-26 00:07:00 +08:00