HomeFreeBSD

{ext2|ufs}_readdir: Set limit on valid ncookies values.

Description

{ext2|ufs}_readdir: Set limit on valid ncookies values.

Sanitize the values that will be assigned to ncookies so that we ensure
they are sane and we can handle them.

Let ncookies signed as it was before r328346. The valid range is such
that unsigned values are not required and we are not able to avoid at
least one cast anyways.

Hinted by: bde

Details

Provenance
pfgAuthored on
Parents
rS328478: Add constant for the PAD chunk as defined in RFC 4820.
Branches
Unknown
Tags
Unknown