[DragonFlyBSD - Bug #3004] (Closed) sys/netgraph7/bluetooth/socket/ng_btsocket_hci_raw.c:808: suspicious size ?

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Mon Apr 10 21:48:43 PDT 2017

Issue #3004 has been updated by dillon.

Status changed from New to Closed

Fix committed by Matt

Bug #3004: sys/netgraph7/bluetooth/socket/ng_btsocket_hci_raw.c:808: suspicious size ?

* Author: dcb
* Status: Closed
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
sys/netgraph7/bluetooth/socket/ng_btsocket_hci_raw.c:808]: (warning) Division by result of sizeof(). memset() expects a size in bytes, did you intend to multiply instead?

Source code is

    memset(&ng_btsocket_hci_raw_sec_filter->events, 0xff,

maybe better code

    memset(&ng_btsocket_hci_raw_sec_filter->events, 0xff,

You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account

More information about the Bugs mailing list