HomeFreeBSD

Sanity check sysconf return value to ensure it's positive before we

Description

Sanity check sysconf return value to ensure it's positive before we
use it. Use proper cast to convert long to size_t (instead of
blksize_t) to preclude sign extension issues.

CID: 1193754

Details

Provenance
impAuthored on
Parents
rS327617: Sanity check media size and sector counts to ensure that we don't
Branches
Unknown
Tags
Unknown