## Environments

**OS** : Ubuntu 18.04 5.4.0-150-generic
**Commit** : e97d53c5fcbb604fc36432df4fc117d13558d7fd
**Version** : 1.0.34

## Vulnerability Description

**Affected Tool** : wasm-decompile
**Affected Version** : <= 1.0.34
**Impact** : Denial of Service

* The assertion 'false' in /src/decompiler.cc:414( in wabt 1.0.34 can cause a denial of service(assertion failure) via a crafted wasm file.
```CC
case NodeType::Uninitialized:
   assert(false);
   break;
```

## PoC
**1. Input File**

[wasm-decompile-PoC.zip](https://github.com/WebAssembly/wabt/files/13260356/wasm-decompile-PoC.zip)


**2. Reproduce**

```shell
$ ~/wabt/bin/wasm-decompile wasm-decompile-PoC
```

**3. Stack Trace**

```shell
$ ~/wabt/bin/wasm-decompile wasm-decompile-PoC
wasm-decompile: ../../../../src/decompiler.cc:414: wabt::Decompiler::Value wabt::Decompiler::DecompileExpr(const wabt::Node &, const wabt::Node *): Assertion `false' failed.
Aborted
```
wasm-decompile: Assertion `false' failed.
This is a GitHub Issue
repo:wabt
owner:WebAssembly
Title : wasm-decompile: Assertion `false' failed.
Issue date:

--- start body ---
## Environments

**OS** : Ubuntu 18.04 5.4.0-150-generic
**Commit** : e97d53c5fcbb604fc36432df4fc117d13558d7fd
**Version** : 1.0.34

## Vulnerability Description

**Affected Tool** : wasm-decompile
**Affected Version** : <= 1.0.34
**Impact** : Denial of Service

* The assertion 'false' in /src/decompiler.cc:414( in wabt 1.0.34 can cause a denial of service(assertion failure) via a crafted wasm file.
```CC
case NodeType::Uninitialized:
   assert(false);
   break;
```

## PoC
**1. Input File**

[wasm-decompile-PoC.zip](https://github.com/WebAssembly/wabt/files/13260356/wasm-decompile-PoC.zip)


**2. Reproduce**

```shell
$ ~/wabt/bin/wasm-decompile wasm-decompile-PoC
```

**3. Stack Trace**

```shell
$ ~/wabt/bin/wasm-decompile wasm-decompile-PoC
wasm-decompile: ../../../../src/decompiler.cc:414: wabt::Decompiler::Value wabt::Decompiler::DecompileExpr(const wabt::Node &, const wabt::Node *): Assertion `false' failed.
Aborted
```
--- end body ---
