|
|
Created:
4 years, 3 months ago by puthik_chromium Modified:
4 years, 3 months ago CC:
chromium-reviews, scheib+watch_chromium.org, ortuno+watch_chromium.org, Miao, Sameer Nanda Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
Descriptiondevice/bluetooth: Fix Interger type for DBus message construction
When dbus::AppendValueDataAsVariant encounter with an integer type.
It always assume that it is a signed integer 32-bit. This would make
SDP record creation fail in BlueZ as correct type and signed for
integer type is expected.
This CL properly read integer data from base::Value and send it to
BlueZ with the correct type.
BUG=b:29314637
TEST=Bluez does not crash when call CreateServiceRecord
Committed: https://crrev.com/2d7cfc0777b0b222c938550439832c100516ada3
Cr-Commit-Position: refs/heads/master@{#415239}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Use append varientOf... #
Total comments: 2
Patch Set 3 : Add todo #Messages
Total messages: 26 (17 generated)
puthik@chromium.org changed reviewers: + steel@chromium.org
steel, Please review fyi: mcchou, snanda
The CQ bit was checked by puthik@chromium.org to run a CQ dry run
Description was changed from ========== device/bluetooth: Fix DBus message construction of CreateServiceRecord method When dbus::AppendValueDataAsVariant encounter with an integer type. It always assume that it is a signed integer 32-bit. This would make SDP record creation fail in BlueZ as correct type and signed for integer type is expected. This CL properly read integer data from base::Value and send it to BlueZ with the correct type. BUG=b:29314637 TEST=Bluez does not crash when call CreateServiceRecord ========== to ========== device/bluetooth: Fix Interger type for DBus message construction When dbus::AppendValueDataAsVariant encounter with an integer type. It always assume that it is a signed integer 32-bit. This would make SDP record creation fail in BlueZ as correct type and signed for integer type is expected. This CL properly read integer data from base::Value and send it to BlueZ with the correct type. BUG=b:29314637 TEST=Bluez does not crash when call CreateServiceRecord ==========
The CQ bit was checked by puthik@chromium.org to run a CQ dry run
mcchou@chromium.org changed reviewers: + mcchou@chromium.org
lgtm
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2288823003/diff/1/device/bluetooth/dbus/bluet... File device/bluetooth/dbus/bluetooth_adapter_client.cc (right): https://codereview.chromium.org/2288823003/diff/1/device/bluetooth/dbus/bluet... device/bluetooth/dbus/bluetooth_adapter_client.cc:38: writer->OpenVariant(std::string(1, dbus::Message::DataType::BYTE), Instead of doing OpenVariant, then Append and CloseContainer, maybe just use AppendVariantOfUint32, etc?
https://codereview.chromium.org/2288823003/diff/1/device/bluetooth/dbus/bluet... File device/bluetooth/dbus/bluetooth_adapter_client.cc (right): https://codereview.chromium.org/2288823003/diff/1/device/bluetooth/dbus/bluet... device/bluetooth/dbus/bluetooth_adapter_client.cc:38: writer->OpenVariant(std::string(1, dbus::Message::DataType::BYTE), On 2016/08/29 22:00:29, Rahul Chaturvedi wrote: > Instead of doing OpenVariant, then Append and CloseContainer, maybe just use > AppendVariantOfUint32, etc? Done. Forgot that we have those API.
The CQ bit was checked by puthik@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm https://codereview.chromium.org/2288823003/diff/20001/device/bluetooth/dbus/b... File device/bluetooth/dbus/bluetooth_adapter_client.cc (right): https://codereview.chromium.org/2288823003/diff/20001/device/bluetooth/dbus/b... device/bluetooth/dbus/bluetooth_adapter_client.cc:28: void WriteNumberAttribute(dbus::MessageWriter* writer, Nit: Add a TODO(rkc) here to find a better way to do this.
The CQ bit was checked by puthik@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from mcchou@chromium.org Link to the patchset: https://codereview.chromium.org/2288823003/#ps20001 (title: "Use append varientOf...")
The CQ bit was unchecked by puthik@chromium.org
https://codereview.chromium.org/2288823003/diff/20001/device/bluetooth/dbus/b... File device/bluetooth/dbus/bluetooth_adapter_client.cc (right): https://codereview.chromium.org/2288823003/diff/20001/device/bluetooth/dbus/b... device/bluetooth/dbus/bluetooth_adapter_client.cc:28: void WriteNumberAttribute(dbus::MessageWriter* writer, On 2016/08/30 05:35:37, Rahul Chaturvedi wrote: > Nit: Add a TODO(rkc) here to find a better way to do this. Done.
The CQ bit was checked by puthik@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from mcchou@chromium.org, steel@chromium.org Link to the patchset: https://codereview.chromium.org/2288823003/#ps40001 (title: "Add todo")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== device/bluetooth: Fix Interger type for DBus message construction When dbus::AppendValueDataAsVariant encounter with an integer type. It always assume that it is a signed integer 32-bit. This would make SDP record creation fail in BlueZ as correct type and signed for integer type is expected. This CL properly read integer data from base::Value and send it to BlueZ with the correct type. BUG=b:29314637 TEST=Bluez does not crash when call CreateServiceRecord ========== to ========== device/bluetooth: Fix Interger type for DBus message construction When dbus::AppendValueDataAsVariant encounter with an integer type. It always assume that it is a signed integer 32-bit. This would make SDP record creation fail in BlueZ as correct type and signed for integer type is expected. This CL properly read integer data from base::Value and send it to BlueZ with the correct type. BUG=b:29314637 TEST=Bluez does not crash when call CreateServiceRecord ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Description was changed from ========== device/bluetooth: Fix Interger type for DBus message construction When dbus::AppendValueDataAsVariant encounter with an integer type. It always assume that it is a signed integer 32-bit. This would make SDP record creation fail in BlueZ as correct type and signed for integer type is expected. This CL properly read integer data from base::Value and send it to BlueZ with the correct type. BUG=b:29314637 TEST=Bluez does not crash when call CreateServiceRecord ========== to ========== device/bluetooth: Fix Interger type for DBus message construction When dbus::AppendValueDataAsVariant encounter with an integer type. It always assume that it is a signed integer 32-bit. This would make SDP record creation fail in BlueZ as correct type and signed for integer type is expected. This CL properly read integer data from base::Value and send it to BlueZ with the correct type. BUG=b:29314637 TEST=Bluez does not crash when call CreateServiceRecord Committed: https://crrev.com/2d7cfc0777b0b222c938550439832c100516ada3 Cr-Commit-Position: refs/heads/master@{#415239} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/2d7cfc0777b0b222c938550439832c100516ada3 Cr-Commit-Position: refs/heads/master@{#415239} |