Skip to content

Commit e4732f0

Browse files
LiedtkeV8-internal LUCI CQ
authored andcommitted
[wasm] Make lifting more robust for tags
The implicit import mechanism in Wasm needs a rework sooner or later. For now, let's make it more robust in this case. Fixed: 498266575 Change-Id: I17cc0021cbe945d5db16029c451e3ea6bfb55ff1 Reviewed-on: https://chrome-internal-review.googlesource.com/c/v8/fuzzilli/+/9159837 Auto-Submit: Matthias Liedtke <mliedtke@google.com> Commit-Queue: Michael Achenbach <machenbach@google.com> Reviewed-by: Michael Achenbach <machenbach@google.com>
1 parent 0f65b69 commit e4732f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/Fuzzilli/Lifting/WasmLifter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ public class WasmLifter {
772772
temp += mutability ? [0x1] : [0x0]
773773
continue
774774
}
775-
if type.Is(.object(ofGroup: "WasmTag")) {
775+
if type.Is(.object(ofGroup: "WasmTag")) && signature != nil {
776776
temp += [0x4, 0x0] + Leb128.unsignedEncode(try getSignatureIndex(signature!))
777777
continue
778778
}

0 commit comments

Comments
 (0)