Parent: 566af9c2f5efaa33ebb093efb3a03f83876943ba
Author: Bastien Nocera <hadess@hadess.net>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-05-16 23:37:33
Tree: 66751acac9ce38ced7c5f7faa38c1ff824d22491
isotest: Fix string size expectations Verify that the peer is a valid bdaddr (and so has the correct length) before using it. Error: STRING_SIZE (CWE-120): [#def54] [important] tools/isotest.c:1198:26: string_size_argv: "argv" contains strings with unknown size. tools/isotest.c:1459:4: string_size: Passing string "argv[optind + i]" of unknown size to "send_mode", which expects a string of a particular size. Error: STRING_SIZE (CWE-120): [#def55] [important] tools/isotest.c:1198:26: string_size_argv: "argv" contains strings with unknown size. tools/isotest.c:1476:4: var_assign_var: Assigning: "peer" = "argv[optind + i]". Both are now tainted. tools/isotest.c:1484:5: string_size: Passing string "peer" of unknown size to "bcast_do_connect_mbis", which expects a string of a particular size. Error: STRING_SIZE (CWE-120): [#def56] [important] tools/isotest.c:1198:26: string_size_argv: "argv" contains strings with unknown size. tools/isotest.c:1476:4: var_assign_var: Assigning: "peer" = "argv[optind + i]". Both are now tainted. tools/isotest.c:1514:5: string_size: Passing string "argv[optind + i]" of unknown size to "do_connect", which expects a string of a particular size.
Diffstat
| M | tools/isotest.c | | | 15 | +++++++++++++- - |
1 files changed, 13 insertions(+), 2 deletions(-)