bluez/client
Bastien Nocera 4262170a79 client/gatt: Check write_value() retval
Error: CHECKED_RETURN (CWE-252): [#def35]
client/gatt.c:3191:3: check_return: Calling "write_value" without checking return value (as is done elsewhere 5 out of 6 times).
client/gatt.c:2371:2: example_checked: Example 1: "write_value(&chrc->value_len, &chrc->value, value, value_len, aad->offset, chrc->max_val_len)" has its value checked in "write_value(&chrc->value_len, &chrc->value, value, value_len, aad->offset, chrc->max_val_len)".
client/gatt.c:2502:2: example_checked: Example 2: "write_value(&chrc->value_len, &chrc->value, value, value_len, offset, chrc->max_val_len)" has its value checked in "write_value(&chrc->value_len, &chrc->value, value, value_len, offset, chrc->max_val_len)".
client/gatt.c:2919:2: example_checked: Example 3: "write_value(&desc->value_len, &desc->value, value, value_len, offset, desc->max_val_len)" has its value checked in "write_value(&desc->value_len, &desc->value, value, value_len, offset, desc->max_val_len)".
client/gatt.c:759:3: example_checked: Example 4: "write_value(&c->value_len, &c->value, value, value_len, offset, c->max_val_len)" has its value checked in "write_value(&c->value_len, &c->value, value, value_len, offset, c->max_val_len)".
client/gatt.c:775:3: example_checked: Example 5: "write_value(&d->value_len, &d->value, value, value_len, offset, d->max_val_len)" has its value checked in "write_value(&d->value_len, &d->value, value, value_len, offset, d->max_val_len)".
3189|			}
3190|
3191|->			write_value(&chrc->value_len, &chrc->value, value, len,
3192|					0, chrc->max_val_len);
2024-05-10 11:26:48 -04:00
..
scripts client: Add scripts to start broadcast source/sink 2024-03-08 11:11:49 -05:00
admin.c client: Move admin submenu 2022-08-15 16:28:14 -07:00
admin.h client: Move admin submenu 2022-08-15 16:28:14 -07:00
adv_monitor.c client/adv_monitor: Remove shell quit from adv_monitor_register_app 2024-03-08 11:11:49 -05:00
adv_monitor.h bluetoothctl: advmon rssi support for mgmt 2021-01-15 11:55:06 -08:00
advertising.c client/advertising: Add flag to mark if data is valid 2024-04-19 15:35:10 -04:00
advertising.h client/advertising: Add support for advertise.rsi command 2023-04-05 17:00:00 -07:00
agent.c mgmt: Fix crash after pair command 2024-01-03 15:59:23 -05:00
agent.h client: Add SPDX License Identifier 2020-09-21 16:19:33 -07:00
bluetoothctl-admin.rst client: Add bluetoothctl-admin.1 man page 2023-11-13 14:33:47 -05:00
bluetoothctl-advertise.rst client: Add bluetoothctl-advertise.1 man page 2023-11-14 10:56:57 -05:00
bluetoothctl-endpoint.rst client: Add bluetoothctl-endpoint.1 man page 2023-11-14 11:06:04 -05:00
bluetoothctl-gatt.rst client: Add bluetoothctl-gatt.1 man page 2023-11-14 12:37:53 -05:00
bluetoothctl-mgmt.rst client: Add bluetoothctl-mgmt.1 man page 2023-07-20 11:14:31 -07:00
bluetoothctl-monitor.rst client: Add bluetoothctl-monitor.1 man page 2023-07-20 11:14:42 -07:00
bluetoothctl-player.rst client: Add bluetoothctl-player.1 man page 2023-11-14 13:04:22 -05:00
bluetoothctl-scan.rst client: Add bluetoothctl-scan.1 man page 2023-11-14 13:21:44 -05:00
bluetoothctl-transport.rst client: Add bluetoothctl-transport.1 man page 2023-11-14 13:29:19 -05:00
bluetoothctl.rst client: Remove Pygments dependency from manpage 2024-03-04 11:45:29 -05:00
display.c client: Add SPDX License Identifier 2020-09-21 16:19:33 -07:00
display.h client: Add SPDX License Identifier 2020-09-21 16:19:33 -07:00
gatt.c client/gatt: Check write_value() retval 2024-05-10 11:26:48 -04:00
gatt.h client: Allow gatt.select-attribute to work with local attributes 2022-12-06 13:01:28 -08:00
main.c clinet: Fix unregister-includes command 2024-05-06 12:21:01 -04:00
mgmt.c client/mgmt: Add missing settings strings 2024-02-02 10:10:38 -05:00
mgmt.h client: Add support for mgmt submenu 2023-07-14 15:14:02 -07:00
player.c client/player: Fix using unicast QoS for broadcast 2024-04-19 16:21:19 -04:00
player.h client: Add support for player submenu 2022-03-30 12:54:29 -07:00
print.c client: Make Endpoint.SelectProperties reply properly 2023-09-28 17:25:43 -07:00
print.h client: Move common print_* functions to its own file 2022-12-02 11:20:26 -08:00