Commit: 5cdaeaefc350ea3c42719284b88406579d032fb6
Parent: 56bda20ce9e3e5c4684b37cffd4527264c2b4c1e
Author: Gopal Tiwari <gtiwari@redhat.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2022-05-31 23:08:58
Tree: 18b543eee0fa4eb686be2849a5f152a456caa5df

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.

Diffstat

M tools/mesh-gatt/prov-db.c | 3 ++-

1 files changed, 2 insertions(+), 1 deletions(-)

View Full Diff | Patch