HomeFreeBSD

Rework copyinstr to:

Description

Rework copyinstr to:

  • Fail when the length passed in is 0
  • Remove an unneeded increment of the count on success
  • Return ENAMETOOLONG when the input pointer is too long

Sponsored by: ABT Systems Ltd

Details

Provenance
andrewAuthored on
Parents
rS287595: - Fix SIGSEGV when sa == NULL. NULL check in getnameinfo_inet()
Branches
Unknown
Tags
Unknown