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

Issue 2302053003: ozone: Validate the memory buffer used. (Closed)

Created:
4 years, 3 months ago by sadrul
Modified:
4 years, 3 months ago
Reviewers:
Tom Sepez, rjkroege
CC:
chromium-reviews, kalyank, ozone-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ozone: Validate the memory buffer used. BUG=none Committed: https://crrev.com/35ab4d767861e705756943e5936baf09891fc012 Cr-Commit-Position: refs/heads/master@{#416335}

Patch Set 1 #

Total comments: 2

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -10 lines) Patch
M ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.h View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc View 1 2 3 4 1 chunk +12 lines, -9 lines 0 comments Download

Messages

Total messages: 32 (22 generated)
sadrul
4 years, 3 months ago (2016-09-01 20:20:33 UTC) #3
Tom Sepez
lgtm Thanks. Note there is an IsValid() call if you want to log a better ...
4 years, 3 months ago (2016-09-01 20:23:49 UTC) #5
rjkroege
https://codereview.chromium.org/2302053003/diff/1/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc File ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc (right): https://codereview.chromium.org/2302053003/diff/1/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc#newcode74 ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc:74: data_ = mmap(nullptr, map_size.ValueOrDie(), (PROT_READ | PROT_WRITE), Won't this ...
4 years, 3 months ago (2016-09-01 20:45:06 UTC) #6
sadrul
https://codereview.chromium.org/2302053003/diff/1/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc File ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc (right): https://codereview.chromium.org/2302053003/diff/1/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc#newcode74 ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc:74: data_ = mmap(nullptr, map_size.ValueOrDie(), (PROT_READ | PROT_WRITE), On 2016/09/01 ...
4 years, 3 months ago (2016-09-02 03:00:19 UTC) #13
rjkroege
https://codereview.chromium.org/2302053003/diff/20001/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc File ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc (right): https://codereview.chromium.org/2302053003/diff/20001/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc#newcode74 ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc:74: : dmabuf_fd_(dmabuf_fd), map_size_(map_size), stride_(stride) { Can you retain the ...
4 years, 3 months ago (2016-09-02 19:02:03 UTC) #14
sadrul
https://codereview.chromium.org/2302053003/diff/20001/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc File ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc (right): https://codereview.chromium.org/2302053003/diff/20001/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc#newcode74 ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc:74: : dmabuf_fd_(dmabuf_fd), map_size_(map_size), stride_(stride) { On 2016/09/02 19:02:03, rjkroege ...
4 years, 3 months ago (2016-09-02 19:07:17 UTC) #15
rjkroege
lgtm
4 years, 3 months ago (2016-09-02 19:11:02 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2302053003/80001
4 years, 3 months ago (2016-09-02 20:27:04 UTC) #29
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 3 months ago (2016-09-02 20:31:19 UTC) #30
commit-bot: I haz the power
4 years, 3 months ago (2016-09-02 20:33:05 UTC) #32
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/35ab4d767861e705756943e5936baf09891fc012
Cr-Commit-Position: refs/heads/master@{#416335}

Powered by Google App Engine
This is Rietveld 408576698