HomeFreeBSD

Don't hard-code the number of compression utility arguments.

Description

Don't hard-code the number of compression utility arguments.

The zstd invocation constructed by newsyslog contains one more parameter
than invocations for the other supported compression utilities. However,
the maximum number of arguments was hard-coded, leading to an
out-of-bounds array access when using zstd compression.

Details

Provenance
markjAuthored on
Parents
rS337049: Adjust the number of tests after r336913.
Branches
Unknown
Tags
Unknown