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:
parent
c0863e5bc6
commit
43efadcf92
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user