media/gpu/vaapiWrapper: Add native pixmap validation [chromium/src : main]

0 views
Skip to first unread message

Hirokazu Honda (Gerrit)

unread,
May 9, 2026, 11:23:33 PM (14 hours ago) May 9
to chromium...@chromium.org, feature-me...@chromium.org, vaapi-...@chromium.org, oshima...@chromium.org, chromeos-gfx-...@google.com, media-cro...@chromium.org, ipc-securi...@chromium.org

Hirokazu Honda has uploaded the change for review

Commit message

media/gpu/vaapiWrapper: Add native pixmap validation

This CL introduces more rigorous validation for plane metadata when
populating VADRMPRIMESurfaceDescriptor:

- Verifying that plane pitch is at least the minimum required stride.
- Ensuring that the plane's memory range (offset + size) stays within
the bounds of the DMA-buf.
Bug: 495819067
Test: webrtc.RTCPeerConnection.*
Change-Id: I5d27d3a21ab692367931406e9c345a4a61ee2bb6

Change diff


Change information

Files:
  • M media/gpu/vaapi/vaapi_wrapper.cc
Change size: M
Delta: 1 file changed, 71 insertions(+), 17 deletions(-)
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: newchange
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I5d27d3a21ab692367931406e9c345a4a61ee2bb6
Gerrit-Change-Number: 7834744
Gerrit-PatchSet: 1
Gerrit-Owner: Hirokazu Honda <hi...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages