| 4c07609a |
lib: Add comment to BluetoothProfileDescriptorList parsing workaround
Commits 0f5a5a9580084a3c4e0644ef5cd75689aeb5ff40 and
46b3a3d2d00bf70bc57ef0c9ad5542a2271e3350 introduced this workaround. |
Anderson Lizardo |
12 years ago |
1 file, +5, -0 |
| bbabc679 |
lib: Validate DTDs when parsing BluetoothProfileDescriptorList
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.) |
Anderson Lizardo |
12 years ago |
1 file, +28, -9 |
| 1e75de47 |
lib: Validate DTDs when parsing LanguageBaseAttributeIDList
Also check if the required number of entries is present. |
Anderson Lizardo |
12 years ago |
1 file, +25, -7 |
| 67c7f0bf |
lib: Add missing DTD validation in sdp_record_print() |
Anderson Lizardo |
12 years ago |
1 file, +3, -3 |
| 429cee00 |
unit: Add tests for sdp_get_lang_attr() |
Anderson Lizardo |
12 years ago |
1 file, +87, -0 |
| fcb9ece0 |
lib: Fix missing DTD validation while accessing SDP data elements
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. |
Anderson Lizardo |
12 years ago |
1 file, +24, -2 |
| 9e2d91bc |
lib: Add SDP_IS_ALT() macro
This macro will simplify internal SDP library code, and is similar to
the existing SDP_IS_SEQ() macro. |
Anderson Lizardo |
12 years ago |
1 file, +1, -0 |
| 5e72074c |
lib: Cleanup coding style in sdp_get_proto_descs() |
Anderson Lizardo |
12 years ago |
1 file, +6, -3 |
| eff66b3e |
lib: Reuse identical code in sdp_get_{add,}_access_protos()
sdp_get_access_protos() and sdp_get_add_access_protos() do almost
exactly the same thing, except for an additional statement for the
latter. |
Anderson Lizardo |
12 years ago |
1 file, +12, -22 |
| a9544b80 |
unit: Add initial SDP library unit tests
These tests will cover all public SDP library API not covered yet by the
tests in test-sdp.c (which focus on the SDP server). |
Anderson Lizardo |
12 years ago |
3 files, +170, -0 |
| a11adccb |
AVRCP: Fix parsing of SetBrowsedPlayer response
Folder depth is actually the byte 13 not 14 of the response. |
Luiz Augusto von Dentz |
12 years ago |
1 file, +8, -7 |
| fd6381cd |
AVRCP: Add support for GetItemAttributes
GetItemAttributes should be used instead of GetElementAttributes if
browsing is supported. |
Luiz Augusto von Dentz |
12 years ago |
1 file, +83, -29 |
| 89f1f6a6 |
AVRCP: Create folders for /Filesystem and /NowPlaying
If browsing is supported create objects representing /Filesystem and
/NowPlaying, these object implement MediaItem interface and can be
passed to ChangeFolder to change the scope. |
Luiz Augusto von Dentz |
12 years ago |
3 files, +216, -26 |
| 0eb84742 |
AVRCP: Move features to avrcp.c
avrcp.c should be responsible for specifics of AVRCP not player.c which
is more high level abstraction. |
Luiz Augusto von Dentz |
12 years ago |
3 files, +4, -9 |
| 6b3eb942 |
media-api: Fix referencing to MediaLibrary instead of MediaFolder
MediaLibrary was replaced by MediaFolder so doesn't exist anymore. |
Luiz Augusto von Dentz |
12 years ago |
1 file, +2, -2 |
| 771594ef |
AVRCP: Parse browsing and searching features bits
This parses browsing and searching features bits and set the respective
property. |
Luiz Augusto von Dentz |
12 years ago |
3 files, +87, -6 |
| 7508d968 |
AVRCP: Prefix folder name with /Filesystem
This separate the scopes of the folder as documented in doc/media-api.txt |
Luiz Augusto von Dentz |
12 years ago |
1 file, +3, -2 |
| ab5be5cb |
neard: Use more appropriate log levels than info() |
Johan Hedberg |
12 years ago |
1 file, +2, -2 |
| cc2a84bf |
neard: Add fallback to legacy register if register failed
This will allow to work with neard 0.9 which doesn't support handover
agent register with carrier type. |
Szymon Janc |
12 years ago |
1 file, +28, -9 |
| 6a3debad |
neard: Updated neard handover registration agent API calls
neard RegisterHandoverAgent and UnregisterHandoverAgent APIs need an
extra parameter of carrier type(e.g. bluetooth). |
Ravi kumar Veeramally |
12 years ago |
1 file, +9, -0 |
| a629abd6 |
neard: Update copyright information |
Szymon Janc |
12 years ago |
1 file, +1, -1 |
| c7521adc |
neard: Use bool instead of gboolean for agent_register_postpone
There is no need to use gboolean as this flag is not used with any
glib function. |
Szymon Janc |
12 years ago |
1 file, +4, -4 |
| 46d9e269 |
neard: Restrict method calls only to neard process
Disallow methods calls from processes other than registered to as
agent. |
Szymon Janc |
12 years ago |
1 file, +12, -0 |
| 66d880d2 |
neard: Use service name and not boolean to track if registered to neard |
Szymon Janc |
12 years ago |
1 file, +14, -9 |
| 30e2aaa3 |
gobex: Fix GPL version reference
These files (like everything else in the tree) should be GPL 2 or later
instead of GPL 2 only. |
Johan Hedberg |
12 years ago |
12 files, +36, -24 |
| c2e5d1ff |
unit: Fix gobex GPL version reference
These files (like everything else in the tree) should be GPL 2 or later
instead of GPL 2 only. |
Johan Hedberg |
12 years ago |
5 files, +15, -10 |
| fa1f04c2 |
adapter: Fix registering adapter with no address
adapter->bdaddr is set later in read_info_complete and current check
always returns false. Check against bdaddr received in command response
instead and fail if it is all zeros. |
Szymon Janc |
12 years ago |
1 file, +1, -1 |
| 7a89fd1d |
A2DP: Fix invalid write
Invalid write of size 8
at 0x41F297: setconf_cfm (a2dp.c:567)
by 0x42526B: session_cb (avdtp.c:3176)
by 0x39B0847A54: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3400.2)
by 0x39B0847D87: ??? (in /usr/lib64/libglib-2.0.so.0.3400.2)
by 0x39B0848181: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3400.2)
by 0x409C3E: main (main.c:583)
Address 0x555fda8 is 40 bytes inside a block of size 88 free'd
at 0x4A077A6: free (vg_replace_malloc.c:446)
by 0x39B084D79E: g_free (in /usr/lib64/libglib-2.0.so.0.3400.2)
by 0x41E217: setup_cb_free (a2dp.c:191)
by 0x41E410: finalize_config (a2dp.c:234)
by 0x41F296: setconf_cfm (a2dp.c:566)
by 0x42526B: session_cb (avdtp.c:3176)
by 0x39B0847A54: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3400.2)
by 0x39B0847D87: ??? (in /usr/lib64/libglib-2.0.so.0.3400.2)
by 0x39B0848181: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3400.2)
by 0x409C3E: main (main.c:583) |
Luiz Augusto von Dentz |
12 years ago |
1 file, +2, -0 |
| e13cd2f7 |
core: Fix calling profile .connect multiple times
Sometimes profiles may complete the connection in different order
than expected so the code has to check if it was actually the
current pending profile to proceed to the next. |
Luiz Augusto von Dentz |
12 years ago |
1 file, +13, -0 |
| 6960cb73 |
hostname: Fallback to static hostname if pretty hostname is not set
If pretty hostname is not set fallback to static hostname (if it is
set). If static or pretty hostname is not set appropriate properties
are empty strings not NULLs. This behaviour is recomended by hostnamed. |
Szymon Janc |
12 years ago |
1 file, +44, -10 |
| f0c8fed3 |
hostname: Fix setting adapter name to empty string
If pretty hostname is not set empty string is received. Don't update
adapters' names is such case. |
Szymon Janc |
12 years ago |
1 file, +6, -0 |
| c13aee2b |
adapter: Always set new default adapter if current one is removed
In case hci_get_route() failed mark first adapter on list as default.
This make sure default adapter is always set and that
btd_adapter_get_default will not return NULL if at least one adapter
is registered. |
Szymon Janc |
12 years ago |
1 file, +4, -2 |
| e83bd0b8 |
adapter: Mark adapter as default before probing drivers
Drivers may depends on adapter being default or not. This fix hostname
plugin setting default adapter name to 'foo #1' instead of 'foo' if
pretty hostname was received before probing adapter drivers. |
Szymon Janc |
12 years ago |
1 file, +3, -3 |
| df0ad3ec |
adapter: Add is_default field to struct btd_adapter
Instead of global default_adapter_id variable use is_default field
to indicate if adapter is default one. |
Szymon Janc |
12 years ago |
1 file, +13, -13 |
| 1e66934e |
core: Remove unused code from device_browse_sdp()
The "search" parameter was always NULL, and therefore code depending on
it being non-NULL will never be reached. |
Anderson Lizardo |
12 years ago |
1 file, +8, -15 |
| 6cf4291f |
lib: Check if SDP buffer has enough data on partial responses
Before manipulating data from previous partial responses, make sure the
buffer has enough data. |
Anderson Lizardo |
12 years ago |
1 file, +6, -1 |
| 1796f00e |
lib: Add range check for SDP_SVC_ATTR_RSP/SDP_SVC_SEARCH_ATTR_RSP
According to SDP spec, the byte count fields for these PDUs have a valid
range of 0x0002-0xFFFF. |
Anderson Lizardo |
12 years ago |
1 file, +8, -0 |
| 870fe03a |
lib: Fix buffer overflow when processing SDP response
rsp_count is either read or calculated from untrusted input, and
therefore needs to be checked before being used as offset. The "plen"
variable is appropriate because it is calculated as the sum of fixed and
variable length fields, excluding the continuation state field, which
has at least 1 byte for its own length field. |
Anderson Lizardo |
12 years ago |
1 file, +11, -0 |
| 0d989313 |
core: Use device_set_trusted() in set_trust() |
Antonio Ospite |
12 years ago |
1 file, +1, -11 |
| b8a15d6a |
core: Add a device_set_trusted() function
This will be useful for plugins that do their own device setup (e.g.
USB-based pairing). |
Antonio Ospite |
12 years ago |
2 files, +19, -0 |
| 4345fd91 |
neard: Add support for setting power state in RequestOOB reply
This allows neard to properly set Bluetooth carrier power state in
handover message. |
Szymon Janc |
12 years ago |
1 file, +15, -0 |
| 5711d95c |
adapter: Add btd_adapter_get_connectable function |
Szymon Janc |
12 years ago |
2 files, +9, -0 |
| 127b9482 |
neard: Check if adapter is powered in PushOOB
For PushOOB adapter needs to be powered as bluetoothd daemon is
expected to perform action on success. |
Szymon Janc |
12 years ago |
1 file, +3, -0 |
| 26653cd1 |
adapter: Add btd_adapter_get_powered function |
Szymon Janc |
12 years ago |
2 files, +9, -0 |
| d5672b88 |
neard: Move pairable check from check_adapter
If device is already paired there is no need to fail with handover
if adapter is not pairable. |
Szymon Janc |
12 years ago |
1 file, +12, -3 |
| fe7f8fd8 |
neard: Add ability to parse 'State' field
This contains hint for power state of remote device Bluetooth adapter. |
Szymon Janc |
12 years ago |
1 file, +92, -33 |
| ac83286b |
neard: Refactor message processing
This refactor code for message processing for future feature addition.
nokia.com:bt and EIR processing is now separated from performing
actions based on received data. |
Szymon Janc |
12 years ago |
1 file, +157, -151 |
| 2cf03cc8 |
neard: Adjust errors to latest API changes
neard Handover API was stripped of not really usefull error codes. |
Szymon Janc |
12 years ago |
1 file, +6, -19 |
| 906ba9c5 |
gdbus: Add g_dbus_proxy_set_removed_watch |
Denis Kenzior |
12 years ago |
2 files, +20, -0 |
| 404d8b14 |
tools: Fix hcidump parser of AVRCP GetItemAttributes command |
Luiz Augusto von Dentz |
12 years ago |
1 file, +4, -4 |