Remove unsafe buffer patterns in display/win and gl_surface_egl [chromium/src : main]

1 view
Skip to first unread message

Lloyd Huang (Gerrit)

unread,
Apr 16, 2026, 2:17:05 AM (14 days ago) Apr 16
to Mitsuru Oshima, Chromium LUCI CQ, chromium...@chromium.org, ozone-...@chromium.org, roblia...@chromium.org
Attention needed from Mitsuru Oshima

Lloyd Huang voted and added 1 comment

Votes added by Lloyd Huang

Commit-Queue+0

1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Lloyd Huang . resolved

Hi Mitsuru. PTAL.

Open in Gerrit

Related details

Attention is currently required from:
  • Mitsuru Oshima
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I494b01873e7fd0a9a62ea139e223424ca9b141dc
Gerrit-Change-Number: 7765659
Gerrit-PatchSet: 1
Gerrit-Owner: Lloyd Huang <bzk...@gmail.com>
Gerrit-Reviewer: Lloyd Huang <bzk...@gmail.com>
Gerrit-Reviewer: Mitsuru Oshima <osh...@chromium.org>
Gerrit-Attention: Mitsuru Oshima <osh...@chromium.org>
Gerrit-Comment-Date: Thu, 16 Apr 2026 06:16:53 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Lloyd Huang (Gerrit)

unread,
Apr 16, 2026, 2:17:40 AM (14 days ago) Apr 16
to Mitsuru Oshima, Chromium LUCI CQ, chromium...@chromium.org, ozone-...@chromium.org, roblia...@chromium.org
Attention needed from Mitsuru Oshima

Lloyd Huang added 1 comment

Patchset-level comments
Lloyd Huang . resolved

Hi Mitsuru. PTAL.

Lloyd Huang

With this CL and several recent related CLs, most of the UNSAFE_TODO
usages in ui/ that were practical to convert on Windows non-test code have
now been addressed.

The remaining UNSAFE_TODO cleanups are primarily in macOS- and
Linux-related codepaths and in test code, and I plan to handle those in
follow-up CLs.

Open in Gerrit

Related details

Attention is currently required from:
  • Mitsuru Oshima
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I494b01873e7fd0a9a62ea139e223424ca9b141dc
Gerrit-Change-Number: 7765659
Gerrit-PatchSet: 1
Gerrit-Owner: Lloyd Huang <bzk...@gmail.com>
Gerrit-Reviewer: Lloyd Huang <bzk...@gmail.com>
Gerrit-Reviewer: Mitsuru Oshima <osh...@chromium.org>
Gerrit-Attention: Mitsuru Oshima <osh...@chromium.org>
Gerrit-Comment-Date: Thu, 16 Apr 2026 06:17:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Lloyd Huang <bzk...@gmail.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Mitsuru Oshima (Gerrit)

unread,
Apr 16, 2026, 6:19:16 PM (13 days ago) Apr 16
to Lloyd Huang, Kurt Catti-Schmidt, Chromium LUCI CQ, chromium...@chromium.org, ozone-...@chromium.org, roblia...@chromium.org
Attention needed from Kurt Catti-Schmidt and Lloyd Huang

Mitsuru Oshima added 1 comment

Patchset-level comments
Mitsuru Oshima . resolved

kschmi@ -> ui/display/win change

Open in Gerrit

Related details

Attention is currently required from:
  • Kurt Catti-Schmidt
  • Lloyd Huang
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I494b01873e7fd0a9a62ea139e223424ca9b141dc
Gerrit-Change-Number: 7765659
Gerrit-PatchSet: 1
Gerrit-Owner: Lloyd Huang <bzk...@gmail.com>
Gerrit-Reviewer: Kurt Catti-Schmidt <ksc...@microsoft.com>
Gerrit-Reviewer: Lloyd Huang <bzk...@gmail.com>
Gerrit-Reviewer: Mitsuru Oshima <osh...@chromium.org>
Gerrit-Attention: Kurt Catti-Schmidt <ksc...@microsoft.com>
Gerrit-Attention: Lloyd Huang <bzk...@gmail.com>
Gerrit-Comment-Date: Thu, 16 Apr 2026 22:19:06 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Kurt Catti-Schmidt (Gerrit)

unread,
Apr 16, 2026, 6:52:06 PM (13 days ago) Apr 16
to Lloyd Huang, Mitsuru Oshima, Chromium LUCI CQ, chromium...@chromium.org, ozone-...@chromium.org, roblia...@chromium.org
Attention needed from Lloyd Huang

Kurt Catti-Schmidt added 2 comments

File ui/display/win/audio_edid_scan.cc
Line 85, Patchset 1 (Latest): absl::Cleanup release_scoped_array(
[&scoped_array]() { (void)scoped_array.Release(); });
Kurt Catti-Schmidt . unresolved

This shouldn't be necessary - the `ScopedSafearray` destructor will handle releasing the array

File ui/gl/gl_surface_egl.cc
Line 694, Patchset 1 (Latest): for (size_t i = 1; i < tracePairs.size(); i++) {
Kurt Catti-Schmidt . unresolved

Nit: Google C++ coding guidelines recommend `++i`: https://google.github.io/styleguide/cppguide.html#Preincrement_and_Predecrement

(I realize this was already there before this change, but you might as well fix it)

Open in Gerrit

Related details

Attention is currently required from:
  • Lloyd Huang
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I494b01873e7fd0a9a62ea139e223424ca9b141dc
    Gerrit-Change-Number: 7765659
    Gerrit-PatchSet: 1
    Gerrit-Owner: Lloyd Huang <bzk...@gmail.com>
    Gerrit-Reviewer: Kurt Catti-Schmidt <ksc...@microsoft.com>
    Gerrit-Reviewer: Lloyd Huang <bzk...@gmail.com>
    Gerrit-Reviewer: Mitsuru Oshima <osh...@chromium.org>
    Gerrit-Attention: Lloyd Huang <bzk...@gmail.com>
    Gerrit-Comment-Date: Thu, 16 Apr 2026 22:51:55 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Lloyd Huang (Gerrit)

    unread,
    Apr 16, 2026, 10:41:42 PM (13 days ago) Apr 16
    to Kurt Catti-Schmidt, Mitsuru Oshima, Chromium LUCI CQ, chromium...@chromium.org, ozone-...@chromium.org, roblia...@chromium.org
    Attention needed from Kurt Catti-Schmidt

    Lloyd Huang added 1 comment

    File ui/display/win/audio_edid_scan.cc
    Line 85, Patchset 1 (Latest): absl::Cleanup release_scoped_array(
    [&scoped_array]() { (void)scoped_array.Release(); });
    Kurt Catti-Schmidt . resolved

    This shouldn't be necessary - the `ScopedSafearray` destructor will handle releasing the array

    Lloyd Huang

    `Release()` here is not an eager free. `V_ARRAY(block_content.ptr())` gives a SAFEARRAY that is still owned by `block_content`; `ScopedSafearray` is only being used as a temporary RAII wrapper so we can call `CreateLockScope()` safely.

    The explicit `Release()` only drops `ScopedSafearray` ownership before its destructor runs. The actual destruction still happens later when `block_content` is cleared.

    Without the manual `Release()`, `scoped_array` would call `SafeArrayDestroy()` in its destructor and leave `block_content` holding a dangling `parray`. When `block_content` is then destroyed, `VariantClear()` would try to destroy the same SAFEARRAY again. In practice that is a double-destroy.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Kurt Catti-Schmidt
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I494b01873e7fd0a9a62ea139e223424ca9b141dc
    Gerrit-Change-Number: 7765659
    Gerrit-PatchSet: 1
    Gerrit-Owner: Lloyd Huang <bzk...@gmail.com>
    Gerrit-Reviewer: Kurt Catti-Schmidt <ksc...@microsoft.com>
    Gerrit-Reviewer: Lloyd Huang <bzk...@gmail.com>
    Gerrit-Reviewer: Mitsuru Oshima <osh...@chromium.org>
    Gerrit-Attention: Kurt Catti-Schmidt <ksc...@microsoft.com>
    Gerrit-Comment-Date: Fri, 17 Apr 2026 02:41:30 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Kurt Catti-Schmidt <ksc...@microsoft.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Lloyd Huang (Gerrit)

    unread,
    Apr 16, 2026, 10:46:44 PM (13 days ago) Apr 16
    to Kurt Catti-Schmidt, Mitsuru Oshima, Chromium LUCI CQ, chromium...@chromium.org, ozone-...@chromium.org, roblia...@chromium.org
    Attention needed from Kurt Catti-Schmidt

    Lloyd Huang added 1 comment

    File ui/gl/gl_surface_egl.cc
    Line 694, Patchset 1: for (size_t i = 1; i < tracePairs.size(); i++) {
    Kurt Catti-Schmidt . resolved

    Nit: Google C++ coding guidelines recommend `++i`: https://google.github.io/styleguide/cppguide.html#Preincrement_and_Predecrement

    (I realize this was already there before this change, but you might as well fix it)

    Lloyd Huang

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Kurt Catti-Schmidt
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I494b01873e7fd0a9a62ea139e223424ca9b141dc
      Gerrit-Change-Number: 7765659
      Gerrit-PatchSet: 2
      Gerrit-Owner: Lloyd Huang <bzk...@gmail.com>
      Gerrit-Reviewer: Kurt Catti-Schmidt <ksc...@microsoft.com>
      Gerrit-Reviewer: Lloyd Huang <bzk...@gmail.com>
      Gerrit-Reviewer: Mitsuru Oshima <osh...@chromium.org>
      Gerrit-Attention: Kurt Catti-Schmidt <ksc...@microsoft.com>
      Gerrit-Comment-Date: Fri, 17 Apr 2026 02:46:36 +0000
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Kurt Catti-Schmidt (Gerrit)

      unread,
      Apr 17, 2026, 11:49:18 AM (12 days ago) Apr 17
      to Lloyd Huang, Mitsuru Oshima, Chromium LUCI CQ, chromium...@chromium.org, ozone-...@chromium.org, roblia...@chromium.org
      Attention needed from Lloyd Huang

      Kurt Catti-Schmidt added 1 comment

      File ui/display/win/audio_edid_scan.cc
      Line 85, Patchset 1: absl::Cleanup release_scoped_array(
      [&scoped_array]() { (void)scoped_array.Release(); });
      Kurt Catti-Schmidt . unresolved

      This shouldn't be necessary - the `ScopedSafearray` destructor will handle releasing the array

      Lloyd Huang

      `Release()` here is not an eager free. `V_ARRAY(block_content.ptr())` gives a SAFEARRAY that is still owned by `block_content`; `ScopedSafearray` is only being used as a temporary RAII wrapper so we can call `CreateLockScope()` safely.

      The explicit `Release()` only drops `ScopedSafearray` ownership before its destructor runs. The actual destruction still happens later when `block_content` is cleared.

      Without the manual `Release()`, `scoped_array` would call `SafeArrayDestroy()` in its destructor and leave `block_content` holding a dangling `parray`. When `block_content` is then destroyed, `VariantClear()` would try to destroy the same SAFEARRAY again. In practice that is a double-destroy.

      Kurt Catti-Schmidt

      Can this `base::win::ScopedSafearray` be moved up to replace `SAFEARRAY* array` entirely, and would that remove the need for the manual release?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Lloyd Huang
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement is not satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        • requirement is not satisfiedReview-Enforcement
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I494b01873e7fd0a9a62ea139e223424ca9b141dc
        Gerrit-Change-Number: 7765659
        Gerrit-PatchSet: 2
        Gerrit-Owner: Lloyd Huang <bzk...@gmail.com>
        Gerrit-Reviewer: Kurt Catti-Schmidt <ksc...@microsoft.com>
        Gerrit-Reviewer: Lloyd Huang <bzk...@gmail.com>
        Gerrit-Reviewer: Mitsuru Oshima <osh...@chromium.org>
        Gerrit-Attention: Lloyd Huang <bzk...@gmail.com>
        Gerrit-Comment-Date: Fri, 17 Apr 2026 15:49:05 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Kurt Catti-Schmidt <ksc...@microsoft.com>
        Comment-In-Reply-To: Lloyd Huang <bzk...@gmail.com>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Lloyd Huang (Gerrit)

        unread,
        Apr 20, 2026, 2:37:29 AM (10 days ago) Apr 20
        to Kurt Catti-Schmidt, Mitsuru Oshima, Chromium LUCI CQ, chromium...@chromium.org, ozone-...@chromium.org, roblia...@chromium.org
        Attention needed from Kurt Catti-Schmidt

        Lloyd Huang added 1 comment

        File ui/display/win/audio_edid_scan.cc
        Line 85, Patchset 1: absl::Cleanup release_scoped_array(
        [&scoped_array]() { (void)scoped_array.Release(); });
        Kurt Catti-Schmidt . resolved

        This shouldn't be necessary - the `ScopedSafearray` destructor will handle releasing the array

        Lloyd Huang

        `Release()` here is not an eager free. `V_ARRAY(block_content.ptr())` gives a SAFEARRAY that is still owned by `block_content`; `ScopedSafearray` is only being used as a temporary RAII wrapper so we can call `CreateLockScope()` safely.

        The explicit `Release()` only drops `ScopedSafearray` ownership before its destructor runs. The actual destruction still happens later when `block_content` is cleared.

        Without the manual `Release()`, `scoped_array` would call `SafeArrayDestroy()` in its destructor and leave `block_content` holding a dangling `parray`. When `block_content` is then destroyed, `VariantClear()` would try to destroy the same SAFEARRAY again. In practice that is a double-destroy.

        Kurt Catti-Schmidt

        Can this `base::win::ScopedSafearray` be moved up to replace `SAFEARRAY* array` entirely, and would that remove the need for the manual release?

        Lloyd Huang

        Updated to move ownership of `BlockContent`’s `SAFEARRAY` into `base::win::ScopedSafearray` via `block_content.Release().parray`.
        That removes the temporary dual-ownership pattern and the manual `Release()` cleanup.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Kurt Catti-Schmidt
        Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement is not satisfiedCode-Owners
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I494b01873e7fd0a9a62ea139e223424ca9b141dc
          Gerrit-Change-Number: 7765659
          Gerrit-PatchSet: 3
          Gerrit-Owner: Lloyd Huang <bzk...@gmail.com>
          Gerrit-Reviewer: Kurt Catti-Schmidt <ksc...@microsoft.com>
          Gerrit-Reviewer: Lloyd Huang <bzk...@gmail.com>
          Gerrit-Reviewer: Mitsuru Oshima <osh...@chromium.org>
          Gerrit-Attention: Kurt Catti-Schmidt <ksc...@microsoft.com>
          Gerrit-Comment-Date: Mon, 20 Apr 2026 06:37:20 +0000
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Kurt Catti-Schmidt (Gerrit)

          unread,
          Apr 22, 2026, 12:38:02 PM (7 days ago) Apr 22
          to Lloyd Huang, Mitsuru Oshima, Chromium LUCI CQ, chromium...@chromium.org, ozone-...@chromium.org, roblia...@chromium.org
          Attention needed from Lloyd Huang

          Kurt Catti-Schmidt voted and added 1 comment

          Votes added by Kurt Catti-Schmidt

          Code-Review+1

          1 comment

          Patchset-level comments
          File-level comment, Patchset 3 (Latest):
          Kurt Catti-Schmidt . resolved

          Latest version LGTM, thank you! You'll still need a review from @osh...@chromium.org for OWNERS approval.

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Lloyd Huang
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement is not satisfiedCode-Owners
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I494b01873e7fd0a9a62ea139e223424ca9b141dc
          Gerrit-Change-Number: 7765659
          Gerrit-PatchSet: 3
          Gerrit-Owner: Lloyd Huang <bzk...@gmail.com>
          Gerrit-Reviewer: Kurt Catti-Schmidt <ksc...@microsoft.com>
          Gerrit-Reviewer: Lloyd Huang <bzk...@gmail.com>
          Gerrit-Reviewer: Mitsuru Oshima <osh...@chromium.org>
          Gerrit-Attention: Lloyd Huang <bzk...@gmail.com>
          Gerrit-Comment-Date: Wed, 22 Apr 2026 16:37:56 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Mitsuru Oshima (Gerrit)

          unread,
          Apr 23, 2026, 1:31:28 AM (7 days ago) Apr 23
          to Lloyd Huang, Kurt Catti-Schmidt, Chromium LUCI CQ, chromium...@chromium.org, ozone-...@chromium.org, roblia...@chromium.org
          Attention needed from Lloyd Huang

          Mitsuru Oshima voted Code-Review+1

          Code-Review+1
          Open in Gerrit

          Related details

          Attention is currently required from:
          • Lloyd Huang
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement satisfiedCode-Owners
          • requirement satisfiedCode-Review
          • requirement satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I494b01873e7fd0a9a62ea139e223424ca9b141dc
          Gerrit-Change-Number: 7765659
          Gerrit-PatchSet: 3
          Gerrit-Owner: Lloyd Huang <bzk...@gmail.com>
          Gerrit-Reviewer: Kurt Catti-Schmidt <ksc...@microsoft.com>
          Gerrit-Reviewer: Lloyd Huang <bzk...@gmail.com>
          Gerrit-Reviewer: Mitsuru Oshima <osh...@chromium.org>
          Gerrit-Attention: Lloyd Huang <bzk...@gmail.com>
          Gerrit-Comment-Date: Thu, 23 Apr 2026 05:31:19 +0000
          Gerrit-HasComments: No
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          open
          diffy

          Lloyd Huang (Gerrit)

          unread,
          Apr 23, 2026, 2:25:25 AM (7 days ago) Apr 23
          to Mitsuru Oshima, Kurt Catti-Schmidt, Chromium LUCI CQ, chromium...@chromium.org, ozone-...@chromium.org, roblia...@chromium.org

          Lloyd Huang voted Commit-Queue+2

          Commit-Queue+2
          Open in Gerrit

          Related details

          Attention set is empty
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement satisfiedCode-Owners
          • requirement satisfiedCode-Review
          • requirement satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I494b01873e7fd0a9a62ea139e223424ca9b141dc
          Gerrit-Change-Number: 7765659
          Gerrit-PatchSet: 3
          Gerrit-Owner: Lloyd Huang <bzk...@gmail.com>
          Gerrit-Reviewer: Kurt Catti-Schmidt <ksc...@microsoft.com>
          Gerrit-Reviewer: Lloyd Huang <bzk...@gmail.com>
          Gerrit-Reviewer: Mitsuru Oshima <osh...@chromium.org>
          Gerrit-Comment-Date: Thu, 23 Apr 2026 06:25:10 +0000
          Gerrit-HasComments: No
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          open
          diffy

          Chromium LUCI CQ (Gerrit)

          unread,
          Apr 23, 2026, 4:04:49 AM (7 days ago) Apr 23
          to Lloyd Huang, Mitsuru Oshima, Kurt Catti-Schmidt, chromium...@chromium.org, ozone-...@chromium.org, roblia...@chromium.org

          Chromium LUCI CQ submitted the change

          Change information

          Commit message:
          Remove unsafe buffer patterns in display/win and gl_surface_egl

          Replace raw SAFEARRAY access in audio_edid_scan.cc with
          ScopedSafearray/LockScope, value-initialize MONITORINFOEX in
          color_profile_reader.cc, and switch the pending trace symbol handling in
          gl_surface_egl.cc to std::string_view.
          Bug: 40285824
          Change-Id: I494b01873e7fd0a9a62ea139e223424ca9b141dc
          Reviewed-by: Kurt Catti-Schmidt <ksc...@microsoft.com>
          Commit-Queue: Lloyd Huang <bzk...@gmail.com>
          Reviewed-by: Mitsuru Oshima <osh...@chromium.org>
          Cr-Commit-Position: refs/heads/main@{#1619366}
          Files:
          • M ui/display/win/audio_edid_scan.cc
          • M ui/display/win/color_profile_reader.cc
          • M ui/gl/gl_surface_egl.cc
          Change size: M
          Delta: 3 files changed, 29 insertions(+), 22 deletions(-)
          Branch: refs/heads/main
          Submit Requirements:
          • requirement satisfiedCode-Review: +1 by Mitsuru Oshima, +1 by Kurt Catti-Schmidt
          Open in Gerrit
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: merged
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I494b01873e7fd0a9a62ea139e223424ca9b141dc
          Gerrit-Change-Number: 7765659
          Gerrit-PatchSet: 4
          Gerrit-Owner: Lloyd Huang <bzk...@gmail.com>
          Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
          Gerrit-Reviewer: Kurt Catti-Schmidt <ksc...@microsoft.com>
          Gerrit-Reviewer: Lloyd Huang <bzk...@gmail.com>
          Gerrit-Reviewer: Mitsuru Oshima <osh...@chromium.org>
          open
          diffy
          satisfied_requirement
          Reply all
          Reply to author
          Forward
          0 new messages