From 055dabc1231f5c2529e9c737534eba48de6e9397 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 21 May 2023 13:19:51 +0200 Subject: [PATCH] LibWeb: Fix unsafe capture of stack variables in main_fetch() --- Userland/Libraries/LibWeb/Fetch/Fetching/Fetching.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/Fetch/Fetching/Fetching.cpp b/Userland/Libraries/LibWeb/Fetch/Fetching/Fetching.cpp index f3fcc8ce64..5f1b837da4 100644 --- a/Userland/Libraries/LibWeb/Fetch/Fetching/Fetching.cpp +++ b/Userland/Libraries/LibWeb/Fetch/Fetching/Fetching.cpp @@ -492,7 +492,7 @@ WebIDL::ExceptionOr>> main_fetch(JS:: } // 3. Let processBody given bytes be these steps: - Infrastructure::Body::ProcessBodyCallback process_body = [&realm, &request, &response, &fetch_params, process_body_error = move(process_body_error)](ByteBuffer bytes) { + Infrastructure::Body::ProcessBodyCallback process_body = [&realm, request, response, &fetch_params, process_body_error = move(process_body_error)](ByteBuffer bytes) { // 1. If bytes do not match request’s integrity metadata, then run processBodyError and abort these steps. if (!TRY_OR_IGNORE(SRI::do_bytes_match_metadata_list(bytes, request->integrity_metadata()))) { process_body_error({});