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

Unified Diff: device/bluetooth/bluetooth_adapter_profile_chromeos.cc

Issue 997023002: Fix a null-pointer dereference in ChromeOS Bluetooth code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_adapter_profile_chromeos.cc
diff --git a/device/bluetooth/bluetooth_adapter_profile_chromeos.cc b/device/bluetooth/bluetooth_adapter_profile_chromeos.cc
index f8003043d63270a0e4671977f793e243b2e93fa3..207c55c4bad2bd952aba95776ead895cfde3303a 100644
--- a/device/bluetooth/bluetooth_adapter_profile_chromeos.cc
+++ b/device/bluetooth/bluetooth_adapter_profile_chromeos.cc
@@ -28,8 +28,9 @@ void BluetoothAdapterProfileChromeOS::Register(
new BluetoothAdapterProfileChromeOS(uuid));
VLOG(1) << "Registering profile: " << profile->object_path().value();
+ const dbus::ObjectPath& object_path = profile->object_path();
DBusThreadManager::Get()->GetBluetoothProfileManagerClient()->RegisterProfile(
- profile->object_path(),
armansito 2015/03/11 06:48:38 I really don't see how this is a NULL pointer dere
Ilya Sherman 2015/03/11 09:23:54 I agree that it's surprising that unit tests didn'
armansito 2015/03/11 16:44:29 OK, I guess that makes sense. I would elaborate a
armansito 2015/03/11 17:09:24 Also, it's not technically a NULL-pointer derefere
+ object_path,
uuid.canonical_value(),
options,
base::Bind(success_callback, base::Passed(&profile)),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698