Parent: 249d2120bd904c5f6db2138a3412822c9ded1dfb
Author: Bastien Nocera <hadess@hadess.net>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-07-08 17:39:31
Tree: 48ad5e4249540573d18632022e8a1684d02d3939
tools/mesh: Fix integer overflow due to cast operation Error: INTEGER_OVERFLOW (CWE-190): [#def29] [important] tools/mesh/mesh-db.c:551:3: cast_overflow: Truncation due to cast operation on "ele_cnt" from 32 to 8 bits. tools/mesh/mesh-db.c:551:3: overflow_sink: "ele_cnt", which might have overflowed, is passed to "remote_add_node((uint8_t const *)uuid, unicast, ele_cnt, key_idx)". 549| continue; 550| 551|-> remote_add_node((const uint8_t *)uuid, unicast, ele_cnt, 552| key_idx); 553| for (j = 1; j < key_cnt; j++) {
Diffstat
| M | tools/mesh/mesh-db.c | | | 10 | +++++- - - - - |
1 files changed, 5 insertions(+), 5 deletions(-)