]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r318210:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 2 Jun 2017 00:27:08 +0000 (00:27 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 2 Jun 2017 00:27:08 +0000 (00:27 +0000)
commitbe1bb43984f84a2673574dca51f3764dbe5b05e1
treed3068767aa372079864e6beb66ba27a8fc878f1f
parent7b0e4cd467272790bc5572722e7d7c23c4c7dc21
MFC r318210:

ssp_test:read:: query the value of MAXPATHLEN via getconf(1)

In the event the value of PATH_MAX was changed, the assumption that
MAXPATHLEN is 1024 (and hence the buffer length required to trigger
SSP to fail for read(2)) would be invalidated. Query getconf(1) for
the actual value of MAXPATHLEN via _XOPEN_PATH_MAX instead, and
increment the value by 1 to ensure that the SSP support tests the
stack smashing support properly.

git-svn-id: svn://svn.freebsd.org/base/stable/10@319483 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/netbsd-tests/lib/libc/ssp/t_ssp.sh