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

Issue 2350683003: Check if null pointer is provided in DeviceWatcher callbacks (Closed)

Created:
4 years, 3 months ago by Shao-Chuan Lee
Modified:
4 years, 3 months ago
Reviewers:
Takashi Toyoshima
CC:
chromium-reviews, feature-media-reviews_chromium.org, toyoshim+midi_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Check if null pointer is provided in DeviceWatcher callbacks Callbacks from DeviceWatcher events occasionally provide null pointers for device information and handle interfaces. For example, Midi{In,Out}Port.FromIdAsync return null handles in IAsyncOperation results if the requested device is occupied by another application using legacy APIs. DeviceWatcher.Removed event is also observed to provide null IDeviceInformationUpdate pointers, but we are still unable to reproduce the problem. Additional checks in DeviceWatcher callbacks should be added to prevent crashes before shipping this feature as default on Windows 10 hosts. We may also want to collect statistics on this issue in the future. BUG=645403 Committed: https://crrev.com/500c32be9f547a6e4ea818672ed62e34399b1916 Cr-Commit-Position: refs/heads/master@{#419694}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -16 lines) Patch
M media/midi/midi_manager_winrt.cc View 5 chunks +33 lines, -16 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
Shao-Chuan Lee
PTAL Maybe we should file a new bug for this and/or report to Microsoft?
4 years, 3 months ago (2016-09-20 05:35:40 UTC) #2
Takashi Toyoshima
LGTM. Reporting to MS sounds fine, but I don't know how. Can you ask Chrome ...
4 years, 3 months ago (2016-09-20 06:43:41 UTC) #3
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/2350683003/1
4 years, 3 months ago (2016-09-20 06:46:28 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-09-20 08:11:18 UTC) #6
commit-bot: I haz the power
4 years, 3 months ago (2016-09-20 08:14:36 UTC) #8
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/500c32be9f547a6e4ea818672ed62e34399b1916
Cr-Commit-Position: refs/heads/master@{#419694}

Powered by Google App Engine
This is Rietveld 408576698