Skip to content
Commit 3c441374 authored by Maureen Helm's avatar Maureen Helm Committed by Kumar Gala
Browse files

drivers: gpio: Validate pin number before indexing array in mcux drivers



Validates the gpio pin number before using it to index into a
memory-mapped register array. Otherwise, a user could send a high pin
number and cause an out-of-bounds access.

Signed-off-by: default avatarMaureen Helm <maureen.helm@nxp.com>
parent 43946015
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment