diff options
| author | Chris Lew <[email protected]> | 2023-08-01 06:47:12 +0000 |
|---|---|---|
| committer | Bjorn Andersson <[email protected]> | 2023-08-03 15:08:07 +0000 |
| commit | 8d207400fd6b79c92aeb2f33bb79f62dff904ea2 (patch) | |
| tree | dfbe470dae9cf5122e023efa232e5c8c5884ce5a /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | soc: qcom: smem: Fix incompatible types in comparison (diff) | |
| download | kernel-8d207400fd6b79c92aeb2f33bb79f62dff904ea2.tar.gz kernel-8d207400fd6b79c92aeb2f33bb79f62dff904ea2.zip | |
soc: qcom: qmi_encdec: Restrict string length in decode
The QMI TLV value for strings in a lot of qmi element info structures
account for null terminated strings with MAX_LEN + 1. If a string is
actually MAX_LEN + 1 length, this will cause an out of bounds access
when the NULL character is appended in decoding.
Fixes: 9b8a11e82615 ("soc: qcom: Introduce QMI encoder/decoder")
Cc: [email protected]
Signed-off-by: Chris Lew <[email protected]>
Signed-off-by: Praveenkumar I <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions
