Skip to content

Commit 6a52ebb

Browse files
committed
[Oracle] Update V8 oracle
1 parent d9e6995 commit 6a52ebb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Fuzzer/Oracle.fs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,16 @@ module Signal =
2828
| _ -> true
2929

3030
module Oracle =
31+
let v8Table = [|
32+
"Fatal javascript OOM";
33+
"Check failed: args";
34+
|]
35+
36+
let checkTable table err = Array.exists (String.contains err) table |> not
37+
3138
let isCrash = Signal.ofRet >> Signal.isCrash
3239

33-
let isV8Bug (struct (ret, out, err)) = isCrash ret
40+
let isV8Bug (struct (ret, out, err)) = isCrash ret && checkTable v8Table err
3441

3542
let isChakraBug (struct (ret, out, err)) = isCrash ret
3643

0 commit comments

Comments
 (0)