]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r244568:
authordelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 1 Feb 2013 07:38:26 +0000 (07:38 +0000)
committerdelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 1 Feb 2013 07:38:26 +0000 (07:38 +0000)
commitf7cc12c1940014f68cad77f768b900eed9bf819f
tree728d861e69b9429731acb313294d07f2633a0ed5
parentdf4fbcb818fbdcbc7b7826224b102c17e8dfe57b
MFC r244568:

 - 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.

git-svn-id: svn://svn.freebsd.org/base/stable/8@246198 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/gen/check_utility_compat.c