Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c51f10d330b452e78a39d37e62336c697691dfed
      
https://github.com/WebKit/WebKit/commit/c51f10d330b452e78a39d37e62336c697691dfed
  Author: Nikolas Zimmermann <[email protected]>
  Date:   2025-10-08 (Wed, 08 Oct 2025)

  Changed paths:
    M Source/WebKit/Platform/IPC/glib/ConnectionGLib.cpp

  Log Message:
  -----------
  [GTK][WPE] Fix attachmentInfo lifetime in Connection::sendOutputMessage
https://bugs.webkit.org/show_bug.cgi?id=300378

Reviewed by Carlos Garcia Campos and Adrian Perez de Castro.

Move the attachmentInfo vector declaration outside the conditional
block to ensure proper lifetime. Changed from constructor
initialization to resize() to maintain the same behavior.

The previous implementation (ConnectionUnix), that didn't make use of
glib, did not have the problem, it was accidently introduced during the
migration to ConnectionGLib.

Covered by existing tests, running under valgrind.

* Source/WebKit/Platform/IPC/glib/ConnectionGLib.cpp:
(IPC::Connection::sendOutputMessage):

Canonical link: https://commits.webkit.org/301217@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to