HomeFreeBSD

MFC r298839:

Description

MFC r298839:

Fix memory allocation edgecases in kvm_argv(..)

  • Don't leak nbufp on realloc failure in kvm_argv
  • Catch malloc errors with bufp
  • Set buflen last in the "buflen == 0" case to ensure that bufp/nbufp is properly reallocated on the next go around

Details

Provenance
ngieAuthored on
Parents
rS299650: MFstable/10 r299649:
Branches
Unknown
Tags
Unknown