File: test_magic_differs_helper.c

package info (click to toggle)
samba 2%3A4.23.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 188,088 kB
  • sloc: ansic: 2,007,520; python: 272,673; sh: 72,258; xml: 51,653; perl: 36,094; makefile: 6,353; yacc: 5,323; exp: 1,582; lex: 1,504; cpp: 1,224; awk: 589; java: 119; csh: 58; pascal: 54; sed: 45; asm: 30
file content (12 lines) | stat: -rw-r--r-- 337 bytes parent folder | download | duplicates (22)
1
2
3
4
5
6
7
8
9
10
11
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;
}