Skip to content
Commit 5150195a authored by Matthew Wellings's avatar Matthew Wellings Committed by Katherine Vincent
Browse files

mod/transport: Perform null check before dereferencing 'buffer' pointer



In the function transport_transmit, dereferencing of the 'buffer' pointer
to access member variables was occurring before the check to ensure
the pointer was not null. There was also a missing bounds check to
ensure'size' was not greater than max_payload_size.

In the function transport_respond a call is made to fwk_str_memcpy
passing the 'buffer' pointer as a parameter was made before the check
to ensure the pointer was not null. There was also a missing bounds check
to ensure'size' was not greater than max_payload_size.

This did not cause an issue as there is no code path that leads to these
functions being called with ‘buffer’ set to null.

Signed-off-by: Matthew Wellings's avatarMatthew Wellings <matthew.wellings@arm.com>
parent 793019b9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment