gatttool Segmentation fault

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



passing the special character single quote

#gatttool -I
[   ][                 ][LE]> '
Segmentation fault (core dumped)


Checking g_shell_parse_argv fail status, works fine.

---

--- a/attrib/interactive.c	2013-05-14 06:34:08.000000000 +0530
+++ b/attrib/interactive.c	2013-07-17 18:07:24.563861308 +0530
@@ -867,7 +867,8 @@

 	add_history(line_read);

-	g_shell_parse_argv(line_read, &argcp, &argvp, NULL);
+	if(g_shell_parse_argv(line_read, &argcp, &argvp, NULL) == FALSE)
+		goto done;

 	for (i = 0; commands[i].cmd; i++)
 		if (strcasecmp(commands[i].cmd, argvp[0]) == 0)


---

Thanks,
Ajay K V & Sathish N

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux