freebsd-src/usr.sbin/bluetooth/btpand
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
..
bnep.c Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
bnep.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
btpand.8 Remove $FreeBSD$: one-line nroff pattern 2023-08-16 11:55:15 -06:00
btpand.c Fix off-by-one bug in btpand 2024-06-03 20:30:36 +01:00
btpand.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
channel.c Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
client.c Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
event.c Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
event.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
packet.c Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
sdp.c Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
sdp.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
server.c Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
tap.c Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00