Skip to content

Commit

Permalink
Fix IPC::Connection::sendOutputMessage(IPC::UnixMessage&) Syscall par…
Browse files Browse the repository at this point in the history
…am 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
  • Loading branch information
jameshilliard authored and fujii committed Jul 10, 2022
1 parent 7aaa7ee commit f4367f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/WebKit/Shared/UpdateInfo.h
Expand Up @@ -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;
Expand All @@ -65,7 +65,7 @@ class UpdateInfo {
Vector<WebCore::IntRect> 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;
Expand Down

0 comments on commit f4367f2

Please sign in to comment.