bluez:master

Last commit made on 2024-05-17
Get this branch:
git clone -b master https://git.launchpad.net/bluez

Branch merges

Branch information

Name:
master
Repository:
lp:bluez

Recent commits

62d38d6... by Iulia Tanasescu <email address hidden>

test-bap: Add Broadcast Sink SCC tests

4.13.2 Broadcast Sink Synchronizes to PA (page 177)

     Test Purpose:
     Verify that a Broadcast Sink IUT can synchronize to the PA
     associated with a broadcast Audio Stream transmitted by a
     Broadcast Source.

     Test Case Configuration:
     BAP/BSNK/SCC/BV-01-C [Sync to PA, LC3 8_1_1]
     BAP/BSNK/SCC/BV-02-C [Sync to PA, LC3 8_2_1]
     BAP/BSNK/SCC/BV-03-C [Sync to PA, LC3 16_1_1]
     BAP/BSNK/SCC/BV-04-C [Sync to PA, LC3 16_2_1]
     BAP/BSNK/SCC/BV-05-C [Sync to PA, LC3 24_1_1]
     BAP/BSNK/SCC/BV-06-C [Sync to PA, LC3 24_2_1]
     BAP/BSNK/SCC/BV-07-C [Sync to PA, LC3 32_1_1]
     BAP/BSNK/SCC/BV-08-C [Sync to PA, LC3 32_2_1]
     BAP/BSNK/SCC/BV-09-C [Sync to PA, LC3 44.1_1_1]
     BAP/BSNK/SCC/BV-10-C [Sync to PA, LC3 44.1_2_1]
     BAP/BSNK/SCC/BV-11-C [Sync to PA, LC3 48_1_1]
     BAP/BSNK/SCC/BV-12-C [Sync to PA, LC3 48_2_1]
     BAP/BSNK/SCC/BV-13-C [Sync to PA, LC3 48_3_1]
     BAP/BSNK/SCC/BV-14-C [Sync to PA, LC3 48_4_1]
     BAP/BSNK/SCC/BV-15-C [Sync to PA, LC3 48_5_1]
     BAP/BSNK/SCC/BV-16-C [Sync to PA, LC3 48_6_1]
     BAP/BSNK/SCC/BV-17-C [Sync to PA, LC3 8_1_2]
     BAP/BSNK/SCC/BV-18-C [Sync to PA, LC3 8_2_2]
     BAP/BSNK/SCC/BV-19-C [Sync to PA, LC3 16_1_2]
     BAP/BSNK/SCC/BV-20-C [Sync to PA, LC3 16_2_2]
     BAP/BSNK/SCC/BV-21-C [Sync to PA, LC3 24_1_2]
     BAP/BSNK/SCC/BV-22-C [Sync to PA, LC3 24_2_2]
     BAP/BSNK/SCC/BV-23-C [Sync to PA, LC3 32_1_2]
     BAP/BSNK/SCC/BV-24-C [Sync to PA, LC3 32_2_2]
     BAP/BSNK/SCC/BV-25-C [Sync to PA, LC3 44.1_1_2]
     BAP/BSNK/SCC/BV-26-C [Sync to PA, LC3 44.1_2_2]
     BAP/BSNK/SCC/BV-27-C [Sync to PA, LC3 48_1_2]
     BAP/BSNK/SCC/BV-28-C [Sync to PA, LC3 48_2_2]
     BAP/BSNK/SCC/BV-29-C [Sync to PA, LC3 48_3_2]
     BAP/BSNK/SCC/BV-30-C [Sync to PA, LC3 48_4_2]
     BAP/BSNK/SCC/BV-31-C [Sync to PA, LC3 48_5_2]
     BAP/BSNK/SCC/BV-32-C [Sync to PA, LC3 48_6_2]
     BAP/BSNK/SCC/BV-33-C [Sync to PA, VS]

     Pass verdict:
     The received AdvData field of AUX_SYNC_IND and optionally
     AUX_CHAIN_IND PDUs contains the configured BASE information.

Test Summary
------------
BAP/BSNK/SCC/BV-01-C [Sync to PA, LC3 8_1_1] Passed
BAP/BSNK/SCC/BV-02-C [Sync to PA, LC3 8_2_1] Passed
BAP/BSNK/SCC/BV-03-C [Sync to PA, LC3 16_1_1] Passed
BAP/BSNK/SCC/BV-04-C [Sync to PA, LC3 16_2_1] Passed
BAP/BSNK/SCC/BV-05-C [Sync to PA, LC3 24_1_1] Passed
BAP/BSNK/SCC/BV-06-C [Sync to PA, LC3 24_2_1] Passed
BAP/BSNK/SCC/BV-07-C [Sync to PA, LC3 32_1_1] Passed
BAP/BSNK/SCC/BV-08-C [Sync to PA, LC3 32_2_1] Passed
BAP/BSNK/SCC/BV-09-C [Sync to PA, LC3 44.1_1_1] Passed
BAP/BSNK/SCC/BV-10-C [Sync to PA, LC3 44.1_2_1] Passed
BAP/BSNK/SCC/BV-11-C [Sync to PA, LC3 48_1_1] Passed
BAP/BSNK/SCC/BV-12-C [Sync to PA, LC3 48_2_1] Passed
BAP/BSNK/SCC/BV-13-C [Sync to PA, LC3 48_3_1] Passed
BAP/BSNK/SCC/BV-14-C [Sync to PA, LC3 48_4_1] Passed
BAP/BSNK/SCC/BV-15-C [Sync to PA, LC3 48_5_1] Passed
BAP/BSNK/SCC/BV-16-C [Sync to PA, LC3 48_6_1] Passed
BAP/BSNK/SCC/BV-17-C [Sync to PA, LC3 8_1_2] Passed
BAP/BSNK/SCC/BV-18-C [Sync to PA, LC3 8_2_2] Passed
BAP/BSNK/SCC/BV-19-C [Sync to PA, LC3 16_1_2] Passed
BAP/BSNK/SCC/BV-20-C [Sync to PA, LC3 16_2_2] Passed
BAP/BSNK/SCC/BV-21-C [Sync to PA, LC3 24_1_2] Passed
BAP/BSNK/SCC/BV-22-C [Sync to PA, LC3 24_2_2] Passed
BAP/BSNK/SCC/BV-23-C [Sync to PA, LC3 32_1_2] Passed
BAP/BSNK/SCC/BV-24-C [Sync to PA, LC3 32_2_2] Passed
BAP/BSNK/SCC/BV-25-C [Sync to PA, LC3 44.1_1_2] Passed
BAP/BSNK/SCC/BV-26-C [Sync to PA, LC3 44.1_2_2] Passed
BAP/BSNK/SCC/BV-27-C [Sync to PA, LC3 48_1_2] Passed
BAP/BSNK/SCC/BV-28-C [Sync to PA, LC3 48_2_2] Passed
BAP/BSNK/SCC/BV-29-C [Sync to PA, LC3 48_3_2] Passed
BAP/BSNK/SCC/BV-30-C [Sync to PA, LC3 48_4_2] Passed
BAP/BSNK/SCC/BV-31-C [Sync to PA, LC3 48_5_2] Passed
BAP/BSNK/SCC/BV-32-C [Sync to PA, LC3 48_6_2] Passed
BAP/BSNK/SCC/BV-33-C [Sync to PA, VS] Passed

94c1c77... by Iulia Tanasescu <email address hidden>

test-bap: Make test_bsrc generic

This makes test_bsrc more generic, to accommodate Broadcast Sink tests
as well, following the unicast design for handling source/sink
configurations.

61ed4b4... by Iulia Tanasescu <email address hidden>

test-bap: Update caps to accommodate 8_1 config

This adjusts the min SDU size in lc3_caps, to accommodate the 8_1 config.

cd35401... by Iulia Tanasescu <email address hidden>

shared/bap: Add detach stream op

Since a Broadcast Sink stream is not attached to an endpoint,
bap_stream_detach must be adapted accordingly.

This splits bap_stream_detach into dedicated stream op functions
for ucast, bcast source and bcast sink.

f473d44... by Iulia Tanasescu <email address hidden>

shared/bap: Handle NULL caps at bis verify

This updates bt_bap_verify_bis to handle NULL L2 and/or L3 caps.

46c0e37... by Bastien Nocera

obexd: Fix memory leak

To not leak "buf", we need object->buffer to take ownership of it using
g_string_new_take() (but it's only available in 2.78 and newer), or we
need to actually free "buf".

Error: RESOURCE_LEAK (CWE-772): [#def66] [important]
obexd/plugins/filesystem.c:411:3: alloc_arg: "g_file_get_contents" allocates memory that is stored into "buf".
obexd/plugins/filesystem.c:418:3: noescape: Resource "buf" is not freed or pointed-to in "g_string_new".
obexd/plugins/filesystem.c:440:2: leaked_storage: Variable "buf" going out of scope leaks the storage it points to.
438| *err = 0;
439|
440|-> return object;
441|
442| fail:

f6241a1... by Marcel Holtmann

Release 5.76

c9fe888... by Bastien Nocera

android/handsfree: Check sprintf retval

Error: SNYK_CODE_WARNING (CWE-125): [#def62] [important]
android/handsfree.c:1247:15: error[cpp/NegativeIndex]: The value from
sprintf, a standard library function that can return a negative value is
used as an index. A negative array index can lead to reading or writing
outside the bounds of the array. Ensure the value of the index used is
within bounds before use.
1245| buf = g_malloc(len);
1246|
1247|-> ptr = buf + sprintf(buf, "+CIND:");
1248|
1249| for (i = 0; i < IND_COUNT; i++) {

377f2ec... by Bastien Nocera

shared/bap: Fix memory leak in error path

Error: RESOURCE_LEAK (CWE-772): [#def38] [important]
src/shared/bap.c:6066:27: alloc_fn: Storage is returned from allocation function "util_malloc".
src/shared/bap.c:6066:27: var_assign: Assigning: "__p" = storage returned from "util_malloc(__n * __s)".
src/shared/bap.c:6066:27: noescape: Resource "__p" is not freed or pointed-to in "memset". [Note: The source code implementation of the function has been overridden by a builtin model.]
src/shared/bap.c:6066:27: leaked_storage: Variable "__p" going out of scope leaks the storage it points to.
src/shared/bap.c:6066:2: var_assign: Assigning: "base_iov" = "({...; __p;})".
src/shared/bap.c:6070:2: noescape: Resource "base_iov" is not freed or pointed-to in "util_iov_push_le24".
src/shared/bap.c:6071:3: leaked_storage: Variable "base_iov" going out of scope leaks the storage it points to.
6069|
6070| if (!util_iov_push_le24(base_iov, base->pres_delay))
6071|-> return NULL;
6072|
6073| if (!util_iov_push_u8(base_iov,

Error: RESOURCE_LEAK (CWE-772): [#def39] [important]
src/shared/bap.c:6066:27: alloc_fn: Storage is returned from allocation function "util_malloc".
src/shared/bap.c:6066:27: var_assign: Assigning: "__p" = storage returned from "util_malloc(__n * __s)".
src/shared/bap.c:6066:27: noescape: Resource "__p" is not freed or pointed-to in "memset". [Note: The source code implementation of the function has been overridden by a builtin model.]
src/shared/bap.c:6066:27: leaked_storage: Variable "__p" going out of scope leaks the storage it points to.
src/shared/bap.c:6066:2: var_assign: Assigning: "base_iov" = "({...; __p;})".
src/shared/bap.c:6070:2: noescape: Resource "base_iov" is not freed or pointed-to in "util_iov_push_le24".
src/shared/bap.c:6073:2: noescape: Resource "base_iov" is not freed or pointed-to in "util_iov_push_u8".
src/shared/bap.c:6075:3: leaked_storage: Variable "base_iov" going out of scope leaks the storage it points to.
6073| if (!util_iov_push_u8(base_iov,
6074| queue_length(base->subgroups)))
6075|-> return NULL;
6076|
6077| queue_foreach(base->subgroups, generate_subgroup_base,

20a0255... by Bastien Nocera

gdbus: Check sprintf retval

Error: SNYK_CODE_WARNING (CWE-125): [#def63] [important]
gdbus/watch.c:131:11: error[cpp/NegativeIndex]: The value from snprintf,
a standard library function that can return a negative value is used as
an index. A negative array index can lead to reading or writing outside
the bounds of the array. Ensure the value of the index used is within
bounds before use.
129| int offset;
130|
131|-> offset = snprintf(rule, size, "type='signal'");
132| sender = data->name ? : data->owner;
133|