Files
wasmtime/crates
Alex Crichton 66025636fd Remove a layer of recursion in adapter compilation (#4657)
In #4640 a feature was added to adapter modules that whenever
translation goes through memory it instead goes through a helper
function as opposed to inlining it directly. The generation of the
helper function happened recursively at compile time, however, and sure
enough oss-fuzz has found an input which blows the host stack at compile
time.

This commit removes the compile-time recursion from the adapter compiler
when translating these helper functions by deferring the translation to
a worklist which is processed after the original function is translated.
This makes the stack-based recursion instead heap-based, removing the
stack overflow.
2022-08-09 12:59:53 -05:00
..
2022-07-28 18:01:03 +00:00
2022-08-04 20:02:19 -05:00
2022-08-04 20:02:19 -05:00
2022-08-04 20:02:19 -05:00
2022-08-04 20:02:19 -05:00
2022-08-04 20:02:19 -05:00
2022-08-04 20:02:19 -05:00
2022-08-04 20:02:19 -05:00
2022-08-04 20:02:19 -05:00
2022-08-04 20:02:19 -05:00