diff options
Diffstat (limited to '')
-rw-r--r-- | t/recipes/checks/binaries/large-file-support/binaries-missing-lfs/build-spec/orig/basic.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/t/recipes/checks/binaries/large-file-support/binaries-missing-lfs/build-spec/orig/basic.c b/t/recipes/checks/binaries/large-file-support/binaries-missing-lfs/build-spec/orig/basic.c new file mode 100644 index 0000000..3d12fde --- /dev/null +++ b/t/recipes/checks/binaries/large-file-support/binaries-missing-lfs/build-spec/orig/basic.c @@ -0,0 +1,27 @@ +#include <stdio.h> +#include <string.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> + +static void +hardening_trigger(char *p, int i, void (*f)(char *)) +{ + char test[10]; + memcpy(test, p, i); + f(test); + printf("%s", test); +} + +int +lib_interface(void) +{ + printf("Hello world!\n"); + hardening_trigger(NULL, 0, NULL); + return 0; +} + +int +do_open (char *file) { + return open (file, O_RDONLY); +} |