HomeFreeBSD

Fix uninitialized variable

Description

Fix uninitialized variable

echo | awk 'BEGIN {i=$1; print i}' prints a boatload of stack
garbage. NUL terminate the memory returned from malloc to prevent it.

Obtained from: OpenBSD run.c 1.40
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D12379

Details

Provenance
impAuthored on
Differential Revision
D12379: Pull in all non-srandom, non-pledge patches from OpenBSD
Parents
rS323962: Fix typo from r323945.
Branches
Unknown
Tags
Unknown