Skip to content

Commit 883ed20

Browse files
Fix fuzzing
1 parent a706e13 commit 883ed20

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

.clusterfuzzlite/Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ FROM gcr.io/oss-fuzz-base/base-builder:v1
55

66
# Copy the project's source code.
77
COPY . $SRC/app-ethereum
8-
COPY --from=LITE_BUILDER /opt/ledger-secure-sdk $SRC/app-ethereum/BOLOS_SDK
9-
10-
# Add the ethereum-plugin-sdk submodule
11-
RUN git clone https://github.com/LedgerHQ/ethereum-plugin-sdk.git $SRC/app-ethereum/ethereum-plugin-sdk
8+
COPY --from=LITE_BUILDER /opt/nanos-secure-sdk $SRC/app-ethereum/BOLOS_SDK
129

1310
# Working directory for build.sh
1411
WORKDIR $SRC/app-ethereum

.clusterfuzzlite/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
# build fuzzers
44

5+
git submodule update --init
6+
57
pushd tests/fuzzing
68
cmake -DBOLOS_SDK=$(pwd)/../../BOLOS_SDK -B build -S .
79
cmake --build build

tests/fuzzing/CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ endif()
1717

1818
# default fuzz device target
1919
if (NOT TARGET_DEVICE)
20-
set(TARGET_DEVICE "flex")
20+
set(TARGET_DEVICE "nanos")
2121
endif()
2222

2323
if (NOT DEFINED BOLOS_SDK)
@@ -50,8 +50,7 @@ endif()
5050
set(DEFINES
5151
gcc
5252
APPNAME=\"Fuzzing\"
53-
API_LEVEL=21
54-
TARGET=\"flex\"
53+
TARGET=\"${TARGET_DEVICE}\"
5554
TARGET_NAME=\"TARGET_FUZZ\"
5655
APPVERSION=\"1.1.0\"
5756
SDK_NAME=\"ledger-secure-sdk\"

0 commit comments

Comments
 (0)