HomeFreeBSD

Make the data returned by devinfo harder to overflow.

Description

Make the data returned by devinfo harder to overflow.

Rather than using fixed-length strings, pack them into a string table
to return. Also expand the buffer from ~300 charaters to 3k. This should
be enough, even for USB.

This fixes a problem where USB pnp info is truncated on return to
userland.

Differential Revision: https://reviews.freebsd.org/D15629

Details

Provenance
impAuthored on May 31 2018, 2:57 AM
Parents
rG92376fa76c0b: Sanity check the return from the kernel.
Branches
Unknown
Tags
Unknown

Event Timeline