• Clemens Hammacher's avatar
    [wasm] [interpreter] Add stack overflow checks · 701124db
    Clemens Hammacher authored
    Add a limit to the number of nested call frames in the C++ wasm
    interpreter.
    Both the size of the value stack as well as the size of the block stack
    are limited per call frame. Thus, a limit on only the call frame stack
    is enough to limit the overall memory consumption of one interpreter
    instance.
    
    R=ahaas@chromium.org
    BUG=v8:5822
    
    Change-Id: If9f7e547cd1d003bc2ae3c7586ece6b3cf3be587
    Reviewed-on: https://chromium-review.googlesource.com/463486
    Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
    Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#44296}
    701124db
wasm-limits.h 2.02 KB