freebsd-skq/libexec
davidxu 3c6681dc2c MFC r262277:
malloc_aligned() may not leave enough space for pointer to allocated memory,
saving the pointer will overwrite bytes belongs to another memory block
unexpectly, to fix the problem, use (allocated address + sizeof(void *)) as
initial value, and slip to next aligned address, so maximum extra bytes is
sizeof(void *) + align - 1.

Tested by: Andre Albsmeier < mail at ma17 dot ata dot myota dot orgndre >

MFC r262334:

Increase alignment to size of pointer if the alignment is too small.
Some modules do not align data at least to size of pointer, they uses a
smaller alignment, but our pointer should be aligned to its native
boundary, otherwise on some platforms, hardware alignment checking
will cause bus error.
2014-02-27 02:36:09 +00:00
..
atf Plug the ATF tests into the build. 2013-12-28 23:08:58 +00:00
atrun Add the name of the file that could not be opened to the error message 2013-06-11 18:46:46 +00:00
bootpd MFC: r262136 2014-02-24 08:21:49 +00:00
comsat MFC: r262136 2014-02-24 08:21:49 +00:00
fingerd MFC: r262136 2014-02-24 08:21:49 +00:00
ftpd MFC: r262136 2014-02-24 08:21:49 +00:00
getty MFC: r262136 2014-02-24 08:21:49 +00:00
lukemftpd Spelling fixes for libexec/ 2012-01-07 16:09:54 +00:00
mail.local Since clang 3.2 now has an option to suppress warnings about implicitly 2013-02-16 20:17:31 +00:00
mknetid MFC: r262136 2014-02-24 08:21:49 +00:00
pppoed In libexec/pppoed/pppoed.c, use the correct printf length modifier for a 2011-12-16 16:07:39 +00:00
rbootd MFC: r262136 2014-02-24 08:21:49 +00:00
revnetgroup MFC: r262136 2014-02-24 08:21:49 +00:00
rlogind MFC: r262136 2014-02-24 08:21:49 +00:00
rpc.rquotad The NFS quota-reporting RPC uses 32-bit sized fields. We approximate 2010-04-25 00:05:51 +00:00
rpc.rstatd MFC: r262136 2014-02-24 08:21:49 +00:00
rpc.rusersd MFC: r262136 2014-02-24 08:21:49 +00:00
rpc.rwalld MFC: r262136 2014-02-24 08:21:49 +00:00
rpc.sprayd Make WARNS=6 the default for libexec/. 2010-01-02 09:50:19 +00:00
rshd MFC: r262136 2014-02-24 08:21:49 +00:00
rtld-aout More -Wmissing-variable-declarations fixes. 2012-10-19 14:49:42 +00:00
rtld-elf MFC r262277: 2014-02-27 02:36:09 +00:00
save-entropy 1. Use install -d to create the entropy_dir if missing so that we can do it 2012-09-04 16:00:51 +00:00
smrsh Since clang 3.2 now has an option to suppress warnings about implicitly 2013-02-16 20:17:31 +00:00
talkd MFC: r262136 2014-02-24 08:21:49 +00:00
tcpd Make WARNS=6 the default for libexec/. 2010-01-02 09:50:19 +00:00
telnetd
tests Plug the ATF tests into the build. 2013-12-28 23:08:58 +00:00
tftp-proxy Make WARNS=6 the default for libexec/. 2010-01-02 09:50:19 +00:00
tftpd MFC: r262136 2014-02-24 08:21:49 +00:00
ulog-helper Do a better job at determining the username of the login session. 2012-04-19 21:12:08 +00:00
ypxfr Consistently set RPCGEN_CPP when running rpcgen, so the C preprocessor 2012-02-07 09:27:07 +00:00
Makefile Plug the ATF tests into the build. 2013-12-28 23:08:58 +00:00
Makefile.inc Make WARNS=6 the default for libexec/. 2010-01-02 09:50:19 +00:00