Skip to content

3 SDP XML security fixes

Bastien Nocera linux-bluetooth 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest9 patches 2 repliesIn review
  2. v39 patches 1 replySuperseded
  3. v21 patch 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch1 replySuperseded

Changes in v4 from the cover letter

- Fixed some "line length exceeds 80 columns" warnings
- Fixed "macros should not use a trailing semicolon" warnings
- Fixed "Missing a blank line after declarations" warning
- Fixed distcheck

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9unit: Add test for sdp_xml_parse_record()Makefile.am unit/sdp-xml/Bluetooth_HID-sdp_record.xml unit/sdp-xml/qt-SerialPortSDPRecord.xml +1 more+278 -02 replies
2/9sdp-xml: Fix crash caused by type confusion when parsing crafted SDP XMLsrc/sdp-xml.c+22 -10 replies
3/9unit: Add test for sdp-xml type-confusion bugMakefile.am unit/sdp-xml/compute-seq-size-type-confusion.xml unit/test-sdp-xml.c+12 -00 replies
4/9sdp-xml: Fix memory leak when adding duplicate attributessrc/sdp-xml.c+4 -10 replies
5/9unit: Add test for sdp-xml duplicate attribute bugMakefile.am unit/sdp-xml/duplicate-attribute.xml unit/test-sdp-xml.c+7 -00 replies
6/9sdp-xml: Optimise parsing large sequencessrc/sdp-xml.c+14 -30 replies
7/9unit: Add test for slow element_end() appendunit/test-sdp-xml.c+46 -00 replies
8/9sdp-xml: Fix stack overflow when converting large sequences to XMLsrc/sdp-xml.c+13 -30 replies
9/9unit: Add convert_sdp_record_to_xml() to SDP XML testingunit/test-sdp-xml.c+9 -10 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [BlueZ, v4 0/9] 3 SDP XML security fixes

Changes since v3:
- Fixed some "line length exceeds 80 columns" warnings
- Fixed "macros should not use a trailing semicolon" warnings
- Fixed "Missing a blank line after declarations" warning
- Fixed distcheck

Changes since v2:
- Reorder commits so that unit tests are added after the fix, so as not to break "git bisect"
- Add "Fix stack overflow when converting large sequences to XML" patch
- Fix crash in unit test when test files are missing

Changes since v1:
- Added "Fix memory leak when adding duplicate attributes"

Bastien Nocera (9):
unit: Add test for sdp_xml_parse_record()
sdp-xml: Fix crash caused by type confusion when parsing crafted SDP
XML
unit: Add test for sdp-xml type-confusion bug
sdp-xml: Fix memory leak when adding duplicate attributes
unit: Add test for sdp-xml duplicate attribute bug
sdp-xml: Optimise parsing large sequences
unit: Add test for slow element_end() append
sdp-xml: Fix stack overflow when converting large sequences to XML
unit: Add convert_sdp_record_to_xml() to SDP XML testing

 Makefile.am                                   |  15 ++
 src/sdp-xml.c                                 |  61 +++++++-
 unit/sdp-xml/Bluetooth_HID-sdp_record.xml     | 123 +++++++++++++++
 .../compute-seq-size-type-confusion.xml       |   9 ++
 unit/sdp-xml/duplicate-attribute.xml          |   4 +
 unit/sdp-xml/qt-SerialPortSDPRecord.xml       |  57 +++++++
 unit/test-sdp-xml.c                           | 143 ++++++++++++++++++
 7 files changed, 404 insertions(+), 8 deletions(-)
 create mode 100644 unit/sdp-xml/Bluetooth_HID-sdp_record.xml
 create mode 100644 unit/sdp-xml/compute-seq-size-type-confusion.xml
 create mode 100644 unit/sdp-xml/duplicate-attribute.xml
 create mode 100644 unit/sdp-xml/qt-SerialPortSDPRecord.xml
 create mode 100644 unit/test-sdp-xml.c
Signature · 1 line
2.55.0