Skip to content

Fix corrupted SDP response for sequence size > 256

Bart Westgeest linux-bluetooth 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3sdp: Inlined single use of function sdp_set_data_typelib/sdp.c+5 -130 replies
2/3sdp: Limit side effects of sdp_get_data_type and sdp_get_data_sizelib/sdp.c+9 -172 replies
3/3sdp: Upgrade datatype SEQ8 to SEQ16 when data size is greater than 256lib/sdp.c+12 -62 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Fix corrupted SDP response for sequence size > 256

This patchset includes minor refactoring and a bug fix. The bug is exposed when a data sequence grows beyond 256 bytes, in this case the complete sequence data is written, but the size is truncated to one byte, resulting in a corrupted SDP response.

RE: Feedback on potential fix for issue while advertising Feature List

Bart Westgeest (3):
sdp: Inlined single use of function sdp_set_data_type
sdp: Limit side effects of sdp_get_data_type and sdp_get_data_size
sdp: Upgrade datatype SEQ8 to SEQ16 when data size is greater than

    256
 lib/sdp.c |   56 +++++++++++++++++++++++---------------------------------
 1 file changed, 23 insertions(+), 33 deletions(-)
Signature · 1 line
1.7.10.4