summaryrefslogtreecommitdiff
path: root/src/c-writer.cc
diff options
context:
space:
mode:
authorSoni L. <EnderMoneyMod@gmail.com>2024-10-01 19:56:23 -0300
committerGitHub <noreply@github.com>2024-10-01 15:56:23 -0700
commit84ea5d3e3caa92389cec39825cc79140312f6712 (patch)
tree6df506192ee722bb1bf1e36c9e7192a3e62aa4d3 /src/c-writer.cc
parent790bc0472552d80671bdf99ba7652876c463d526 (diff)
downloadwabt-84ea5d3e3caa92389cec39825cc79140312f6712.tar.gz
wabt-84ea5d3e3caa92389cec39825cc79140312f6712.tar.bz2
wabt-84ea5d3e3caa92389cec39825cc79140312f6712.zip
wasm-interp: Fix catch handlers' value stack sizes (#2478)
Fixes the value stack size of the catch handler. There were two (related) issues here: - The previous code used `func_->locals.size()` as soon as the function was available, but it hadn't processed the function's locals yet, so it was always empty. (This might not matter in practice, as it's only used by the "function-wide catch handler", which just rethrows.) - The previous code didn't take the function's locals into account when computing the value stack height (relative to the function frame) for a try-catch block. So, it would drop the locals when catching an exception. Closes #2476 (Split from #2470 )
Diffstat (limited to 'src/c-writer.cc')
0 files changed, 0 insertions, 0 deletions