Skip to content
Commit 69c043b2 authored by Jeenu Viswambharan's avatar Jeenu Viswambharan
Browse files

Add bounds checking asserts to memmap IO driver



The memmap IO driver doesn't perform bounds check when reading, writing,
or seeking. The onus to vet parameters is on the caller, and this patch
asserts that:

  - non-negative size is specified for for backing memory;

  - valid parameters are passed into the driver for read, write and seek
    operations.

Change-Id: I6518c4065817e640e9e7e39a8a4577655f2680f7
Signed-off-by: default avatarJeenu Viswambharan <jeenu.viswambharan@arm.com>
parent 4d07e782
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