Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/merge fixes from ledger pr #165

Merged
merged 9 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 0 additions & 39 deletions .github/workflows/codeql.yml

This file was deleted.

6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ app/obj

app/glyphs/glyphs.*

hfuzz/hfuzz_workspace
app/hfuzz-parser/hfuzz_workspace/transaction/input/*.honggfuzz.cov
app/hfuzz-parser/hfuzz_target
app/hfuzz-parser/hfuzz_workspace/transaction/*.TXT
app/hfuzz-parser/hfuzz_workspace/transaction/*.fuzz


tests_zemu/snapshots-tmp
app/output/*.apdu
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,8 @@ test_all:
prod:
make PRODUCTION_BUILD=1

rust_fuzz:
cd app/hfuzz-parser/ && cargo hfuzz run transaction



13 changes: 7 additions & 6 deletions app/FUZZING.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,20 @@ cargo install honggfuzz
Start fuzzing a desirable target:

```bash
cd hfuzz-parser && cargo hfuzz run transaction
make rust_fuzz
```

### Debugging

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

```bash
export HFUZZ_DEBUGGER="rust-gdb"
cd hfuzz-parser
HFUZZ_BUILD_ARGS="--features baking" cargo hfuzz run-debug transaction hfuzz_workspace/transaction/*.fuzz
cargo hfuzz run-debug transaction hfuzz_workspace/*/*.fuzz

```

*note*: There could be more than one *.fuzz* file.
This will deploy a gdb console with a backtrace with the first crash

_note_: There could be more than one _.fuzz_ file.
2 changes: 1 addition & 1 deletion app/Makefile.version
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
APPVERSION_M=0
APPVERSION_N=24
APPVERSION_P=2
APPVERSION_P=3
Loading
Loading