HomeFreeBSD

lpr(1): small bounds check with reallocarray(3).

Description

lpr(1): small bounds check with reallocarray(3).

While here plug a memory leak upon error and postpose a multiplication
until after reallocation has succeded.

Hinted partially by: OpenBSD
Reviewed by: gad
MFC after: 2 weeks

Details

Provenance
pfgAuthored on
Reviewer
gad
Parents
rS314876: m_mbuftouio() doesn't modify the mbuf.
Branches
Unknown
Tags
Unknown