* [PATCH BlueZ] monitor: Fix Conn Interval rsp group decode
@ 2026-10-31 14:28 Pauli Virtanen
2026-10-31 15:36 ` [BlueZ] " bluez.test.bot
0 siblings, 1 reply; 2+ messages in thread
From: Pauli Virtanen @ 2026-10-31 14:28 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Pauli Virtanen
util_iov_pull() returns the advanced base, not the bytes pulled, so
each connection interval group was decoded six bytes past its actual
position. Use util_iov_pull_mem() instead.
Fixes: 79cfd07224ff ("monitor: Add decoding for Short Connection Interval feature")
Assisted-by: opencode:qwen3.8-flash-next
---
monitor/packet.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/monitor/packet.c b/monitor/packet.c
index 8a0e49ff4..fdc02fe01 100644
--- a/monitor/packet.c
+++ b/monitor/packet.c
@@ -10289,7 +10289,7 @@ static void le_read_conn_interval_rsp(uint16_t index, const void *data,
for (i = 0; i < rsp->num_grps; i++) {
const struct bt_hci_le_conn_interval_group *grp;
- grp = util_iov_pull(&iov, sizeof(*grp));
+ grp = util_iov_pull_mem(&iov, sizeof(*grp));
if (!grp) {
print_text(COLOR_ERROR, " invalid group");
break;
--
2.56.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: [BlueZ] monitor: Fix Conn Interval rsp group decode
2026-10-31 14:28 [PATCH BlueZ] monitor: Fix Conn Interval rsp group decode Pauli Virtanen
@ 2026-10-31 15:36 ` bluez.test.bot
0 siblings, 0 replies; 2+ messages in thread
From: bluez.test.bot @ 2026-10-31 15:36 UTC (permalink / raw)
To: linux-bluetooth, pav
[-- Attachment #1: Type: text/plain, Size: 1353 bytes --]
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/series/1197782/
---Test result---
Test Summary:
CheckPatch PASS 0.34 seconds
GitLint PASS 0.23 seconds
BuildEll PASS 16.16 seconds
BluezMake PASS 223.97 seconds
MakeCheck PASS 0.78 seconds
MakeDistcheck PASS 115.82 seconds
CheckValgrind PASS 114.18 seconds
CheckSmatch WARNING 219.03 seconds
bluezmakeextell PASS 74.34 seconds
TestFunctional PASS 935.71 seconds
IncrementalBuild PASS 226.46 seconds
ScanBuild PASS 806.57 seconds
Details
##############################
Test: CheckSmatch - WARNING
Desc: Run smatch tool with source
Output:
monitor/packet.c:2289:26: warning: Variable length array is used.monitor/packet.c: note: in included file:monitor/bt.h:3925:52: warning: array of flexible structuresmonitor/bt.h:3913:40: warning: array of flexible structures
https://github.com/bluez/bluez/pull/2741
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-10-31 15:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-31 14:28 [PATCH BlueZ] monitor: Fix Conn Interval rsp group decode Pauli Virtanen
2026-10-31 15:36 ` [BlueZ] " bluez.test.bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox