3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 09:39:25 +01:00

t-runner: Fix out-of-bounds write

This commit is contained in:
Tim Kourt 2019-10-22 16:13:14 -07:00 committed by Denis Kenzior
parent c0863e5bc6
commit 43efadcf92

View File

@ -1636,7 +1636,7 @@ static void print_test_status(char *test_name, enum test_status ts,
interval_str = l_malloc(int_len);
memset(interval_str, ' ', int_len);
interval_str[int_len] = '\0';
interval_str[int_len - 1] = '\0';
if (interval > 0)
sprintf(interval_str, "%.3f sec", interval);