Parent: 4262170a7989e63c0a340a7acef4181045930e8d
Author: Bastien Nocera <hadess@hadess.net>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-05-10 18:27:29
Tree: be21ce00eed581822deed4a4d945aa520987de68
client/main: Fix array access Error: CPPCHECK_WARNING (CWE-788): [#def36] client/main.c:833: error[ctuArrayIndex]: Array index out of bounds; 'argv' buffer size is 0 and it is accessed at offset 1. 831| const char **opt; 832| 833|-> if (!strcmp(argv[1], "help")) { 834| for (opt = arg_table; opt && *opt; opt++) 835| bt_shell_printf("%s\n", *opt);
Diffstat
| M | client/main.c | | | 5 | +++++ |
1 files changed, 5 insertions(+), 0 deletions(-)