Skip to content

Commit 8b6c2cc

Browse files
isheludkomibrunin
authored andcommitted
[Backport] CVE-2021-30536: Out of bounds read in V8
Cherry-pick of patch originally reviewed on https://chromium-review.googlesource.com/c/v8/v8/+/2800111: Create internal frame before throwing StackOverflow ... in CallBoundFunction builtin. Bug: chromium:1194358 Change-Id: I8ddd4fff39cf399d4af332cff8eddc40e217cfdb Auto-Submit: Igor Sheludko <ishell@chromium.org> Reviewed-by: Leszek Swirski <leszeks@chromium.org> Commit-Queue: Igor Sheludko <ishell@chromium.org> Cr-Commit-Position: refs/heads/master@{#73775} Reviewed-by: Michal Klocek <michal.klocek@qt.io>
1 parent 5db4492 commit 8b6c2cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

chromium/v8/src/builtins/ia32/builtins-ia32.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2522,6 +2522,7 @@ void Generate_PushBoundArguments(MacroAssembler* masm) {
25222522
__ bind(&stack_overflow);
25232523
{
25242524
FrameScope frame(masm, StackFrame::MANUAL);
2525+
__ EnterFrame(StackFrame::INTERNAL);
25252526
__ CallRuntime(Runtime::kThrowStackOverflow);
25262527
__ int3();
25272528
}

0 commit comments

Comments
 (0)