Fix the issue detected by Coverity in format_time_str() and move
the function into the generic utils as suggested.
v2:
- Fix the incorrect loop condition.
- Make the array static and fix argument name in signature.
Fabiano Rosas (3):
migration: HMP: Fix possible out-of-bounds access
migration: HMP: Fix postcopy latency distribution label
cutils: Add time_us_to_str
include/qemu/cutils.h | 1 +
migration/migration-hmp-cmds.c | 19 ++-----------------
util/cutils.c | 13 +++++++++++++
3 files changed, 16 insertions(+), 17 deletions(-)
--
2.35.3