Skip to content

Commit

Permalink
Some minor verbiage improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
mschwager committed Feb 16, 2024
1 parent dbac2fd commit fc259ed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,20 +86,22 @@ INFO: Seed: 2527961537
...
SUMMARY: AddressSanitizer: stack-use-after-return /var/lib/gems/3.1.0/gems/ruzzy-0.5.0/ext/dummy/dummy.c:18:24 in _c_dummy_test_one_input
...
==3==ABORTING
MS: 1 InsertByte-; base unit: 253420c1158bc6382093d409ce2e9cff5806e980
0x48,0x49,0x28,
HI(
artifact_prefix='./'; Test unit written to ./crash-7099f1508d4048cfe74226869805efa3db24b165
Base64: SEko
==1541==ABORTING
MS: 2 ChangeByte-CrossOver-; base unit: b408860bc2c0584b8e0bb6fa3443005a3ef39854
0x48,0x49,
HI
artifact_prefix='./'; Test unit written to ./crash-253420c1158bc6382093d409ce2e9cff5806e980
Base64: SEk=
```

We can see that it correctly found the input (`"HI"`) that produced a memory violation. For more information, see [`dummy.c`](https://github.com/trailofbits/ruzzy/blob/main/ext/dummy/dummy.c) to see why this violation occurred.

You can re-run the crash case with the following command:

```bash
LD_PRELOAD=$(ruby -e 'require "ruzzy"; print Ruzzy::ASAN_PATH') \
ruby -e 'require "ruzzy"; Ruzzy.dummy' \
./crash-7099f1508d4048cfe74226869805efa3db24b165
./crash-253420c1158bc6382093d409ce2e9cff5806e980
```

The following sanitizers are available:
Expand Down
2 changes: 1 addition & 1 deletion lib/ruzzy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'pathname'

# A Ruby C extension fuzzer
# A coverage-guided fuzzer for both pure Ruby code and Ruby C extensions
module Ruzzy
require 'cruzzy/cruzzy'

Expand Down

0 comments on commit fc259ed

Please sign in to comment.