HomeFreeBSD

scandir(3): promote arraysz to size_t to match numitems.

Description

scandir(3): promote arraysz to size_t to match numitems.

The internal array size goes through a loop and is compared with numitems
which at its limits makes can be unreachably higher than arraysz.
Prevent an hypothetical overflow by matching the types.

MFC after: 1 week

Details

Provenance
pfgAuthored on
Parents
rS317371: elfcopy: allow empty symbol list files
Branches
Unknown
Tags
Unknown