Fix corrupted SDP response for sequence size > 256
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | sdp: Inlined single use of function sdp_set_data_typelib/ | +5 | 0 replies | |
| 2/3 | sdp: Limit side effects of sdp_get_data_type and sdp_get_data_sizelib/ | +9 | 2 replies | |
| 3/3 | sdp: Upgrade datatype SEQ8 to SEQ16 when data size is greater than 256lib/ | +12 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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