FreeBSD Bugzilla – Attachment 213773 Details for
Bug 245899
[Patch] Fix service UUIDs in advertising data/scan response
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Properly update ad field length
fix_service_uuid_ad.diff (text/plain), 689 bytes, created by
Marc Veldman
on 2020-04-25 09:24:42 UTC
(
hide
)
Description:
Properly update ad field length
Filename:
MIME Type:
Creator:
Marc Veldman
Created:
2020-04-25 09:24:42 UTC
Size:
689 bytes
patch
obsolete
>Index: usr.sbin/bluetooth/hccontrol/le.c >=================================================================== >--- usr.sbin/bluetooth/hccontrol/le.c (revision 360289) >+++ usr.sbin/bluetooth/hccontrol/le.c (working copy) >@@ -172,13 +172,13 @@ > goto done; > curbuf[0] = 2; > curbuf[1] = 1; >- curbuf[2] = atoi(optarg); >+ curbuf[2] = (uint_8)strtol(optarg, NULL, 16); > curbuf += 3; > break; > case 'u': >- lenpos = buf; > if ((buf+2) >= buflast) > goto done; >+ lenpos = curbuf; > curbuf[1] = 2; > *lenpos = 1; > curbuf += 2; >@@ -189,6 +189,7 @@ > curbuf[0] = value &0xff; > curbuf[1] = (value>>8)&0xff; > curbuf += 2; >+ *lenpos += 2; > } > > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 245899
: 213773