bluez/tools/mesh
Bastien Nocera 9b346513cc 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++) {
2024-07-08 10:39:31 -04:00
..
agent.c tools: Add SPDX License Identifier 2020-09-29 14:37:23 -07:00
agent.h tools: Add SPDX License Identifier 2020-09-29 14:37:23 -07:00
cfgcli.c tools/mesh-cfgclient: Auto request own composition data 2023-03-17 13:27:14 -07:00
cfgcli.h tools/mesh-cfgclient: Auto request own composition data 2023-03-17 13:27:14 -07:00
config-model.h tools: Add SPDX License Identifier 2020-09-29 14:37:23 -07:00
keys.c tools/mesh-cfgclient: Rename mesh-db APIs for consistency 2021-09-27 13:22:39 -07:00
keys.h tools: Add SPDX License Identifier 2020-09-29 14:37:23 -07:00
mesh-db.c tools/mesh: Fix integer overflow due to cast operation 2024-07-08 10:39:31 -04:00
mesh-db.h tools/mesh: Optimize for multiple RPR servers and NPPI 2023-01-30 16:14:41 -08:00
model.h tools/mesh-cfgclient: Store remote's model publication info 2021-09-27 13:22:39 -07:00
README tools/mesh-cfgclient: fix binaries and config name in README 2019-11-07 09:17:15 -08:00
remote.c tools/mesh-cfgclient: Prevent storing duplicate models 2023-03-17 13:27:14 -07:00
remote.h tools/mesh: Optimize for multiple RPR servers and NPPI 2023-01-30 16:14:41 -08:00
util.c tools/mesh-cfgclient: Auto request own composition data 2023-03-17 13:27:14 -07:00
util.h tools: Add SPDX License Identifier 2020-09-29 14:37:23 -07:00

MeshCfgclient - BlueZ PB-Adv based Bluetooth Mesh Provisioner
*************************************************************

Copyright (C) 2019  Intel Corporation. All rights reserved.

Compilation and installation
============================

In addition to main BlueZ requirements, MeshCfgclient needs the following:
	- JSON library

Configuration and options
=========================

	--enable-mesh

		Build mesh-cfgclient and other Bluetooth Mesh based tools

Storage for mesh configuration file
===================================

The mesh-cfgclient tool generates a mesh configuration file in JSON format:
	- mesh_db.json
that contains information about the current state of the configured mesh
network.

The default directory for mesh-cfgclient configuration file is
$HOME/.config/meshcfg

To specify a custom file, run mesh-cfgclient tool as:

	mesh-cfgclient -c <config_file_name>

If a configuration file is not found, it is assumed that a mesh network
does not exist. In this case, the tool may be used to generate a new  mesh
network by invoking "create" command from the main menu and, on a successful
completion of this command, an initial configuration file is written.

If the configuration file is present, then "create" command will fail. This
is done so that the existing configuration is not accidentally overwritten.
If the intention is to create a new network then, the existing mesh
configuration file has to be either moved or dleted prior to running the
mesh-cfgclient tool. Also, a new custom storage location may be
specified for a new network on the start up as a command line option.


Information
===========

Mailing lists:
	linux-bluetooth@vger.kernel.org

For additional information about the project visit BlueZ web site:
	http://www.bluez.org