summaryrefslogtreecommitdiff
path: root/src/compiler-support.h
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2023-03-13 15:11:06 -0500
committerGitHub <noreply@github.com>2023-03-13 13:11:06 -0700
commit9053486f43d43449118c75c75a146abebcd7d1c4 (patch)
tree01161e8b53322ffb074f77a3e92045b847d903fe /src/compiler-support.h
parent831c2f93aa49f6ef4ff7cf33a5b0c7b0757f1cef (diff)
downloadbinaryen-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/compiler-support.h')
0 files changed, 0 insertions, 0 deletions