unit: Fix fsanitize-address-use-after-scope with GCC 9
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 11 Jan 2019 13:16:17 +0000 (10:16 -0300)
committerhimanshu <h.himanshu@samsung.com>
Wed, 22 Jan 2020 08:55:26 +0000 (14:25 +0530)
commit47be48a66121b14a6eb62bb3f7ab2ea51a68aa09
treebf3e953b5e338713441887dea346a3127f2793e7
parente4c22928c98b6077530b94fdfcf1360a095f3631
unit: Fix fsanitize-address-use-after-scope with GCC 9

Raw data payload must be copied since the declaration goes out of
scope:

Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=202213

Change-Id: I33aa4edf5f2cac3f8d0a7995027be36d10ff8464
Signed-off-by: himanshu <h.himanshu@samsung.com>
unit/test-avctp.c
unit/test-avdtp.c
unit/test-avrcp.c
unit/test-gatt.c
unit/test-hfp.c
unit/test-hog.c
unit/test-sdp.c