HomeFreeBSD

libjail: make allocation in jailparam_all() somewhat more robust.

Description

libjail: make allocation in jailparam_all() somewhat more robust.

Unsign some variables involved in allocation as they will never be
negative anyways. Provide some bounds checking through reallocarray(3).

This is all very unlikely to have any visible effect.

Reviewed by: jamie
MFC after: 3 weeks

Details

Provenance
pfgAuthored on
Reviewer
jamie
Parents
rS317035: Fix userland tools that don't check the format of routing socket
Branches
Unknown
Tags
Unknown