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

Issue 2227083003: Fix crash in ui::ClipboardMac::ReadAvailableTypes. (Closed)

Created:
4 years, 4 months ago by erikchen
Modified:
4 years, 4 months ago
Reviewers:
dcheng, ccameron
CC:
chromium-reviews, dcheng
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix crash in ui::ClipboardMac::ReadAvailableTypes. +[NSPasteboard generalPasteboard] has always been able to return nil if the common pasteboard storage area is full. In macOS 10.12, +[NSImage canInitWithPasteboard:] will segfault if passed a nil pasteboard. This CL adds the appropriate conditionals. BUG=630543 Committed: https://crrev.com/a1bf19009e91a8356d3371c457f87abc66a11c2d Cr-Commit-Position: refs/heads/master@{#411081}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Comments from dcheng. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -7 lines) Patch
M ui/base/clipboard/clipboard_mac.mm View 1 3 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 15 (8 generated)
erikchen
ccameron: Please review.
4 years, 4 months ago (2016-08-09 23:14:12 UTC) #3
dcheng
https://codereview.chromium.org/2227083003/diff/1/ui/base/clipboard/clipboard_mac.mm File ui/base/clipboard/clipboard_mac.mm (right): https://codereview.chromium.org/2227083003/diff/1/ui/base/clipboard/clipboard_mac.mm#newcode353 ui/base/clipboard/clipboard_mac.mm:353: if (!pb) How come this one needs a null ...
4 years, 4 months ago (2016-08-10 14:28:34 UTC) #8
erikchen
https://codereview.chromium.org/2227083003/diff/1/ui/base/clipboard/clipboard_mac.mm File ui/base/clipboard/clipboard_mac.mm (right): https://codereview.chromium.org/2227083003/diff/1/ui/base/clipboard/clipboard_mac.mm#newcode353 ui/base/clipboard/clipboard_mac.mm:353: if (!pb) On 2016/08/10 14:28:34, dcheng (OOO Aug 1 ...
4 years, 4 months ago (2016-08-10 16:35:59 UTC) #9
ccameron
lgtm
4 years, 4 months ago (2016-08-10 16:41:49 UTC) #10
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/2227083003/20001
4 years, 4 months ago (2016-08-10 16:42:47 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-10 17:51:05 UTC) #13
commit-bot: I haz the power
4 years, 4 months ago (2016-08-10 17:54:18 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a1bf19009e91a8356d3371c457f87abc66a11c2d
Cr-Commit-Position: refs/heads/master@{#411081}

Powered by Google App Engine
This is Rietveld 408576698