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
lpr(1): small bounds check with reallocarray(3). Tags None Referenced Files None Subscribers None
Description
Details
|