Skip to content

nimble/host: Fix handle validation in Read Mult Response - #2288

Open
piotrnarajowski wants to merge 1 commit into
apache:masterfrom
piotrnarajowski:read_mult_rsp_fix
Open

nimble/host: Fix handle validation in Read Mult Response#2288
piotrnarajowski wants to merge 1 commit into
apache:masterfrom
piotrnarajowski:read_mult_rsp_fix

Conversation

@piotrnarajowski

Copy link
Copy Markdown
Contributor

If one of the requested characteristic values filled the MTU, this caused the while loop to exit early. Remaining handle validation was skipped and as a result a response was issued even when the remaining handle was invalid.

Validate all requested handles first. Move MTU check outside while loop and truncate the response if needed after all handles were validated.

Fixes qualification test case GATT/SR/GAR/BI-19-C

If one of the requested characteristic values filled the MTU,
this caused the while loop to exit early. Remaining handle
validation was skipped and as a result a response was issued
even when the remaining handle was invalid.

Validate all requaste handles first. Move MTU check outside
while loop and truncate the response if needed after all
handles were validated.

Fixes qualification test case GATT/SR/GAR/BI-19-C
@piotrnarajowski

piotrnarajowski commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

Update: freeing txom when exception occured was missing

passes 20/20 times including iterations where PTS sends Read Mult Req with (LONG VAL HDL, INVALID HDL)

image

@piotrnarajowski
piotrnarajowski marked this pull request as ready for review August 24, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant