freebsd-src/usr.sbin/bluetooth
Dapeng Gao fbfdf57d65 Fix off-by-one bug in btpand
`ul` reaches `__arraycount(services)` before the bound-check happens, causing undefined behaviour.

Reviewed by:	imp, jrtc27
Fixes:		7718ced0ea ("Add btpand(8) daemon from NetBSD.")
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45463
2024-06-03 20:30:36 +01:00
..
ath3kfw man bluetooth/fwdownloaders: alignment nits, SPDX 2024-05-31 14:26:09 -06:00
bcmfw man bluetooth/fwdownloaders: alignment nits, SPDX 2024-05-31 14:26:09 -06:00
bluetooth-config Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
bthidcontrol bluetooth: Use nitems(foo) instead of sizeof(foo)/sizeof(foo[0]) 2024-04-28 21:24:46 -06:00
bthidd bluetooth: Use nitems(foo) instead of sizeof(foo)/sizeof(foo[0]) 2024-04-28 21:24:46 -06:00
btpand Fix off-by-one bug in btpand 2024-06-03 20:30:36 +01:00
hccontrol bluetooth: Use nitems(foo) instead of sizeof(foo)/sizeof(foo[0]) 2024-04-28 21:24:46 -06:00
hcsecd Remove $FreeBSD$: one-line nroff pattern 2023-08-16 11:55:15 -06:00
iwmbtfw man bluetooth/fwdownloaders: alignment nits, SPDX 2024-05-31 14:26:09 -06:00
l2control Remove $FreeBSD$: one-line nroff pattern 2023-08-16 11:55:15 -06:00
l2ping Remove $FreeBSD$: one-line nroff pattern 2023-08-16 11:55:15 -06:00
rfcomm_pppd Remove $FreeBSD$: one-line nroff pattern 2023-08-16 11:55:15 -06:00
sdpcontrol bluetooth: Use nitems(foo) instead of sizeof(foo)/sizeof(foo[0]) 2024-04-28 21:24:46 -06:00
sdpd bluetooth: Use nitems(foo) instead of sizeof(foo)/sizeof(foo[0]) 2024-04-28 21:24:46 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00