Skip to content
Commit 608d94b8 authored by Tim Lin's avatar Tim Lin Committed by Benjamin Cabé
Browse files

drivers/gpio: ite: Validate num_pins to prevent untrusted loop bound



Added a build assert to limit num_pins to a maximum allowable value to
prevent potential out-of-bounds access or infinite loops.

Signed-off-by: default avatarTim Lin <tim2.lin@ite.corp-partner.google.com>
parent db0f20c6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment