vfs: check userland buffers before reading them.
[haiku.git] / src / tests / system / runtime_loader / test_suite / load_resolve_basic1
blob506ae29c5bc4cd9d8be6c740893e4e9e8cc84225
1 #!/bin/sh
3 # program
4 # <- liba.so
6 # Expected: Undefined symbol in liba.so resolves to symbol in program.
9 . ./test_setup
12 # create liba.so
13 cat > liba.c << EOI
14 extern int b();
15 int a() { return b(); }
16 EOI
18 # build
19 compile_lib -o liba.so liba.c
22 # create program
23 cat > program.c << EOI
24 extern int a();
26 int
27 b()
29 return 1;
32 int
33 main()
35 return a();
37 EOI
39 # build
40 compile_program -o program program.c ./liba.so
42 # run
43 test_run_ok ./program 1