shared/bap: Fixing memory overwrite during ASE Enable Operation
authorAbhay Maheta <abhay.maheshbhai.maheta@intel.com>
Fri, 7 Oct 2022 17:45:17 +0000 (23:15 +0530)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:55 +0000 (14:55 +0530)
commit9477444b440e6b8ab4c84b4b0790b159180d17e4
treeec3c863314dbe2817423c8245d534606a2013ac7
parentc68699123851642b3d695107c1b207de9f97bace
shared/bap: Fixing memory overwrite during ASE Enable Operation

This fixes memory overwrite during ASE Enable operation handling.
It avoids crashing of bluetoothd if metadata of more than sizeo of
size_t is received.

This also fixes storing metadata to stream structure.

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/shared/bap.c