| // From oss-fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17976 |
| let kTypeSectionCode = 1; |
| let kFunctionSectionCode = 3; |
| let kCodeSectionCode = 10; |
| let kWasmFunctionTypeForm = 0x60; |
| this.buffer = new Uint8Array(8192); |
| return new Uint8Array(this.buffer.buffer, 0, this.length); |
| this.buffer[this.length++] = v; |
| this.buffer.set(data, this.length); |
| this.length += data.length; |
| this.emit_bytes([kWasmH0, kWasmH1, kWasmH2, kWasmH3, kWasmV0, kWasmV1, kWasmV2, kWasmV3]); |
| function __f_576(__v_2078) { |
| WebAssembly.compile(__v_2078.trunc_buffer()) |
| let __v_2099 = new Binary(); |
| __v_2099.emit_bytes([kTypeSectionCode, 4, 1, kWasmFunctionTypeForm, 0, 0]) |
| __v_2099.emit_bytes([kFunctionSectionCode, 2, 1, 0]) |
| __v_2099.emit_bytes([kCodeSectionCode, 20, 1]) |