Skip site navigation (1)Skip section navigation (2)


| raw e-mail | index | archive | help

struct fiodgname_arg {
        int     len;
        void    *buf;
};
#define FIODGNAME       _IOW('f', 120, struct fiodgname_arg) /* get dev. na=
me
*/

char *
fdevname_r(int fd, char *buf, int len)
{
        struct fiodgname_arg fgn;

        fgn.buf =3D buf;
        fgn.len =3D len;

        if (_ioctl(fd, FIODGNAME, &fgn) =3D=3D -1)
                return (NULL);
        return (buf);
}

memory pad between len and buf is uninitialized.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?>