]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Reduce buffer size from LINE_MAX to PATH_MAX, there is no point to store
authordelphij <delphij@FreeBSD.org>
Fri, 21 Dec 2012 22:20:59 +0000 (22:20 +0000)
committerdelphij <delphij@FreeBSD.org>
Fri, 21 Dec 2012 22:20:59 +0000 (22:20 +0000)
commit23ae20eae272e8a2cfae89d5760be977f0fd4be5
tree4f27d8333a4c78806812a23a03d6fda8f53e81a3
parent68ab69513cc0eb098a3e9819e69f90348a32aa1f
 - 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
lib/libc/gen/check_utility_compat.c