#1002 Wrong buffer size in has_phy_80211_subdir()

Created 5 years ago by jhrozek
Modified a day ago

A buffer is defined as:

char phy80211_path[SYSFS_IFACE_PATH_MAX];

But later data is snprintf-ed into it with:

 ret = snprintf(phy80211_path, SYSFS_SUBDIR_PATH_MAX,
                "%s/%s", sysfs_path, PHY_80211_SUBDIR);

The buffer should have been declared with size of SYSFS_SUBDIR_PATH_MAX

Fields changed

owner: somebody => jhrozek

Fields changed

patch: 0 => 1
status: new => assigned

Fixed by 5d98dce1111f04475e0d14ace9a4bcb876206fa5

component: SSSD => Service Monitor
milestone: NEEDS_TRIAGE => SSSD 1.7.0
resolution: => fixed
status: assigned => closed

Fields changed

rhbz: => 0

a day ago

Metadata Update from @jhrozek:
- Issue assigned to jhrozek
- Issue set to the milestone: SSSD 1.7.0

Login to comment on this ticket.

defect

Service Monitor

1.6.1

0

1

0

11031

cancel