From 0cab056dc90bf51899a6aa1f513652afba682ebf Mon Sep 17 00:00:00 2001 From: Vitaly Chipounov Date: Sat, 7 Dec 2024 19:36:33 +0100 Subject: [PATCH] testsuite/basic7-instmon: fixed address extraction Signed-off-by: Vitaly Chipounov --- testsuite/basic7-instmon/fix-config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuite/basic7-instmon/fix-config.sh b/testsuite/basic7-instmon/fix-config.sh index f3027289..2112c403 100755 --- a/testsuite/basic7-instmon/fix-config.sh +++ b/testsuite/basic7-instmon/fix-config.sh @@ -8,7 +8,7 @@ echo "Patching s2e-config.lua..." PROJECT_NAME="$(basename $PROJECT_DIR)" -SCANF_CS_ADDR=$(objdump -S $TARGET | grep scanf | grep call | cut -d ':' -f 1 | xargs) +SCANF_CS_ADDR=$(objdump -S $TARGET | grep scanf | grep call | head -n 1 | cut -d ':' -f 1 | xargs) if [ "x$SCANF_CS_ADDR" = "x" ]; then echo "Could not get call site of scanf instruction" exit 1