Bluetooth: Check buffer length in GATT rsp functions

Add length checks local to the parsing function. This removes the need
for a separate data validation step.

Signed-off-by: Aleksander Wasaznik <aleksander.wasaznik@nordicsemi.no>
(cherry picked from commit 3eeb8f8d18d02962e0a842e46ad247648f84fa41)
1 file changed