Client side: possible buffer overflow using request handle
Description
On client side, when receiving a response the request handle of the response header is used to identify if the response was expected and has the expected type. Information is stored in a limited size array for which the requestHandle is used as index. The function request_handle_bs__client_validate_response_request_handle
is not checking if the requestHandle is in the expected range before using it to access the array containing information leading to access data outside of the array.
Proposed fix
Before using the request handle as index, check it is in the expected range in request_handle_bs__client_validate_response_request_handle