[Bug 258188] ENCIO_GETSTRING does not set the string's returned size

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 31 Aug 2021 20:05:03 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258188

            Bug ID: 258188
           Summary: ENCIO_GETSTRING does not set the string's returned
                    size
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: asomers@FreeBSD.org

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.