Closed yijiangqiu1 closed 2 years ago
In function bytes_to_human_readable, if bytes > 1024PB, the variable named i will be 6 and in “snprintf(buf, sizeof(buf), "%u.%02u %s", quoti, remain, units[i]);”, function will access units[6] . This will cause Out-of-Bounds Accesses.
Signed-off-by: yijiangqiu1 wangfangli@xiaomi.com
In function bytes_to_human_readable, if bytes > 1024PB, the variable named i will be 6 and in “snprintf(buf, sizeof(buf), "%u.%02u %s", quoti, remain, units[i]);”, function will access units[6] . This will cause Out-of-Bounds Accesses.
Signed-off-by: yijiangqiu1 wangfangli@xiaomi.com