aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorBjorn Andersson <[email protected]>2017-08-23 18:04:04 -0700
committerRob Herring <[email protected]>2017-08-24 11:52:38 -0500
commit08ab58d9de3eb8498ae0585001d0975e46217a39 (patch)
tree1c2ce257d07973ec01dc87aa4764f1a0cce18bf0 /tools/perf/scripts/python/export-to-postgresql.py
parent3cffda2575168054c6c7871fd076f415b49bb547 (diff)
of/device: Prevent buffer overflow in of_device_modalias()
As of_device_get_modalias() returns the number of bytes that would have been written to the target string, regardless of how much did fit in the buffer, it's possible that the returned index points beyond the buffer passed to of_device_modalias() - causing memory beyond the buffer to be null terminated. Fixes: 0634c2958927 ("of: Add function for generating a DT modalias with a newline") Cc: Rob Herring <[email protected]> Cc: [email protected] Signed-off-by: Bjorn Andersson <[email protected]> Signed-off-by: Rob Herring <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions