diff options
author | Thomas Lively <tlively@google.com> | 2023-03-13 15:11:06 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-13 13:11:06 -0700 |
commit | 9053486f43d43449118c75c75a146abebcd7d1c4 (patch) | |
tree | 01161e8b53322ffb074f77a3e92045b847d903fe /src/shell-interface.h | |
parent | 831c2f93aa49f6ef4ff7cf33a5b0c7b0757f1cef (diff) | |
download | binaryen-9053486f43d43449118c75c75a146abebcd7d1c4.tar.gz binaryen-9053486f43d43449118c75c75a146abebcd7d1c4.tar.bz2 binaryen-9053486f43d43449118c75c75a146abebcd7d1c4.zip |
Fix fuzzer emitting invalid constant expressions (#5571)
The fuzzer had code to avoid emitting `global.get` of locally defined (i.e.
non-imported) globals in global initializers and data segment offsets, but that
code only handled top-level `global.get` because it predated the extended-const
proposal. Unfortunately this bug went undetected until #5557, which fixed the
validator to make it reject invalid uses of `global.get` in constant
expressions.
Fix the bug so the validator no longer produces invalid modules.
Diffstat (limited to 'src/shell-interface.h')
0 files changed, 0 insertions, 0 deletions