Skip to content

Commit 566060f

Browse files
authored
Feat/merge fixes from ledger pr (#165)
* FIXME: a mix of changes keep in mind useful function in there to print nested clarity vales in std * Remove job which is not use across other apps * Remove dead code in publicKey function * Add SIGN_JWT_SECP256K1 apdu command documentation * Add INS_GET_AUTH_PUBKEY apdu command documentation * Fix fuzzer and add corpus Fix overflow Remove redundant target as it is already covered by transaction target Return None in case of error * Ignore fuzzing boilerplate * Bump version and update snapshots * Remove test use to debug that data used was invalid
1 parent d100cfd commit 566060f

File tree

27 files changed

+461
-175
lines changed

27 files changed

+461
-175
lines changed

.github/workflows/codeql.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,11 @@ app/obj
7878

7979
app/glyphs/glyphs.*
8080

81-
hfuzz/hfuzz_workspace
81+
app/hfuzz-parser/hfuzz_workspace/transaction/input/*.honggfuzz.cov
82+
app/hfuzz-parser/hfuzz_target
83+
app/hfuzz-parser/hfuzz_workspace/transaction/*.TXT
84+
app/hfuzz-parser/hfuzz_workspace/transaction/*.fuzz
85+
8286

8387
tests_zemu/snapshots-tmp
8488
app/output/*.apdu

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,8 @@ test_all:
4444
prod:
4545
make PRODUCTION_BUILD=1
4646

47+
rust_fuzz:
48+
cd app/hfuzz-parser/ && cargo hfuzz run transaction
49+
50+
51+

app/FUZZING.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,20 @@ cargo install honggfuzz
2121
Start fuzzing a desirable target:
2222

2323
```bash
24-
cd hfuzz-parser && cargo hfuzz run transaction
24+
make rust_fuzz
2525
```
2626

2727
### Debugging
2828

2929
If there are crashes reported, debug the application with the generated input to figure out where the problem is.
30-
The supported debuggers are: *lldb*, *rust-gdb*, *gdb*, *rust-lldb*. By default *rust-lldb* is used but,
31-
this can be changed using the __HFUZZ_DEBUGGER__ env variable:
30+
The supported debuggers are: _lldb_, _rust-gdb_, _gdb_, _rust-lldb_. By default _rust-lldb_ is used:
3231

3332
```bash
34-
export HFUZZ_DEBUGGER="rust-gdb"
3533
cd hfuzz-parser
36-
HFUZZ_BUILD_ARGS="--features baking" cargo hfuzz run-debug transaction hfuzz_workspace/transaction/*.fuzz
34+
cargo hfuzz run-debug transaction hfuzz_workspace/*/*.fuzz
35+
3736
```
3837

39-
*note*: There could be more than one *.fuzz* file.
38+
This will deploy a gdb console with a backtrace with the first crash
39+
40+
_note_: There could be more than one _.fuzz_ file.

app/Makefile.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
APPVERSION_M=0
22
APPVERSION_N=24
3-
APPVERSION_P=2
3+
APPVERSION_P=3

0 commit comments

Comments
 (0)