kern/117010: [linux] linux_getdents() get somethinng like buffer
overflow
Chagin Dmitry
chagin.dmitry at gmail.com
Mon Jul 28 11:12:47 UTC 2008
On Mon, 28 Jul 2008, Chagin Dmitry wrote:
>
> agree, we should do check before calculating linuxreclen, like:
>
> if (bdp->d_namlen > LINUX_NAME_MAX) {
> error = ENAMETOOLONG;
> goto out;
> }
>
d_namlen declared as uint8_t, so comparison is always false. lets's
leave it will not changed FreeBSD d_namlen type?
--
Have fun!
chd
More information about the freebsd-emulation
mailing list