android/avrcp-lib: Add checks in avrcp_get_item_attributes
android/avrcp-lib: Add checks in avrcp_get_item_attributes

This adds checks for number of attributes is within the valid range and
if the data pointer is valid.

mapfau/bluez,mapfau/bluez,mapfau/bluez,pkarasev3/bluez,pkarasev3/bluez,pstglia/external-bluetooth-bluez,mapfau/bluez,ComputeCycles/bluez,pstglia/external-bluetooth-bluez,silent-snowman/bluez,silent-snowman/bluez,pkarasev3/bluez,ComputeCycles/bluez,silent-snowman/bluez,pstglia/external-bluetooth-bluez,pstglia/external-bluetooth-bluez,pkarasev3/bluez,ComputeCycles/bluez,silent-snowman/bluez,ComputeCycles/bluez