Skip to contentSkip to conversation

audio/avrcp: Fix crash with invalid UTF-8 item name

PATCH Applied Frédéric Danis 5 participants 13 messages Jul 8, 2025 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

v3 cover audio/avrcp: Fix crash with invalid UTF-8 item name

As stated in AVRCP 1.6.2 chapter 6.10.2.3 Media element item, for the Displayable Name Length property, the target device may truncate the item name:

Length of Displayable Name in octets. The name shall be limited such that a response to a GetFolderItems containing one media player item fits within the maximum size of PDU which can be received by the CT.

This truncatation may occur in the middle of a multi-byte character, at least with Samsung Music app, which triggers a DBus assertion and crashes bluetoothd:

profiles/audio/player.c:media_folder_create_item() Din Dhal Jaye
Haye with lyrics | "दिन ढल जाए
हाय" गाने के बो� type audio uid 1
profiles/audio/player.c:media_folder_create_item()

      /org/bluez/hci0/dev_24_24_B7_11_82_6C/player0/NowPlaying/item1

profiles/audio/player.c:media_player_set_metadata() Title: Din Dhal
Jaye Haye with lyrics | "दिन ढल जाए हाय"
गाने के बोल | Guide | Dev Anand, Waheeda Rehman
…
arguments to dbus_message_iter_append_basic() were incorrect,
assertion "_dbus_check_is_valid_utf8 (*string_p)" failed in file dbus-message.c line 2775.
This is normally a bug in some application using the D-Bus library.

v1->v2:
- Introduce new strtoutf8() util function to truncate a string before the first non UTF-8 character.
- Use strtoutf8() for AVRCP media element name
- Use strtoutf8() for MCP player name and track title
- Use strtoutf8() for Audio GAP device name
- Use strtoutf8() for EIR device names
v2->v3:
- Use strtoutf8() for AD device names
- Add name encoding tests to unit/test-eir

Frédéric Danis (7):
shared/util: Add strtoutf8 function audio/avrcp: Fix crash with invalid UTF-8 item name audio/mcp: Use strtoutf8 for player name and track title audio/gap: Use strtoutf8 for GAP device name
eir: Use strtoutf8 for device names
shared/ad: Use strtoutf8 for name unit/test-eir: Add name encoding tests

 profiles/audio/avrcp.c |  4 +++-
 profiles/audio/mcp.c   | 11 +---------
 profiles/gap/gas.c     | 11 +---------
 src/eir.c              | 11 +---------
 src/shared/ad.c        |  7 +-----
 src/shared/util.c      | 42 +++++++++++++++++++++++++++++++++++
 src/shared/util.h      |  1 +
 unit/test-eir.c        | 50 ++++++++++++++++++++++++++++++++++++++++++
 8 files changed, 100 insertions(+), 37 deletions(-)
Signature · 1 line
2.43.0
#1 lore raw

PATCH v3 1/7 shared/util: Add strtoutf8 function

This adds the strtoutf8 function that truncate a string before the first non UTF-8 character.
This truncation is done in place.

---
 src/shared/util.c | 42 ++++++++++++++++++++++++++++++++++++++++++
 src/shared/util.h |  1 +
 2 files changed, 43 insertions(+)
src/shared/util.c +42 -0
index 5d3a14d96..5262458cb 100644
@@ -1959,3 +1959,45 @@ bool argsisutf8(int argc, char *argv[])
 
 	return true;
 }
+
+char *strtoutf8(char *str, size_t len)
+{
+	size_t i = 0;
+
+	while (i < len) {
+		unsigned char c = str[i];
+		size_t size = 0;
+
+		/* Check the first byte to determine the number of bytes in the
+		 * UTF-8 character.
+		 */
+		if ((c & 0x80) == 0x00)
+			size = 1;
+		else if ((c & 0xE0) == 0xC0)
+			size = 2;
+		else if ((c & 0xF0) == 0xE0)
+			size = 3;
+		else if ((c & 0xF8) == 0xF0)
+			size = 4;
+		else
+			/* Invalid UTF-8 sequence */
+			goto done;
+
+		/* Check the following bytes to ensure they have the correct
+		 * format.
+		 */
+		for (size_t j = 1; j < size; ++j) {
+			if (i + j > len || (str[i + j] & 0xC0) != 0x80)
+				/* Invalid UTF-8 sequence */
+				goto done;
+		}
+
+		/* Move to the next character */
+		i += size;
+	}
+
+done:
+	/* Truncate to the longest valid UTF-8 string */
+	memset(str + i, 0, len - i);
+	return str;
+}
src/shared/util.h +1 -0
index dd357fb93..6fc02a9dc 100644
@@ -92,6 +92,7 @@ int strsuffix(const char *str, const char *suffix);
 char *strstrip(char *str);
 bool strisutf8(const char *str, size_t length);
 bool argsisutf8(int argc, char *argv[]);
+char *strtoutf8(char *str, size_t len);
 
 void *util_malloc(size_t size);
 void *util_memdup(const void *src, size_t size);
Signature · 1 line
2.43.0
#2 lore raw

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=980101

---Test result---

Test Summary:

CheckPatch                    PENDING   0.25 seconds
GitLint                       PENDING   0.24 seconds
BuildEll                      PASS      20.42 seconds
BluezMake                     PASS      2694.75 seconds
MakeCheck                     PASS      19.84 seconds
MakeDistcheck                 PASS      186.45 seconds
CheckValgrind                 PASS      236.95 seconds
CheckSmatch                   PASS      306.32 seconds
bluezmakeextell               PASS      127.72 seconds
IncrementalBuild              PENDING   0.29 seconds
ScanBuild                     PASS      915.07 seconds

Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:

##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:

##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series Output:

---
Regards,
Linux Bluetooth

#3 lore raw

PATCH v3 2/7 audio/avrcp: Fix crash with invalid UTF-8 item name

In reply to Frédéric Danis

As stated in AVRCP 1.6.2 chapter 6.10.2.3 Media element item, for the Displayable Name Length property, the target device may truncate the item name:

Length of Displayable Name in octets. The name shall be limited such that a response to a GetFolderItems containing one media player item fits within the maximum size of PDU which can be received by the CT.

This truncatation may occur in the middle of a multi-byte character, at least with Samsung Music app, which triggers a DBus assertion and crashes bluetoothd:

profiles/audio/player.c:media_folder_create_item() Din Dhal Jaye
Haye with lyrics | "दिन ढल जाए
हाय" गाने के बो� type audio uid 1
profiles/audio/player.c:media_folder_create_item()

      /org/bluez/hci0/dev_24_24_B7_11_82_6C/player0/NowPlaying/item1
  profiles/audio/player.c:media_player_set_metadata() Title: Din Dhal
      Jaye Haye with lyrics | "दिन ढल जाए हाय"
      गाने के बोल | Guide | Dev Anand, Waheeda Rehman
  …
  arguments to dbus_message_iter_append_basic() were incorrect,
      assertion "_dbus_check_is_valid_utf8 (*string_p)" failed in
      file dbus-message.c line 2775.
  This is normally a bug in some application using the D-Bus library.
---
 profiles/audio/avrcp.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
profiles/audio/avrcp.c +3 -1
index 831f1dc8b..30997335a 100644
@@ -2595,8 +2595,10 @@ static struct media_item *parse_media_element(struct avrcp *session,
 	memset(name, 0, sizeof(name));
 	namesize = get_be16(&operands[11]);
 	namelen = MIN(namesize, sizeof(name) - 1);
-	if (namelen > 0)
+	if (namelen > 0) {
 		memcpy(name, &operands[13], namelen);
+		strtoutf8(name, namelen);
+	}
 
 	count = operands[13 + namesize];
 
Signature · 1 line
2.43.0
#4 lore raw

PATCH v3 3/7 audio/mcp: Use strtoutf8 for player name and track title

In reply to Frédéric Danis

Truncate the string to first character before invalid UTF-8 one instead of replacing non ascii characters by spaces.

---
 profiles/audio/mcp.c | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)
profiles/audio/mcp.c +1 -10
index d3ccb97c5..5fe7ef82a 100644
@@ -72,21 +72,12 @@ static void mcp_debug(const char *str, void *user_data)
 static char *name2utf8(const uint8_t *name, uint16_t len)
 {
 	char utf8_name[HCI_MAX_NAME_LENGTH + 2];
-	int i;
-
-	if (g_utf8_validate((const char *) name, len, NULL))
-		return g_strndup((char *) name, len);
 
 	len = MIN(len, sizeof(utf8_name) - 1);
 
 	memset(utf8_name, 0, sizeof(utf8_name));
 	strncpy(utf8_name, (char *) name, len);
-
-	/* Assume ASCII, and replace all non-ASCII with spaces */
-	for (i = 0; utf8_name[i] != '\0'; i++) {
-		if (!isascii(utf8_name[i]))
-			utf8_name[i] = ' ';
-	}
+	strtoutf8(utf8_name, len);
 
 	/* Remove leading and trailing whitespace characters */
 	g_strstrip(utf8_name);
Signature · 1 line
2.43.0
#5 lore raw

PATCH v3 4/7 audio/gap: Use strtoutf8 for GAP device name

In reply to Frédéric Danis

Truncate the string to first character before invalid UTF-8 one instead of replacing non ascii characters by spaces.

---
 profiles/gap/gas.c | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)
profiles/gap/gas.c +1 -10
index 08aaf19cb..74dabf41f 100644
@@ -69,21 +69,12 @@ static void gas_free(struct gas *gas)
 static char *name2utf8(const uint8_t *name, uint16_t len)
 {
 	char utf8_name[HCI_MAX_NAME_LENGTH + 2];
-	int i;
-
-	if (g_utf8_validate((const char *) name, len, NULL))
-		return g_strndup((char *) name, len);
 
 	len = MIN(len, sizeof(utf8_name) - 1);
 
 	memset(utf8_name, 0, sizeof(utf8_name));
 	strncpy(utf8_name, (char *) name, len);
-
-	/* Assume ASCII, and replace all non-ASCII with spaces */
-	for (i = 0; utf8_name[i] != '\0'; i++) {
-		if (!isascii(utf8_name[i]))
-			utf8_name[i] = ' ';
-	}
+	strtoutf8(utf8_name, len);
 
 	/* Remove leading and trailing whitespace characters */
 	g_strstrip(utf8_name);
Signature · 1 line
2.43.0
#6 lore raw

PATCH v3 5/7 eir: Use strtoutf8 for device names

In reply to Frédéric Danis

Truncate the string to first character before invalid UTF-8 one instead of replacing non ascii characters by spaces.

---
 src/eir.c | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)
src/eir.c +1 -10
index 28b09653c..1e1f76952 100644
@@ -127,19 +127,10 @@ static void eir_parse_uuid128(struct eir_data *eir, const uint8_t *data,
 static char *name2utf8(const uint8_t *name, uint8_t len)
 {
 	char utf8_name[HCI_MAX_NAME_LENGTH + 2];
-	int i;
-
-	if (g_utf8_validate((const char *) name, len, NULL))
-		return g_strndup((char *) name, len);
 
 	memset(utf8_name, 0, sizeof(utf8_name));
 	strncpy(utf8_name, (char *) name, len);
-
-	/* Assume ASCII, and replace all non-ASCII with spaces */
-	for (i = 0; utf8_name[i] != '\0'; i++) {
-		if (!isascii(utf8_name[i]))
-			utf8_name[i] = ' ';
-	}
+	strtoutf8(utf8_name, len);
 
 	/* Remove leading and trailing whitespace characters */
 	g_strstrip(utf8_name);
Signature · 1 line
2.43.0
#7 lore raw

PATCH v3 6/7 shared/ad: Use strtoutf8 for name

In reply to Frédéric Danis

Truncate the string to first character before invalid UTF-8 one instead of replacing non ascii characters by spaces.

---
 src/shared/ad.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
src/shared/ad.c +1 -6
index 3f0064dd9..6952a0dab 100644
@@ -276,7 +276,6 @@ static bool ad_replace_uuid128(struct bt_ad *ad, struct iovec *iov)
 static bool ad_replace_name(struct bt_ad *ad, struct iovec *iov)
 {
 	char utf8_name[HCI_MAX_NAME_LENGTH + 2];
-	int i;
 
 	memset(utf8_name, 0, sizeof(utf8_name));
 	strncpy(utf8_name, (const char *)iov->iov_base, iov->iov_len);
@@ -284,11 +283,7 @@ static bool ad_replace_name(struct bt_ad *ad, struct iovec *iov)
 	if (strisutf8(utf8_name, iov->iov_len))
 		goto done;
 
-	/* Assume ASCII, and replace all non-ASCII with spaces */
-	for (i = 0; utf8_name[i] != '\0'; i++) {
-		if (!isascii(utf8_name[i]))
-			utf8_name[i] = ' ';
-	}
+	strtoutf8(utf8_name, iov->iov_len);
 
 	/* Remove leading and trailing whitespace characters */
 	strstrip(utf8_name);
Signature · 1 line
2.43.0
#8 lore raw

Re: [PATCH BlueZ v3 6/7] shared/ad: Use strtoutf8 for name

Hi,

ti, 2025-07-08 kello 17:43 +0200, Frédéric Danis kirjoitti:

Quoted 19 lines

Truncate the string to first character before invalid UTF-8 one instead of replacing non ascii characters by spaces.

---
 src/shared/ad.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
src/shared/ad.c +0 -1
index 3f0064dd9..6952a0dab 100644
@@ -276,7 +276,6 @@ static bool ad_replace_uuid128(struct bt_ad *ad, struct iovec *iov)
 static bool ad_replace_name(struct bt_ad *ad, struct iovec *iov)
 {
 	char utf8_name[HCI_MAX_NAME_LENGTH + 2];
-	int i;
 
 	memset(utf8_name, 0, sizeof(utf8_name));
 	strncpy(utf8_name, (const char *)iov->iov_base, iov->iov_len);

src/shared/ad.c static bool ad_replace_name(struct bt_ad *ad, struct iovec *iov) · line 286

Quoted 9 lines
src/shared/ad.c +1 -5
@@ -284,11 +283,7 @@ static bool ad_replace_name(struct bt_ad *ad, struct iovec *iov)
 	if (strisutf8(utf8_name, iov->iov_len))
 		goto done;
 
-	/* Assume ASCII, and replace all non-ASCII with spaces */
-	for (i = 0; utf8_name[i] != '\0'; i++) {
-		if (!isascii(utf8_name[i]))
-			utf8_name[i] = ' ';
-	}
+	strtoutf8(utf8_name, iov->iov_len);

Looks like potential out-of-bounds access --- strtoutf8() may access iov->iov_base[iov->iov_len]

Cf. for (size_t j = 1; j < size; ++j) loop in strtoutf8().

Also strisutf8() has same problem here.

Quoted 3 lines
src/shared/ad.c +0 -0
 	/* Remove leading and trailing whitespace characters */
 	strstrip(utf8_name);
Signature · 1 line
Pauli Virtanen
#9 lore raw

Re: [PATCH BlueZ v3 6/7] shared/ad: Use strtoutf8 for name

ti, 2025-07-08 kello 20:12 +0300, Pauli Virtanen kirjoitti:

Quoted 25 lines

Hi,

ti, 2025-07-08 kello 17:43 +0200, Frédéric Danis kirjoitti:

Quoted 22 lines

Truncate the string to first character before invalid UTF-8 one instead of replacing non ascii characters by spaces.

---
 src/shared/ad.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
src/shared/ad.c +0 -1
index 3f0064dd9..6952a0dab 100644
@@ -276,7 +276,6 @@ static bool ad_replace_uuid128(struct bt_ad *ad, struct iovec *iov)
 static bool ad_replace_name(struct bt_ad *ad, struct iovec *iov)
 {
 	char utf8_name[HCI_MAX_NAME_LENGTH + 2];
-	int i;
 
 	memset(utf8_name, 0, sizeof(utf8_name));
 	strncpy(utf8_name, (const char *)iov->iov_base, iov->iov_len);
@@ -284,11 +283,7 @@ static bool ad_replace_name(struct bt_ad *ad, struct iovec *iov)
 	if (strisutf8(utf8_name, iov->iov_len))
 		goto done;
 
Quoted 9 lines

src/shared/ad.c static bool ad_replace_name(struct bt_ad *ad, struct iovec *iov) · line 286

Quoted 6 lines
src/shared/ad.c +1 -5
-	/* Assume ASCII, and replace all non-ASCII with spaces */
-	for (i = 0; utf8_name[i] != '\0'; i++) {
-		if (!isascii(utf8_name[i]))
-			utf8_name[i] = ' ';
-	}
+	strtoutf8(utf8_name, iov->iov_len);

Looks like potential out-of-bounds access --- strtoutf8() may access iov->iov_base[iov->iov_len]

Sorry, never mind --- it's using the temporary buffer here which is maybe large enough.

Quoted 8 lines

Cf. for (size_t j = 1; j < size; ++j) loop in strtoutf8().

Also strisutf8() has same problem here.

Quoted 3 lines
src/shared/ad.c +0 -0
 	/* Remove leading and trailing whitespace characters */
 	strstrip(utf8_name);
#10 lore raw

Re: [PATCH BlueZ v3 6/7] shared/ad: Use strtoutf8 for name

In reply to Pauli Virtanen

Hi Pauli,

Quoted 36 lines · Pauli Virtanen

Hi,

ti, 2025-07-08 kello 17:43 +0200, Frédéric Danis kirjoitti:

Quoted 19 lines

Truncate the string to first character before invalid UTF-8 one instead of replacing non ascii characters by spaces.

---
 src/shared/ad.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
src/shared/ad.c +0 -1
index 3f0064dd9..6952a0dab 100644
@@ -276,7 +276,6 @@ static bool ad_replace_uuid128(struct bt_ad *ad, struct iovec *iov)
 static bool ad_replace_name(struct bt_ad *ad, struct iovec *iov)
 {
      char utf8_name[HCI_MAX_NAME_LENGTH + 2];
-     int i;
 
      memset(utf8_name, 0, sizeof(utf8_name));
      strncpy(utf8_name, (const char *)iov->iov_base, iov->iov_len);

src/shared/ad.c static bool ad_replace_name(struct bt_ad *ad, struct iovec *iov) · line 286

Quoted 9 lines
src/shared/ad.c +1 -5
@@ -284,11 +283,7 @@ static bool ad_replace_name(struct bt_ad *ad, struct iovec *iov)
      if (strisutf8(utf8_name, iov->iov_len))
              goto done;
 
-     /* Assume ASCII, and replace all non-ASCII with spaces */
-     for (i = 0; utf8_name[i] != '\0'; i++) {
-             if (!isascii(utf8_name[i]))
-                     utf8_name[i] = ' ';
-     }
+     strtoutf8(utf8_name, iov->iov_len);

Looks like potential out-of-bounds access --- strtoutf8() may access iov->iov_base[iov->iov_len]

Quoted 3 lines

Cf. for (size_t j = 1; j < size; ++j) loop in strtoutf8().

Also strisutf8() has same problem here.

It does i < len though:

    while (i < len) {
        unsigned char c = str[i];

That said we may need to do something like:

src/shared/util.c +1 -1
index 4780f26b6d59..9ba1bdc48f77 100644
@@ -1987,7 +1987,7 @@ char *strtoutf8(char *str, size_t len)
                 * format.
                 */
                for (size_t j = 1; j < size; ++j) {
-                       if (i + j > len || (str[i + j] & 0xC0) != 0x80)
+                       if (i + j >= len || (str[i + j] & 0xC0) != 0x80)
                                /* Invalid UTF-8 sequence */
                                goto done;
                }

Otherwise we may access str[len] which is past the bondaries of str.

Quoted 8 lines

src/shared/ad.c static bool ad_replace_name(struct bt_ad *ad, struct iovec *iov) · line 288

Quoted 4 lines
src/shared/ad.c +0 -0
      /* Remove leading and trailing whitespace characters */
      strstrip(utf8_name);

--
Pauli Virtanen

Signature · 1 line
Luiz Augusto von Dentz
#11 lore raw

PATCH v3 7/7 unit/test-eir: Add name encoding tests

In reply to Frédéric Danis

This ensures that device name encode with UTF-16, ISO-2022-JP or with an incorrect character in UTF-8 string are truncated correctly.

---
 unit/test-eir.c | 50 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)
unit/test-eir.c +50 -0
index 49ce65f24..b94a2985a 100644
@@ -396,6 +396,50 @@ static const struct test_data fuelband_test = {
 	.uuid = fuelband_uuid,
 };
 
+static const unsigned char invalid_utf8_name_data[] = {
+		0x22, 0x09, 0x74, 0x65, 0x73, 0x74, 0x20, 0xe0,
+		0xa4, 0xaa, 0xe0, 0xa4, 0xb0, 0xe0, 0xa5, 0x80,
+		0xe0, 0xa4, /*0x95,*/ 0xe0, 0xa5, 0x8d, 0xe0, 0xa4,
+		0xb7, 0xe0, 0xa4, 0xbe, 0x20, 0x69, 0x6e, 0x76,
+		0x61, 0x6c, 0x69, 0x64,
+};
+
+static const struct test_data invalid_utf8_name_test = {
+	.eir_data = invalid_utf8_name_data,
+	.eir_size = sizeof(invalid_utf8_name_data),
+	.name = "test परी",
+	.name_complete = true,
+	.tx_power = 127,
+};
+
+static const unsigned char utf16_name_data[] = {
+		0x17, 0x09, 0x00, 0x55, 0x00, 0x54, 0x00, 0x46,
+		0x00, 0x2d, 0x00, 0x31, 0x00, 0x36, 0x00, 0x20,
+		0x00, 0x74, 0x00, 0x65, 0x00, 0x73, 0x00, 0x74,
+};
+
+static const struct test_data utf16_name_test = {
+	.eir_data = utf16_name_data,
+	.eir_size = sizeof(utf16_name_data),
+	.name = "",
+	.name_complete = true,
+	.tx_power = 127,
+};
+
+static const unsigned char iso_2022_jp_name_data[] = {
+		0x13, 0x09, 0x74, 0x65, 0x73, 0x74, 0x20, 0x1B,
+		0x24, 0x42, 0xbb, 0xfa, 0xb8, 0xb5, 0x1b, 0x28,
+		0x42, 0x20, 0x4f, 0x4b,
+};
+
+static const struct test_data iso_2022_jp_name_test = {
+	.eir_data = iso_2022_jp_name_data,
+	.eir_size = sizeof(iso_2022_jp_name_data),
+	.name = "test \033$B",
+	.name_complete = true,
+	.tx_power = 127,
+};
+
 static const unsigned char bluesc_data[] = {
 		0x02, 0x01, 0x06, 0x03, 0x02, 0x16, 0x18, 0x12,
 		0x09, 0x57, 0x61, 0x68, 0x6f, 0x6f, 0x20, 0x42,
@@ -707,6 +751,12 @@ int main(int argc, char *argv[])
 	tester_add("/eir/sl910", &gigaset_sl910_test, NULL, test_parsing, NULL);
 	tester_add("/eir/bh907", &nokia_bh907_test, NULL, test_parsing, NULL);
 	tester_add("/eir/fuelband", &fuelband_test, NULL, test_parsing, NULL);
+	tester_add("/eir/invalid-utf8-name", &invalid_utf8_name_test, NULL,
+							test_parsing, NULL);
+	tester_add("/eir/utf16-name", &utf16_name_test, NULL, test_parsing,
+									NULL);
+	tester_add("/eir/iso-2022-jp-name", &iso_2022_jp_name_test, NULL,
+							test_parsing, NULL);
 	tester_add("/ad/bluesc", &bluesc_test, NULL, test_parsing, NULL);
 	tester_add("/ad/wahooscale", &wahoo_scale_test, NULL, test_parsing,
 									NULL);
Signature · 1 line
2.43.0
#12 lore raw
In reply to Frédéric Danis
This series was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:

Hello:

This series was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:

Quoted 9 lines · On Tue, 8 Jul 2025 17:43:00 +0200 you wrote:

As stated in AVRCP 1.6.2 chapter 6.10.2.3 Media element item, for the Displayable Name Length property, the target device may truncate the item name:

Length of Displayable Name in octets. The name shall be limited such that a response to a GetFolderItems containing one media player item fits within the maximum size of PDU which can be received by the CT.

[...]

Here is the summary with links:
- [BlueZ,v3,1/7] shared/util: Add strtoutf8 function

    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=0440ca68a8c4
  - [BlueZ,v3,2/7] audio/avrcp: Fix crash with invalid UTF-8 item name
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=89079f2ca635
  - [BlueZ,v3,3/7] audio/mcp: Use strtoutf8 for player name and track title
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=a8f59849253d
  - [BlueZ,v3,4/7] audio/gap: Use strtoutf8 for GAP device name
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=a0387d66372b
  - [BlueZ,v3,5/7] eir: Use strtoutf8 for device names
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=218db700f493
  - [BlueZ,v3,6/7] shared/ad: Use strtoutf8 for name
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=4cedd8d19ad5
  - [BlueZ,v3,7/7] unit/test-eir: Add name encoding tests
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=004518d061d4

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html