HomeFreeBSD

- Reduce buffer size from LINE_MAX to PATH_MAX, there is no point to store

Description

  • Reduce buffer size from LINE_MAX to PATH_MAX, there is no point to store path longer than this.
  • Fix an unreached case of check against sizeof buf, which in turn leads to an off-by-one nul byte write on the stack. The original condition can never be satisfied because the passed boundary is the maximum value that can be returned, so code was harmless.

MFC after: 1 month

Details

Provenance
delphijAuthored on Dec 21 2012, 10:20 PM
Parents
rGf7e62ad09210: Reduce stack usage in the USB audio driver by moving some large stack
Branches
Unknown
Tags
Unknown

Event Timeline