summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJun Yan <jerrysteve1101@gmail.com>2026-06-17 23:02:47 +0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2026-06-22 23:19:40 -0700
commita9a7baeb3ab7a09eca0696c575b7a3f1058868d6 (patch)
tree1e16fbcc932c562e7490316039029471c7d17f5c /tools/perf/scripts/python
parent6ddb3d0c90d9423ed84b4cd3213d73d54ad386ba (diff)
Input: cap11xx - guard unsupported DT properties before parsing
Check of_property_present() before parsing microchip,calib-sensitivity and microchip,signal-guard, so that models which do not support these properties (e.g. CAP1114) skip the parsing entirely. This prevents a potential buffer overflow in calib_sensitivities[8] and signal_guard_inputs_mask when a model with more than 8 channels (CAP1114 has 14) would otherwise call of_property_read_u32_array() with num_channels as the element count. Signed-off-by: Jun Yan <jerrysteve1101@gmail.com> Link: https://patch.msgid.link/20260617150318.753148-9-jerrysteve1101@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions