1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/lib/talloc/test_magic_differs_helper.c
Adrian Cochrane 7b6d1a2a5d talloc: Test that talloc magic differs between processes.
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
2015-10-09 23:15:06 +02:00

13 lines
337 B
C

#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;
}