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

The org.freedesktop.DBus.Properties.PropertiesChanged signal allows
sending "invalidated_properties" (only property names without values).
In this case the property_changed callbacks are called with NULL iterator
by gdbus/client.c::properties_changed():

...
proxy->prop_func(..., ..., iter=NULL, ...)
...

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 for NULL iterator

 client/gatt.c       |  5 +++++
 src/advertising.c   | 22 +++++++++++++++++-----
 src/battery.c       | 10 ++++++----
 src/gatt-database.c | 20 +++++++++++---------
 4 files changed, 39 insertions(+), 18 deletions(-)

-- 
2.35.3


^ permalink raw reply	[flat|nested] 28+ messages in thread
* [PATCH BlueZ v2 1/9] advertising: parse_secondary: fix loop condition
@ 2022-09-23 14:55 Christian Eggers
  2022-09-23 15:47 ` properties_changed: check for NULL iterator bluez.test.bot
                   ` (14 more replies)
  0 siblings, 15 replies; 28+ messages in thread
From: Christian Eggers @ 2022-09-23 14:55 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 10:24 [PATCH BlueZ 0/9] properties_changed: check for NULL iterator Christian Eggers
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
2022-09-23 10:24 ` [PATCH BlueZ 2/9] advertising: parse_secondary: fix mask value Christian Eggers
2022-09-23 10:24 ` [PATCH BlueZ 3/9] advertising: parse_secondary: check for NULL iterator Christian Eggers
2022-09-23 10:24 ` [PATCH BlueZ 4/9] advertising: parse_min_interval: reset min_interval if iter is NULL Christian Eggers
2022-09-23 10:26 ` Christian Eggers
2022-09-23 20:50   ` patchwork-bot+bluetooth
2022-09-23 10:26 ` [PATCH BlueZ 5/9] advertising: parse_[min|max]_interval: reset value " Christian Eggers
2022-09-23 10:26 ` [PATCH BlueZ 6/9] advertising: parse_tx_power: " Christian Eggers
2022-09-23 10:26 ` [PATCH BlueZ 7/9] client/gatt: proxy_property_changed: check for NULL iterator Christian Eggers
2022-09-23 10:27 ` [PATCH BlueZ 8/9] gatt: " Christian Eggers
2022-09-23 10:27 ` [PATCH BlueZ 9/9] battery: provided_battery_property_changed_cb: " 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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.