From f4367f2cffe45c4514079c73232cf425757ab44e Mon Sep 17 00:00:00 2001 From: James Hilliard Date: Sun, 10 Jul 2022 15:00:23 -0700 Subject: [PATCH] Fix IPC::Connection::sendOutputMessage(IPC::UnixMessage&) Syscall param sendmsg(msg.msg_iov[2]) points to uninitialised byte(s) https://bugs.webkit.org/show_bug.cgi?id=242518 Reviewed by Fujii Hironori. Initialize deviceScaleFactor and updateScaleFactor so that we don't try to encode uninitialized memory. * Source/WebKit/Shared/UpdateInfo.h: Canonical link: https://commits.webkit.org/252330@main --- Source/WebKit/Shared/UpdateInfo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/WebKit/Shared/UpdateInfo.h b/Source/WebKit/Shared/UpdateInfo.h index dbb1be28348c..4494af0813a3 100644 --- a/Source/WebKit/Shared/UpdateInfo.h +++ b/Source/WebKit/Shared/UpdateInfo.h @@ -52,7 +52,7 @@ class UpdateInfo { // The size of the web view. WebCore::IntSize viewSize; - float deviceScaleFactor; + float deviceScaleFactor { 0 }; // The rect and delta to be scrolled. WebCore::IntRect scrollRect; @@ -65,7 +65,7 @@ class UpdateInfo { Vector updateRects; // The page scale factor used to render this update. - float updateScaleFactor; + float updateScaleFactor { 0 }; // The handle of the shareable bitmap containing the updates. Will be null if there are no updates. ShareableBitmap::Handle bitmapHandle;