Uninitialized String in hci_read_remote_name_with_clock_offset (hcitool)

Bug #1892036 reported by Fritz Katze
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snappy-hwe-snaps
Invalid
Undecided
Unassigned

Bug Description

The respective C function returnes an uninitialized name, when no name can be retrieved.
A simple
memset(name, 0, len);
before sending the HCI command would initialize the string.

I observed this in executing "hcitool scan --class -info".
hcitool shows a version of 5.48.

The result of this error is that hcitool may show randowm characters as the device name.

Revision history for this message
Tony Espy (awe) wrote :

This bug list is meant to track issues with snaps maintained in this project (meant for usage on Ubuntu Core only). If you have issues with bluetooth on Ubuntu Desktop, please use the Ubuntu bluez bug list: https://bugs.launchpad.net/ubuntu/+source/bluez

Changed in snappy-hwe-snaps:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.