CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected] 2026/05/04 11:05:59

Modified files:
        sys/nfs        : nfs_serv.c 

Log message:
Add checks for invalid dir count and max size for readdir/readdirplus.

A zero count or max size value is now rejected early instead of
relying on VOP_GETATTR to return an error.  Also verify that the
max size after rounding up to a multiple of DIRBLKSIZ is positive.
A negative value would turn into a large allocation, causing the
malloc() to fail.

>From an LLM bug report.  With help from miod@ and kirill@.

Reply via email to