linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ v2 0/9] properties_changed: check for NULL iterator
@ 2022-09-23 14:55 Christian Eggers
  2022-09-23 14:55 ` [PATCH BlueZ v2 1/9] advertising: parse_secondary: fix loop condition Christian Eggers
                   ` (7 more replies)
  0 siblings, 8 replies; 28+ messages in thread
From: Christian Eggers @ 2022-09-23 14:55 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Christian Eggers

v2:
----
- 7/9: don't call memcpy(x, NULL, 0) [Scan Build]
- 9/9: shorten GIT summary [GitLint]

Christian Eggers (9):
  advertising: parse_secondary: fix loop condition
  advertising: parse_secondary: fix mask value
  advertising: parse_secondary: check for NULL iterator
  advertising: parse_min_interval: reset min_interval if iter is NULL
  advertising: parse_[min|max]_interval: reset value if iter is NULL
  advertising: parse_tx_power: reset value if iter is NULL
  client/gatt: proxy_property_changed: check for NULL iterator
  gatt: proxy_property_changed: check for NULL iterator
  battery: provided_battery_property_changed_cb: check iterator

 client/gatt.c       | 17 ++++++++++-------
 src/advertising.c   | 22 +++++++++++++++++-----
 src/battery.c       | 10 ++++++----
 src/gatt-database.c | 20 +++++++++++---------
 4 files changed, 44 insertions(+), 25 deletions(-)

-- 
2.35.3


^ permalink raw reply	[flat|nested] 28+ messages in thread
* [PATCH BlueZ 1/9] advertising: parse_secondary: fix loop condition
@ 2022-09-23 10:24 Christian Eggers
  2022-09-23 11:21 ` properties_changed: check for NULL iterator bluez.test.bot
  0 siblings, 1 reply; 28+ messages in thread
From: Christian Eggers @ 2022-09-23 10:24 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Christian Eggers

"secondary" isn't an array of pointers, so the iterator can never be
NULL.
---
 src/advertising.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/advertising.c b/src/advertising.c
index 1fe371a9f345..15ef44def031 100644
--- a/src/advertising.c
+++ b/src/advertising.c
@@ -1055,7 +1055,7 @@ static bool parse_secondary(DBusMessageIter *iter,
 
 	dbus_message_iter_get_basic(iter, &str);
 
-	for (sec = secondary; sec && sec->name; sec++) {
+	for (sec = secondary; sec->name; sec++) {
 		if (strcmp(str, sec->name))
 			continue;
 
-- 
2.35.3


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

end of thread, other threads:[~2022-09-30  0:00 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-23 14:55 [PATCH BlueZ v2 0/9] properties_changed: check for NULL iterator Christian Eggers
2022-09-23 14:55 ` [PATCH BlueZ v2 1/9] advertising: parse_secondary: fix loop condition Christian Eggers
2022-09-23 15:47   ` properties_changed: check for NULL iterator bluez.test.bot
2022-09-29 16:49   ` bluez.test.bot
2022-09-29 17:45   ` bluez.test.bot
2022-09-29 18:40   ` bluez.test.bot
2022-09-29 19:01   ` bluez.test.bot
2022-09-29 19:29   ` bluez.test.bot
2022-09-29 19:47   ` bluez.test.bot
2022-09-29 20:34   ` bluez.test.bot
2022-09-29 20:53   ` bluez.test.bot
2022-09-29 21:30   ` bluez.test.bot
2022-09-29 21:52   ` bluez.test.bot
2022-09-29 22:32   ` bluez.test.bot
2022-09-29 22:52   ` bluez.test.bot
2022-09-29 23:40   ` bluez.test.bot
2022-09-29 23:59   ` bluez.test.bot
2022-09-23 14:55 ` [PATCH BlueZ v2 2/9] advertising: parse_secondary: fix mask value Christian Eggers
2022-09-23 14:55 ` [PATCH BlueZ v2 3/9] advertising: parse_secondary: check for NULL iterator Christian Eggers
2022-09-23 14:55 ` [PATCH BlueZ v2 4/9] advertising: parse_min_interval: reset min_interval if iter is NULL Christian Eggers
2022-09-23 14:57 ` [PATCH BlueZ v2 5/9] advertising: parse_[min|max]_interval: reset value " Christian Eggers
2022-09-23 14:58 ` [PATCH BlueZ v2 6/9] advertising: parse_tx_power: " Christian Eggers
2022-09-23 14:58   ` [PATCH BlueZ v2 7/9] client/gatt: proxy_property_changed: check for NULL iterator Christian Eggers
2022-09-23 14:58   ` [PATCH BlueZ v2 8/9] gatt: " Christian Eggers
2022-09-23 14:58   ` [PATCH BlueZ v2 9/9] battery: provided_battery_property_changed_cb: check iterator Christian Eggers
2022-09-23 19:18 ` [PATCH BlueZ v2 0/9] properties_changed: check for NULL iterator Luiz Augusto von Dentz
2022-09-23 20:50 ` patchwork-bot+bluetooth
  -- strict thread matches above, loose matches on Subject: below --
2022-09-23 10:24 [PATCH BlueZ 1/9] advertising: parse_secondary: fix loop condition Christian Eggers
2022-09-23 11:21 ` properties_changed: check for NULL iterator 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).