Pr/fix qemu launcher build - fixes 1785 (#1786)
* Fixing qemu_launcher build (#1785) * Fixed the instructions for using the injection feature
This commit is contained in:
parent
0f2cf80085
commit
b93a5bb414
@ -211,6 +211,7 @@ ${CROSS_CXX} \
|
|||||||
"${TARGET_DIR}/build-png/.libs/libpng16.a" \
|
"${TARGET_DIR}/build-png/.libs/libpng16.a" \
|
||||||
"${TARGET_DIR}/build-zlib/libz.a" \
|
"${TARGET_DIR}/build-zlib/libz.a" \
|
||||||
-I"${TARGET_DIR}/build-png" \
|
-I"${TARGET_DIR}/build-png" \
|
||||||
|
-I"${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/libpng-1.6.37" \
|
||||||
-I"${TARGET_DIR}/build-zlib/zlib/lib" \
|
-I"${TARGET_DIR}/build-zlib/zlib/lib" \
|
||||||
-L"${TARGET_DIR}/build-zlib/zlib/lib" \
|
-L"${TARGET_DIR}/build-zlib/zlib/lib" \
|
||||||
-o"${TARGET_DIR}/libpng-harness-${CARGO_MAKE_PROFILE}" \
|
-o"${TARGET_DIR}/libpng-harness-${CARGO_MAKE_PROFILE}" \
|
||||||
|
@ -11,7 +11,7 @@ The following architectures are supported:
|
|||||||
* mips
|
* mips
|
||||||
* ppc
|
* ppc
|
||||||
|
|
||||||
Note that the injection feature `-y` is currently only supported on x86_64
|
Note that the injection feature `-j` is currently only supported on x86_64
|
||||||
and aarch64.
|
and aarch64.
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
all: static sqltest
|
all: static sqltest
|
||||||
|
|
||||||
sqltest: sqltest.c
|
sqltest: sqltest.c
|
||||||
gcc -g -o sqltest sqltest.c -l sqlite3 -lm
|
gcc -g -o sqltest sqltest.c -l sqlite3 -lm -lpthread
|
||||||
|
|
||||||
static: sqltest.c
|
static: sqltest.c
|
||||||
gcc -g -o static sqltest.c -l sqlite3 -lm -static
|
gcc -g -o static sqltest.c -l sqlite3 -lm -static -lpthread -ldl
|
||||||
|
|
||||||
fuzz: sqltest.c
|
fuzz: sqltest.c
|
||||||
afl-clang-fast -o fuzz sqltest.c -l sqlite3
|
afl-clang-fast -o fuzz sqltest.c -l sqlite3
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
## Prerequisites
|
||||||
|
```bash
|
||||||
|
sudo apt install libsqlite3-dev
|
||||||
|
```
|
||||||
|
|
||||||
# Injection test setup
|
# Injection test setup
|
||||||
|
|
||||||
To build the injection test target:
|
To build the injection test target:
|
||||||
@ -6,5 +11,5 @@ To build the injection test target:
|
|||||||
To run qemu_launcher with the injection detection activated:
|
To run qemu_launcher with the injection detection activated:
|
||||||
|
|
||||||
```
|
```
|
||||||
target/release/qemu_launcher -y injections.yaml -i in -o out -- injection_test/static
|
target/x86_64/release/qemu_launcher -j injections.yaml -i in -o out -- injection_test/static
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user