Skip to content
This repository was archived by the owner on Apr 30, 2021. It is now read-only.

Commit c034023

Browse files
author
Yevgeny Pats
committed
Merge branch 'master' of github.com:fuzzitdev/jsfuzz
2 parents 027fc29 + a6cdde0 commit c034023

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Features of the fuzz target:
3131
* The fuzz target must call the test function/library with wither the passed buffer or a transformation on the test buffer
3232
if the structure is different or from different type.
3333
* Fuzz functions can also implement application level checks to catch application/logical bugs - For example:
34-
decode the buffer with the testable library encode it again and check that both results are equal. To communicate the results
34+
decode the buffer with the testable library, encode it again, and check that both results are equal. To communicate the results
3535
the result/bug the function should throw an exception.
3636
* jsfuzz will report any unhandled exceptions as crashes as well as inputs that hit the memory limit specified to jsfuzz
3737
or hangs/they run more the the specified timeout limit per testcase.
@@ -52,7 +52,7 @@ function fuzz(buf) {
5252
e.message.indexOf('Failed to') !== -1 ||
5353
e.message.indexOf('DecoderBuffer') !== -1 ||
5454
e.message.indexOf('invalid table spec') !== -1 ||
55-
e.message.indexOf('SOI not found ) !== -1')) {
55+
e.message.indexOf('SOI not found1) !== -1) {
5656
} else {
5757
throw e;
5858
}
@@ -66,7 +66,7 @@ module.exports = {
6666
6767
### Running
6868
69-
The next step is to download js-fuzz and the your fuzzer
69+
The next step is to download js-fuzz and then run your fuzzer
7070
7171
```bash
7272
npm i -g jsfuzz
@@ -121,7 +121,7 @@ For coverage jsfuzz is using [istanbuljs](https://istanbul.js.org) instrumentati
121121

122122
## Contributions
123123

124-
Contributions are welcome!:) There are still a lot of things to improve,test and features to add. We will slowly post those in the
124+
Contributions are welcome!:) There are still a lot of things to improve, and tests and features to add. We will slowly post those in the
125125
issues section. Before doing any major contribution please open an issue so we can discuss and help guide the process before
126126
any unnecessary work is done.
127127

examples/jpeg/fuzz.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function fuzz(buf) {
1212
e.message.indexOf('Failed to') !== -1 ||
1313
e.message.indexOf('DecoderBuffer') !== -1 ||
1414
e.message.indexOf('invalid table spec') !== -1 ||
15-
e.message.indexOf('SOI not found ) !== -1')) {
15+
e.message.indexOf('SOI not found') !== -1) {
1616
} else {
1717
throw e;
1818
}
@@ -21,4 +21,4 @@ function fuzz(buf) {
2121

2222
module.exports = {
2323
fuzz
24-
};
24+
};

0 commit comments

Comments
 (0)