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

Issue 2993173003: Ignore invalid mouse cursor image (Closed)

Created:
3 years, 4 months ago by Hzj_jie
Modified:
3 years, 4 months ago
Reviewers:
Jamie
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Ignore invalid mouse cursor image A crash has been randomly detected across different versions. The NSImage crashes the binary in its lockFocusFlipped() function. The suspicious issue is that NSCursor::image() returns an invalid NSImage. BUG=chromium:752036 Review-Url: https://codereview.webrtc.org/2993173003 Cr-Commit-Position: refs/heads/master@{#19273} Committed: https://chromium.googlesource.com/external/webrtc/+/f50fda9534563885ab080ae18c2540a0f5b930bc

Patch Set 1 #

Total comments: 2

Patch Set 2 : Resolve review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M webrtc/modules/desktop_capture/mouse_cursor_monitor_mac.mm View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (12 generated)
Hzj_jie
3 years, 4 months ago (2017-08-07 20:27:51 UTC) #4
Jamie
https://codereview.webrtc.org/2993173003/diff/1/webrtc/modules/desktop_capture/mouse_cursor_monitor_mac.mm File webrtc/modules/desktop_capture/mouse_cursor_monitor_mac.mm (right): https://codereview.webrtc.org/2993173003/diff/1/webrtc/modules/desktop_capture/mouse_cursor_monitor_mac.mm#newcode259 webrtc/modules/desktop_capture/mouse_cursor_monitor_mac.mm:259: if (!nsimage.isValid) { According to https://developer.apple.com/documentation/appkit/nscursor/1527062-image?language=objc, this will return ...
3 years, 4 months ago (2017-08-07 21:49:35 UTC) #7
Hzj_jie
https://codereview.webrtc.org/2993173003/diff/1/webrtc/modules/desktop_capture/mouse_cursor_monitor_mac.mm File webrtc/modules/desktop_capture/mouse_cursor_monitor_mac.mm (right): https://codereview.webrtc.org/2993173003/diff/1/webrtc/modules/desktop_capture/mouse_cursor_monitor_mac.mm#newcode259 webrtc/modules/desktop_capture/mouse_cursor_monitor_mac.mm:259: if (!nsimage.isValid) { On 2017/08/07 21:49:34, Jamie wrote: > ...
3 years, 4 months ago (2017-08-07 23:22:33 UTC) #10
Jamie
lgtm
3 years, 4 months ago (2017-08-08 17:01:10 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2993173003/20001
3 years, 4 months ago (2017-08-08 17:32:21 UTC) #15
commit-bot: I haz the power
3 years, 4 months ago (2017-08-08 17:35:18 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/external/webrtc/+/f50fda9534563885ab080ae18...

Powered by Google App Engine
This is Rietveld 408576698