Skip to content

Commit e5657b1

Browse files
Fix fuzzing
1 parent a706e13 commit e5657b1

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

.clusterfuzzlite/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ 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
1512

13+
# Add the ethereum-plugin-sdk submodule
14+
RUN git submodule update --init
15+
1616
# Copy build.sh into $SRC dir.
1717
COPY ./.clusterfuzzlite/build.sh $SRC/

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "ethereum-plugin-sdk"]
22
path = ethereum-plugin-sdk
3-
url = git@github.com:LedgerHQ/ethereum-plugin-sdk.git
3+
url = https://github.com/LedgerHQ/ethereum-plugin-sdk.git

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)