mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-15 19:38:09 +00:00
fix dynamic list usage error in afl-cc
This commit is contained in:
@ -1040,7 +1040,7 @@ static void edit_params(u32 argc, char **argv, char **envp) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(__APPLE__) && !defined(__sun)
|
#if !defined(__APPLE__) && !defined(__sun)
|
||||||
if (shared_linking)
|
if (!shared_linking)
|
||||||
cc_params[cc_par_cnt++] =
|
cc_params[cc_par_cnt++] =
|
||||||
alloc_printf("-Wl,--dynamic-list=%s/dynamic_list.txt", obj_path);
|
alloc_printf("-Wl,--dynamic-list=%s/dynamic_list.txt", obj_path);
|
||||||
#endif
|
#endif
|
||||||
|
@ -63,7 +63,7 @@ test -e ../afl-clang-fast -a -e ../split-switches-pass.so && {
|
|||||||
} || {
|
} || {
|
||||||
$ECHO "$GREEN[+] llvm_mode test-dlopen instrumentation present and working correctly"
|
$ECHO "$GREEN[+] llvm_mode test-dlopen instrumentation present and working correctly"
|
||||||
TUPLES=`echo 0|TEST_DLOPEN_TARGET=./test-instr.so AFL_QUIET=1 ../afl-showmap -m ${MEM_LIMIT} -o /dev/null -- ./test-dlopen.plain 2>&1 | grep Captur | awk '{print$3}'`
|
TUPLES=`echo 0|TEST_DLOPEN_TARGET=./test-instr.so AFL_QUIET=1 ../afl-showmap -m ${MEM_LIMIT} -o /dev/null -- ./test-dlopen.plain 2>&1 | grep Captur | awk '{print$3}'`
|
||||||
test "$TUPLES" -gt 2 -a "$TUPLES" -lt 8 && {
|
test "$TUPLES" -gt 3 -a "$TUPLES" -lt 9 && {
|
||||||
$ECHO "$GREEN[+] llvm_mode test-dlopen run reported $TUPLES instrumented locations which is fine"
|
$ECHO "$GREEN[+] llvm_mode test-dlopen run reported $TUPLES instrumented locations which is fine"
|
||||||
} || {
|
} || {
|
||||||
$ECHO "$RED[!] llvm_mode test-dlopen instrumentation produces weird numbers: $TUPLES"
|
$ECHO "$RED[!] llvm_mode test-dlopen instrumentation produces weird numbers: $TUPLES"
|
||||||
|
Reference in New Issue
Block a user