Searched hist:"69 c043b25f7571052d1357680ffd374b94b01a41" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_ARM-atf/drivers/io/ |
| H A D | io_memmap.c | 69c043b25f7571052d1357680ffd374b94b01a41 Mon Feb 13 13:06:18 UTC 2017 Jeenu Viswambharan <jeenu.viswambharan@arm.com> 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: Jeenu Viswambharan <jeenu.viswambharan@arm.com>
|