Parent: 6f40e88d0bd52d5b25f869d536996f9e462f1643
Author: Roman Smirnov <r.smirnov@omp.ru>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-07-01 17:15:56
Tree: 90a7ab9734ef241456b3bc7d246ab08662332712
shared/shell: add a check for NULL in bt_shell_init() The opt variable is checked for NULL at the beginning of the function. It is necessary to add a check to prevent null pointer dereferencing. Found with the SVACE static analysis tool.
Diffstat
| M | src/shared/shell.c | | | 14 | ++++++++- - - - - - |
1 files changed, 8 insertions(+), 6 deletions(-)