Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(975)

Unified Diff: ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.h

Issue 2302053003: ozone: Validate the memory buffer used. (Closed)
Patch Set: . Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.h
diff --git a/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.h b/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.h
index 3582967268071b122334edfa202b770ea8d5014a..4fef3923c0076c04f21fde42feff8e86dd800217 100644
--- a/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.h
+++ b/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.h
@@ -29,9 +29,13 @@ class ClientNativePixmapDmaBuf : public ClientNativePixmap {
void GetStride(int* stride) const override;
private:
- ClientNativePixmapDmaBuf(int dmabuf_fd, const gfx::Size& size, int stride);
+ ClientNativePixmapDmaBuf(int dmabuf_fd,
+ const gfx::Size& size,
+ int stride,
+ size_t map_size);
base::ScopedFD dmabuf_fd_;
+ const size_t map_size_;
const gfx::Size size_;
const int stride_;
void* data_;
« no previous file with comments | « no previous file | ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698