Skip to content

Possible use of unitialized socked address #132075

Closed
@serhiy-storchaka

Description

@serhiy-storchaka

Bug report

New Bluetooth tests added in #132023 fail on Fedora based platforms. It looks that the hci_channel member of the sockaddr_hci structure is not initialized. This may be a cause of the failure.

On NetBSD and DragonFly sockaddr_hci is an alias of sockaddr_bt which contain other fields. This also may be an issue.

If sockaddr_hci contains additional optional members, not initializing them with zeros also may cause troubles.

It is safer to always initialize sockaddr_hci and all other sockaddr_* structures with zeroes.

Linked PRs

Metadata

Metadata

Labels

3.12only security fixes3.13bugs and security fixes3.14bugs and security fixestype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions