diff options
author | Adrian Cochrane <adrianc@catalyst.net.nz> | 2015-09-04 12:59:57 +1200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2015-10-09 23:15:06 +0200 |
commit | 7b6d1a2a5d5561e641d9001901b9e43a64117681 (patch) | |
tree | f43691ada0b012eb886eb5e3610575ffdc548d99 /lib/talloc/test_magic_differs_helper.c | |
parent | 2b9bfab36d9ae0f7fa2a989195129a1a6b62393b (diff) | |
download | samba-7b6d1a2a5d5561e641d9001901b9e43a64117681.tar.gz |
talloc: Test that talloc magic differs between processes.talloc-2.1.4
Signed-off-by: Adrian Cochrane <adrianc@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Oct 9 23:15:06 CEST 2015 on sn-devel-104
Diffstat (limited to 'lib/talloc/test_magic_differs_helper.c')
-rw-r--r-- | lib/talloc/test_magic_differs_helper.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/talloc/test_magic_differs_helper.c b/lib/talloc/test_magic_differs_helper.c new file mode 100644 index 00000000000..6798827abb1 --- /dev/null +++ b/lib/talloc/test_magic_differs_helper.c @@ -0,0 +1,12 @@ +#include <stdio.h> +#include "talloc.h" + +/* + * This program is called by a testing shell script in order to ensure that + * if the library is loaded into different processes it uses different magic + * values in order to thwart security attacks. + */ +int main(int argc, char *argv[]) { + printf("%i\n", talloc_test_get_magic()); + return 0; +} |