bluez/tools/mesh-gatt
Gopal Tiwari 5cdaeaefc3 mesh-gatt: Fix use_after_free
Following scenario happens when prov is false and we have double free as
mentioned in the below

bluez-5.64/tools/mesh-gatt/prov-db.c:847: freed_arg: "g_free" frees
"in_str".

bluez-5.64/tools/mesh-gatt/prov-db.c:867: double_free: Calling "g_free"
frees pointer "in_str" which has already been freed.
2022-05-31 13:08:58 -07:00
..
config-client.c tools/mesh: Add <Vendor ID> option to sub-add cmd 2021-11-10 16:48:08 -08:00
config-server.c tools: Add SPDX License Identifier 2020-09-29 14:37:23 -07:00
crypto.c tools: Add SPDX License Identifier 2020-09-29 14:37:23 -07:00
crypto.h mesh: Fix network_id parameter declaration 2021-04-27 19:09:08 +02:00
gatt.c build: Replace use of g_memdup with util_memdup 2022-01-06 12:58:39 -08:00
gatt.h tools: Add SPDX License Identifier 2020-09-29 14:37:23 -07:00
keys.h tools: Add SPDX License Identifier 2020-09-29 14:37:23 -07:00
local_node.json tools/mesh: Move meshctl specific files to mesh-gatt 2019-11-04 14:54:38 -08:00
mesh-net.h tools: Inclusive language changes 2021-09-21 10:51:54 +02:00
net.c tools: Inclusive language changes 2021-09-21 10:51:54 +02:00
net.h tools: Add SPDX License Identifier 2020-09-29 14:37:23 -07:00
node.c tools: Fix memory leaks 2021-05-14 17:05:28 -07:00
node.h tools: Add SPDX License Identifier 2020-09-29 14:37:23 -07:00
onoff-model.c tools: Add SPDX License Identifier 2020-09-29 14:37:23 -07:00
onoff-model.h tools: Add SPDX License Identifier 2020-09-29 14:37:23 -07:00
prov_db.json tools/mesh: Move meshctl specific files to mesh-gatt 2019-11-04 14:54:38 -08:00
prov-db.c mesh-gatt: Fix use_after_free 2022-05-31 13:08:58 -07:00
prov-db.h tools: Add SPDX License Identifier 2020-09-29 14:37:23 -07:00
prov.c tools: Add SPDX License Identifier 2020-09-29 14:37:23 -07:00
prov.h tools: Add SPDX License Identifier 2020-09-29 14:37:23 -07:00
README tools/mesh: Move meshctl specific files to mesh-gatt 2019-11-04 14:54:38 -08:00
util.c build: Fix build when sanitizer are enabled 2021-12-23 11:45:31 -08:00
util.h tools: Add SPDX License Identifier 2020-09-29 14:37:23 -07:00

MeshCtl - BlueZ GATT based Bluetooth Mesh Provisioner
*****************************************************

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

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

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

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

	--enable-mesh

		Build meshctl and other Bluetooth Mesh based tools and utils

Example configuration files
===========================

The MeshCtl tool requires two input configuration files in JSON format:
	- local_node.json
		Local mesh node configuration
	- prov_db.json
		Provisoner's database for all the configured nodes in the mesh

The default directory for MeshCtl configuration files is
/home/<username>/.config/meshctl

To use .json configuration files either copy them to the default directory
or, to specify a custom storage directory, run meshctl tool as:

	meshctl -c <config_dir_name>

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

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

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