Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix IPC::Connection::sendOutputMessage(IPC::UnixMessage&) Syscall param sendmsg(msg.msg_iov[2]) points to uninitialised byte(s) #2273

Conversation

jameshilliard
Copy link
Contributor

@jameshilliard jameshilliard commented Jul 10, 2022

f4367f2

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

@jameshilliard jameshilliard force-pushed the eng/IPCConnectionsendOutputMessageIPCUnixMessage-Syscall-param-sendmsgmsg-msg_iov2-points-to-uninitialised-bytes branch from 62c1e76 to 4f8abf1 Compare July 10, 2022 20:10
@@ -52,7 +52,7 @@ class UpdateInfo {

// The size of the web view.
WebCore::IntSize viewSize;
float deviceScaleFactor;
float deviceScaleFactor { 0 };
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this not correct?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Normally we'd initialize a scale factor to 1, not 0.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I change that in a new PR? I thought this was getting set elsewhere if used and just needed to be initialized to anything.

Copy link
Contributor

@fujii fujii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fujii fujii added the merge-queue Applied to send a pull request to merge-queue label Jul 10, 2022
…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
@webkit-early-warning-system webkit-early-warning-system force-pushed the eng/IPCConnectionsendOutputMessageIPCUnixMessage-Syscall-param-sendmsgmsg-msg_iov2-points-to-uninitialised-bytes branch from 4f8abf1 to f4367f2 Compare July 10, 2022 22:01
@webkit-commit-queue
Copy link
Collaborator

Committed 252330@main (f4367f2): https://commits.webkit.org/252330@main

Reviewed commits have been landed. Closing PR #2273 and removing active labels.

@webkit-early-warning-system webkit-early-warning-system merged commit f4367f2 into WebKit:main Jul 10, 2022
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Jul 10, 2022
@jameshilliard jameshilliard deleted the eng/IPCConnectionsendOutputMessageIPCUnixMessage-Syscall-param-sendmsgmsg-msg_iov2-points-to-uninitialised-bytes branch July 10, 2022 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants