Skip to content

Commit 3e9962b

Browse files
LiedtkeV8-internal LUCI CQ
authored andcommitted
OperationMutator: Report the misconfigured opcode on crash
Change-Id: I899267f93d6eefc6fe77de094987c5ce091816fb Reviewed-on: https://chrome-internal-review.googlesource.com/c/v8/fuzzilli/+/8634698 Reviewed-by: Michael Achenbach <machenbach@google.com> Commit-Queue: Matthias Liedtke <mliedtke@google.com> Auto-Submit: Matthias Liedtke <mliedtke@google.com> Commit-Queue: Michael Achenbach <machenbach@google.com>
1 parent 12507b3 commit 3e9962b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/Fuzzilli/Mutators/OperationMutator.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,8 +729,8 @@ public class OperationMutator: BaseInstructionMutator {
729729
.wasmDropElementSegment(_),
730730
.wasmTableInit(_),
731731
.wasmTableCopy(_):
732-
assert(!instr.isOperationMutable)
733-
fatalError("Unexpected Operation")
732+
let mutability = instr.isOperationMutable ? "mutable" : "immutable"
733+
fatalError("Unexpected operation \(instr.op.opcode), marked as \(mutability)")
734734
}
735735

736736
// This assert is here to prevent subtle bugs if we ever decide to add flags that are "alive" during program building / mutation.

0 commit comments

Comments
 (0)