[bluez/bluez] 3c20aa: iso-tester: Fix crashing while attemping to access...

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

 



  Branch: refs/heads/master
  Home:   https://github.com/bluez/bluez
  Commit: 3c20aa6c2ff1980f82c9546117be898515088a37
      https://github.com/bluez/bluez/commit/3c20aa6c2ff1980f82c9546117be898515088a37
  Author: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>
  Date:   2025-06-16 (Mon, 16 Jun 2025)

  Changed paths:
    M tools/iso-tester.c

  Log Message:
  -----------
  iso-tester: Fix crashing while attemping to access isodata

Some tests may not set any isodata causing the following crash:

Invalid read of size 1
   at 0x40067A8: setup_powered_callback (iso-tester.c:1691)
   by 0x40232D5: request_complete (mgmt.c:306)
   by 0x40242B3: can_read_data (mgmt.c:394)
   by 0x4028529: watch_callback (io-glib.c:173)
   by 0x493D87F: ??? (in /usr/lib64/libglib-2.0.so.0.8400.2)
   by 0x49467A7: ??? (in /usr/lib64/libglib-2.0.so.0.8400.2)
   by 0x4946A4E: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.8400.2)
   by 0x402ABFD: mainloop_run (mainloop-glib.c:65)
   by 0x402B1D4: mainloop_run_with_signal (mainloop-notify.c:196)
   by 0x402A3F5: tester_run (tester.c:1076)
   by 0x40050FE: main (iso-tester.c:4010)
 Address 0xa8 is not stack'd, malloc'd or (recently) free'd


  Commit: be36a9c9d3af691fdddd13d70db6f1e3f9663bef
      https://github.com/bluez/bluez/commit/be36a9c9d3af691fdddd13d70db6f1e3f9663bef
  Author: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>
  Date:   2025-06-16 (Mon, 16 Jun 2025)

  Changed paths:
    M src/shared/gatt-client.c

  Log Message:
  -----------
  shared/gatt-client: Make bt_gatt_client_read use bt_gatt_client_read_long

This makes bt_gatt_client_read use bt_gatt_client_read_long since the
later does use BT_ATT_OP_READ_REQ for reading the first chunk, so they
are actually equivalent in this respect, but bt_gatt_client_read_long
detects when the data returned maybe truncated due to MTU and then
proceed to use BT_ATT_OP_READ_BLOB_REQ to read the remaining chunks
which is a disarable behavior since there is no property indicating
when an attribute would require long read procedure.


  Commit: 5018c40edbb2c75c23ca54df5b7d907d80450a0a
      https://github.com/bluez/bluez/commit/5018c40edbb2c75c23ca54df5b7d907d80450a0a
  Author: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>
  Date:   2025-06-16 (Mon, 16 Jun 2025)

  Changed paths:
    M src/shared/bap.c
    M unit/test-bap.c

  Log Message:
  -----------
  shared/bap: Fix not using metadata set on stream->meta

bt_bap_stream_metadata maybe used before enabling state in which case it
will be store in the stream->meta so when processing
bt_bap_stream_enable if there is no metadata set use the existing one
set in stream->meta.


  Commit: dc8db3601001de9a085da063e0c5e456074b8963
      https://github.com/bluez/bluez/commit/dc8db3601001de9a085da063e0c5e456074b8963
  Author: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>
  Date:   2025-06-16 (Mon, 16 Jun 2025)

  Changed paths:
    M client/player.c
    M client/scripts/preset-custom.bt

  Log Message:
  -----------
  client: Add prompt to enter metadata for custom presets

When adding a custom preset prompt the user to enter metadata for it
e.g.:

[bluetoothctl]> endpoint.presets 00002bcb-0000-1000-8000-00805f9b34fb 0x06 custom
[Codec] Enter frequency (Khz): **
[Codec] Enter frame duration (ms): *
[Codec] Enter channel allocation: *
[Codec] Enter frame length: **
[Metadata] Enter Metadata (value/no): <len> <type> <value...>


Compare: https://github.com/bluez/bluez/compare/6bc584b11b8b...dc8db3601001

To unsubscribe from these emails, change your notification settings at https://github.com/bluez/bluez/settings/notifications




[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