linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ v1 0/1] mgmt: Fix crash after pair command
@ 2023-12-14 11:03 Vinit Mehta
  2023-12-14 11:03 ` [PATCH BlueZ v1 1/1] " Vinit Mehta
  0 siblings, 1 reply; 3+ messages in thread
From: Vinit Mehta @ 2023-12-14 11:03 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: devyani.godbole, nitin.jadhav

Hello Maintainers

This patch fixes assertion in bluetoothctl client process

After pair command, if the user doesn't provide any input on bluetoothctl
CLI interface after receiving the prompt(yes/no), than subsequent CLI 
command will trigger a call to DBUS library function 
(dbus_message_get_no_reply) with a NULL message pointer which triggers
assertion in DBUS library causing the bluetoothctl process to crash. 
The change below will ensure in case if no input is given by the user, 
a conditional check is added to handle this scenario and a default 
character ('N') will be passed so as to avoid the assertion.

Thank you in advance for your review.

Warm Regards
Vinit Mehta

Vinit Mehta (1):
  mgmt: Fix crash after pair command

 client/mgmt.c | 23 +++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)

-- 
2.42.0.windows.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-12-14 12:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-14 11:03 [PATCH BlueZ v1 0/1] mgmt: Fix crash after pair command Vinit Mehta
2023-12-14 11:03 ` [PATCH BlueZ v1 1/1] " Vinit Mehta
2023-12-14 12:05   ` bluez.test.bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).