Bug 258188 - ENCIO_GETSTRING does not set the string's returned size
Summary: ENCIO_GETSTRING does not set the string's returned size
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Alan Somers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-31 20:05 UTC by Alan Somers
Modified: 2021-08-31 20:05 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Somers freebsd_committer freebsd_triage 2021-08-31 20:05:03 UTC
According to the comments in the header, the ENCIOC_GETSTRING ioctl has a IN/OUT bufsiz field.  However, it does not set that field on return, leaving the caller unsure of how many bytes were actually transferred. That pretty much makes the ioctl useless.