Skip to content
Commit 5dc2ab4f authored by Andrew Boie's avatar Andrew Boie Committed by Anas Nashif
Browse files

ti_adc108s102: validate num_entries



num_entries can be as large as 255. However, based on the
_ti_adc108s102 implementation, num_entries must be less than
ADC108S102_CMD_BUFFER_SIZE or the cmd_buffer[] and
sampling_buffer[] arrays in the data struct could overflow.

Signed-off-by: default avatarAndrew Boie <andrew.p.boie@intel.com>
parent 97ccf99b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment