Parent: f05e448cf81b6ff0a8c7fc1e3accdb4f436a46e0
Author: Bastien Nocera <hadess@hadess.net>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-05-16 23:37:35
Tree: 16a5b129ff2340feca51462f78538ae9551e0660
mgmt-tester: Fix non-nul-terminated string Error: STRING_NULL (CWE-170): [#def59] [important] tools/mgmt-tester.c:12670:2: string_null_source: Function "vhci_read_devcd" does not terminate string "buf". tools/mgmt-tester.c:12677:2: string_null: Passing unterminated string "buf" to "strtok_r", which expects a null-terminated string. 12675| 12676| /* Verify if all devcoredump header fields are present */ 12677|-> line = strtok_r(buf, delim, &saveptr); 12678| while (strlen(test->expect_dump_data[i])) { 12679| if (!line || strcmp(line, test->expect_dump_data[i])) {
Diffstat
| M | tools/mgmt-tester.c | | | 8 | ++++++- - |
1 files changed, 6 insertions(+), 2 deletions(-)