Fix enc_read_resp to respect the buffer size
Fix enc_read_resp to respect the buffer size

When encoding long responses, there could be situations where the
attribute value length could be larger than the buffer size and the
encoder would try to put more data than the space available.

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