DescriptionFix sloppy block-scoped function hoisting with nested zones
The sloppy block-scoped function declaration placeholder statements
are held in parser_zone_-allocated hashtables. These hashtables are
not updated when local_zone_s are removed. Therefore, the
NewSloppyBlockFunctionStatement method should allocate
SloppyBlockScopeFunctionStatements in the parser_zone_ to avoid a
use-after-free. Scope fixup code may end up updating something which
is thrown away, but this is a small cost and much simpler than
removing dead hashtable entries later.
R=adamk
LOG=Y
BUG=chromium:537816
Committed: https://crrev.com/eb9deba81545e294e83c6c96ce84d74b4fc9ae52
Cr-Commit-Position: refs/heads/master@{#33185}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Fix other part of allocation #Patch Set 3 : Add a cctest, which crashed with asan on and now passes #
Messages
Total messages: 16 (5 generated)
|