summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2014-01-11lib: Add management setting for secure connectionsMarcel Holtmann1-0/+1
2014-01-09lib: Add structure for local OOB extended data informationMarcel Holtmann1-0/+6
2014-01-09lib: Add constant for secure connections support commandMarcel Holtmann1-0/+3
2014-01-09lib/sdp: Fix incorrect sizeof argumentAndrei Emeltchenko1-1/+1
length is a pointer to int table not int* table.
2014-01-02sdp: Add MAP_PROFILE_IDLukasz Rymanowski1-0/+1
2013-12-27lib: Update company identifiersMarcel Holtmann1-1/+9
2013-12-10lib: Add version information for Bluetooth 4.1Marcel Holtmann1-0/+1
2013-12-10lib: Update company identifiersMarcel Holtmann1-0/+12
2013-12-05lib: Add BT_SNDMTU and BT_RCVMTU socket option definesJohan Hedberg1-0/+3
2013-12-03lib: Add missing BT_POWER socket option definesJohan Hedberg1-0/+7
2013-11-29lib: Update company identifiersMarcel Holtmann1-0/+12
2013-11-15lib: Update company identifiersMarcel Holtmann1-0/+36
2013-10-11lib: Add definitions for Set Scan Parameters commandMarcel Holtmann1-0/+7
2013-10-10lib: Update company identifiersMarcel Holtmann1-1/+7
2013-10-09lib/sdp: Replace VIDEO_CONF_SVCLASS_ID with AV_REMOTE_CONTROLLER_SVCLASS_IDLuiz Augusto von Dentz2-2/+2
VCP apparently was never adopted so 0x110f was latter reused by AVRCP 1.3 controller as per current assigned numbers page: https://www.bluetooth.org/en-us/specification/assigned-numbers/service-discovery
2013-10-08lib: Add missing structure for accept physical link commandMarcel Holtmann1-0/+7
2013-10-08lib: Fix a few whitespace damagesMarcel Holtmann1-11/+11
2013-10-07lib: Update company identifiersMarcel Holtmann1-0/+4
2013-10-07lib: Add special functions for PAL version mappingMarcel Holtmann2-0/+17
2013-10-02lib: Add define for mgmt_set_static_addressMarcel Holtmann1-0/+6
2013-10-02lib: Fix invalid "whitespace" on company identifier stringAnderson Lizardo1-1/+1
Somehow, the invalid multibyte sequence "\xC2\xA0" (which is displayed as a whitespace) was inserted on a company identifier string. Fix this to avoid a bogus diff when running tools/update_compids.sh.
2013-10-02lib: Add define for mgmt_set_bredrJohan Hedberg1-0/+3
2013-09-30lib: Fix use of uninitialized variable in sdp_set_profile_descsSzymon Janc1-7/+8
Error path on default case was not breaking loop. To keep error handling similar all error path were converted to use goto. This fix following: target C: libbluetooth <= external/bluetooth/bluez/android/../lib/sdp.c lib/sdp.c: In function 'sdp_set_profile_descs': lib/sdp.c:487:10: warning: 'values[0]' may be used uninitialized in this function [-Wmaybe-uninitialized] lib/sdp.c:2562:19: note: 'values[0]' was declared here lib/sdp.c:545:11: warning: 'dtds[0]' may be used uninitialized in this function [-Wmaybe-uninitialized] lib/sdp.c:2562:9: note: 'dtds[0]' was declared here
2013-09-28lib: Update company identifiersMarcel Holtmann1-0/+10
2013-09-25mgmt: Add defines for new advertising settingJohan Hedberg1-0/+4
2013-09-21lib: Update company identifiersMarcel Holtmann1-0/+38
2013-09-02lib: Add definition for HCI_CHANNEL_USERMarcel Holtmann1-0/+1
2013-08-07lib: Update company identifiersMarcel Holtmann1-0/+18
2013-08-01lib: SCO voice setting support headerFrédéric Dalleau1-0/+8
Modify headers to enable support for changing SCO voice setting. Corresponding commit implements functionality on kernel side.
2013-07-18lib: Remove duplicated HSP_HS_UUID definitionAnderson Lizardo1-1/+0
There is an identical definition on the same header file (next to HSP_AG_UUID).
2013-07-10lib: Add range check for SDP_SVC_ATTR_RSP/SDP_SVC_SEARCH_ATTR_RSPSzymon Janc1-0/+8
This is an improved version of recently reverted commit 1796f00e8465. Response size is verified against minimal allowed value only if it is complete response. If response is partial it is allowed by spec that it will be split in arbitrary manner. Verified against Nokia BH217 on which original commit caused regression.
2013-06-26lib: Update company identifiersJohan Hedberg1-0/+8
2013-06-25Revert "lib: Add range check for SDP_SVC_ATTR_RSP/SDP_SVC_SEARCH_ATTR_RSP"Johan Hedberg1-8/+0
This reverts commit 1796f00e846561af80679efba4d7c36c78710fb6. This patch causes a regression with the Nokia BH217 headset. A correct patch must take into account fragmented responses.
2013-06-24lib: Cleanup SDP logs to not include double new linesSzymon Janc1-93/+90
SDPERR and SDPDBG already add new line to prints.
2013-06-16lib: Fix two size constantsAlex Deymo1-2/+2
Fixes the value of RESET_FAILED_CONTACT_COUNTER_RP_SIZE and RESET_FAILED_CONTACT_COUNTER_RP_SIZE macros to respect the associated struct.
2013-05-29mgmt: Add support for new MGMT_STATUS_RFKILLEDJohan Hedberg1-0/+2
2013-05-23lib: Fix sdp_seq_alloc_with_length accessing invalid index/memoryLuiz Augusto von Dentz1-1/+1
The sequence itself is not an index of dtds, values, lengths, thats why SDP_SEQ8 is used directly as dtd, so accessing length[i] is always off by one. Furthermore the length is not really used by sdp_data_alloc_with_length when the dtd is SDP_SEQ8 which is probably why it doesn't crash.
2013-05-19lib: Update company identifiersJohan Hedberg1-0/+18
2013-04-30lib: Fix list of company identifiersAnderson Lizardo1-17/+17
Fix minor typos on company names.
2013-04-17lib: Add attributes MASInstanceID and SupportedMessageTypesChristian Fetzer1-0/+2
2013-04-10lib: Update list of company identifiersMarcel Holtmann1-0/+14
2013-04-04lib: Fix invalid memory access in sdp_service_search_attr_reqArkadiusz Lichwa1-0/+5
Browsing services using sdptool can lead to writing to invalid heap locations. valgrind's output of exemplary call: sdptool browse local ==2203== HEAP SUMMARY: ==2203== in use at exit: 0 bytes in 0 blocks ==2203== total heap usage: 251 allocs, 251 frees, 140,156 bytes allocated ==2203== ==2203== All heap blocks were freed -- no leaks are possible ==2203== ==2203== ERROR SUMMARY: 6 errors from 2 contexts (suppressed: 0 from 0) ==2203== ==2203== 1 errors in context 1 of 2: ==2203== Invalid write of size 2 ==2203== at 0x805B882: bt_put_be16 (in /home/xpu/gits/bluez.bin/bin/sdptool) ==2203== by 0x8062BD0: sdp_service_search_attr_req (in /home/xpu/gits/bluez.bin/bin/sdptool) ==2203== by 0x8052457: do_search (in /home/xpu/gits/bluez.bin/bin/sdptool) ==2203== by 0x80525AE: do_search (in /home/xpu/gits/bluez.bin/bin/sdptool) ==2203== by 0x805277F: cmd_browse (in /home/xpu/gits/bluez.bin/bin/sdptool) ==2203== by 0x8053199: main (in /home/xpu/gits/bluez.bin/bin/sdptool) ==2203== Address 0x4391359 is 7 bytes before a block of size 2,048 alloc'd ==2203== at 0x402B6A8: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==2203== by 0x8062B4B: sdp_service_search_attr_req (in /home/xpu/gits/bluez.bin/bin/sdptool) ==2203== by 0x8052457: do_search (in /home/xpu/gits/bluez.bin/bin/sdptool) ==2203== by 0x80525AE: do_search (in /home/xpu/gits/bluez.bin/bin/sdptool) ==2203== by 0x805277F: cmd_browse (in /home/xpu/gits/bluez.bin/bin/sdptool) ==2203== by 0x8053199: main (in /home/xpu/gits/bluez.bin/bin/sdptool) ==2203== ==2203== ==2203== 5 errors in context 2 of 2: ==2203== Invalid write of size 1 ==2203== at 0x402D363: memcpy (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==2203== by 0x80613E7: gen_dataseq_pdu (in /home/xpu/gits/bluez.bin/bin/sdptool) ==2203== by 0x8061472: gen_attridseq_pdu (in /home/xpu/gits/bluez.bin/bin/sdptool) ==2203== by 0x8062C00: sdp_service_search_attr_req (in /home/xpu/gits/bluez.bin/bin/sdptool) ==2203== by 0x8052457: do_search (in /home/xpu/gits/bluez.bin/bin/sdptool) ==2203== by 0x80525AE: do_search (in /home/xpu/gits/bluez.bin/bin/sdptool) ==2203== by 0x805277F: cmd_browse (in /home/xpu/gits/bluez.bin/bin/sdptool) ==2203== by 0x8053199: main (in /home/xpu/gits/bluez.bin/bin/sdptool) ==2203== Address 0x439135b is 5 bytes before a block of size 2,048 alloc'd ==2203== at 0x402B6A8: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==2203== by 0x8062B4B: sdp_service_search_attr_req (in /home/xpu/gits/bluez.bin/bin/sdptool) ==2203== by 0x8052457: do_search (in /home/xpu/gits/bluez.bin/bin/sdptool) ==2203== by 0x80525AE: do_search (in /home/xpu/gits/bluez.bin/bin/sdptool) ==2203== by 0x805277F: cmd_browse (in /home/xpu/gits/bluez.bin/bin/sdptool) ==2203== by 0x8053199: main (in /home/xpu/gits/bluez.bin/bin/sdptool) ==2203== ==2203== ERROR SUMMARY: 6 errors from 2 contexts (suppressed: 0 from 0)
2013-03-21lib: Update list of company identifiersMarcel Holtmann1-0/+4
2013-02-23lib: Update list of company identifiersMarcel Holtmann1-0/+8
2013-02-18lib: Validate DTDs when parsing VersionNumberListAnderson Lizardo1-1/+16
2013-02-18lib: Add comment to BluetoothProfileDescriptorList parsing workaroundAnderson Lizardo1-0/+5
Commits 0f5a5a9580084a3c4e0644ef5cd75689aeb5ff40 and 46b3a3d2d00bf70bc57ef0c9ad5542a2271e3350 introduced this workaround.
2013-02-18lib: Validate DTDs when parsing BluetoothProfileDescriptorListAnderson Lizardo1-9/+28
The "seq->val.dataseq != NULL" check is also removed from the for() statement because it should be done after verifying that the data element is a sequence (inside the "if (SDP_IS_SEQ(...))" block.)
2013-02-18lib: Validate DTDs when parsing LanguageBaseAttributeIDListAnderson Lizardo1-7/+25
Also check if the required number of entries is present.
2013-02-18lib: Add missing DTD validation in sdp_record_print()Anderson Lizardo1-3/+3
2013-02-18lib: Fix missing DTD validation while accessing SDP data elementsAnderson Lizardo1-2/+24
It is necessary to validate the sdp_data_t "dtd" field before accessing the "val" union members, specially when handling SDP_SEQ*, SDP_ALT* and SDP_STR* elements, otherwise remote devices can trigger memory corruption by passing invalid data elements where others are expected.