File: test_magic_differs_helper.c

package info (click to toggle)
talloc 2.4.0-f2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,500 kB
  • sloc: python: 35,311; ansic: 12,768; xml: 812; sh: 211; makefile: 157
file content (12 lines) | stat: -rw-r--r-- 337 bytes parent folder | download | duplicates (23)
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;
}