[Bluetooth][Non-ACR] Fix the crash in GetBondedDevices API (#1644)
authordh79pyun <31202060+dh79pyun@users.noreply.github.com>
Tue, 2 Jun 2020 01:48:57 +0000 (10:48 +0900)
committerGitHub <noreply@github.com>
Tue, 2 Jun 2020 01:48:57 +0000 (10:48 +0900)
commit0b20fd6a0e70a97157d2f83843a5b1c60bb95fbf
treee6b5cf3f125a03116a5329b93154fd31a97a8f52
parentb2bd3e156abc18b2d9b22896e91843827545cc3e
[Bluetooth][Non-ACR] Fix the crash in GetBondedDevices API (#1644)

The manufacture data can be filled without NULL termination.
Because it is the byte array type. So we should define it as
IntPrt instead of string to avoid the buffer overflow.

Exception !!!: System.Runtime.InteropServices.COMException (0x8007007A): The data area passed to a system call is too small.
at System.StubHelpers.ValueClassMarshaler.ConvertToNative(IntPtr dst, IntPtr src, IntPtr pMT, CleanupWorkListElement& pCleanupWorkList)
at Tizen.Network.Bluetooth.BluetoothAdapterImpl.GetBondedDevices()
at Tizen.Network.Bluetooth.BluetoothAdapter.GetBondedDevices()

Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothStructs.cs