mbox series

[BlueZ,0/1] shared/bap: Fix load of misaligned address error

Message ID 20241002133506.16834-1-iulia.tanasescu@nxp.com (mailing list archive)
Headers show
Series shared/bap: Fix load of misaligned address error | expand

Message

Iulia Tanasescu Oct. 2, 2024, 1:35 p.m. UTC
This fixes the "load of misaligned address" error that appears when
parsing PAC caps:

src/shared/bap.c:6497:7: runtime error: load of misaligned address
0x502000063639 for type 'uint16_t', which requires 2 byte alignment

0x502000063639: note: pointer points here
 02 03 05  04 1a 00 f0 00 02 03 01  02 11 00 00 08 00 00 00  a3 00 00
              ^                        00 00 00 00 00  01 00 00 00 01

src/shared/bap.c:6498:7: runtime error: load of misaligned address
0x502000063639 for type 'uint16_t', which requires 2 byte alignment

0x502000063639: note: pointer points here
 02 03 05  04 1a 00 f0 00 02 03 01  02 11 00 00 08 00 00 00  a3 00 00
              ^                        00 00 00 00 00  01 00 00 00 01

Iulia Tanasescu (1):
  shared/bap: fix load of misaligned address error

 src/shared/bap.c | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)


base-commit: 38734e02051364b4b6db6e684beda8c47a1ba452

Comments

patchwork-bot+bluetooth@kernel.org Oct. 3, 2024, 4:50 p.m. UTC | #1
Hello:

This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Wed,  2 Oct 2024 16:35:05 +0300 you wrote:
> This fixes the "load of misaligned address" error that appears when
> parsing PAC caps:
> 
> src/shared/bap.c:6497:7: runtime error: load of misaligned address
> 0x502000063639 for type 'uint16_t', which requires 2 byte alignment
> 
> 0x502000063639: note: pointer points here
>  02 03 05  04 1a 00 f0 00 02 03 01  02 11 00 00 08 00 00 00  a3 00 00
>               ^                        00 00 00 00 00  01 00 00 00 01
> 
> [...]

Here is the summary with links:
  - [BlueZ,1/1] shared/bap: Fix load of misaligned address error
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=8146d8f7dd67

You are awesome, thank you!