Skip to content
This repository was archived by the owner on Jan 2, 2024. It is now read-only.

Commit c8ed240

Browse files
committed
fix: use small max array length to avoid DoS
1 parent baeb40e commit c8ed240

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/core.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export function fuzzArray(b: t.ArrayType<t.Mixed>): ConcreteFuzzer<unknown[]> {
167167
children: [b.type],
168168
func: (n, h0) => {
169169
const ret = [];
170-
for (let index = 0; index < n % 103; index++) {
170+
for (let index = 0; index < n % 13; index++) {
171171
ret.push(h0.encode(n + index));
172172
}
173173
return ret;

0 commit comments

Comments
 (0)