summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sctop.py
diff options
context:
space:
mode:
authorgaolez <gaolez@codeaurora.org>2018-07-06 13:35:32 +0800
committergaolez <gaolez@codeaurora.org>2018-07-06 13:35:32 +0800
commitc6b9f11a0a7dbacb9fad659d7ebe7cb64f25d1c4 (patch)
treeb39387faab44802d3e3598851538cda823f45b77 /tools/perf/scripts/python/sctop.py
parentdcff449ac780849c2eae8704f153c1c7671def54 (diff)
qcacld-2.0: Fix OOB write in wma_unified_debug_print_event_handler
propagation from qcacld-3.0 to qcacld-2.0 The routine wma_unified_debug_print_event_handler logs the data from debug print event handler. The param event data from firmware is copied to a destination buffer .If the maximum size of the data exceeds or equals BIG_ENDIAN_MAX_DEBUG_BUF for big endian hosts then possible OOB write will occur in wma_unified_debug_print_event_handler. For other hosts, OOB read could occur if datalen exceeds maximum firmware message size WMI_SVC_MAX_SIZE. Add check to validate datalen doesnot exceed the maximum firmware msg size WMI_SVC_MAX_SIZE. Return failure if it exceeds. Add check to ensure datalen doesnot exceed or equal the maximum buffer length value for big endian hosts BIG_ENDIAN_MAX_DEBUG_BUF. Add null termination at the end of the data recieved from the firmware. Change-Id: Ibb662cb8e17ef8be8b7591308c422a78b71e331a CRs-Fixed: 2273985
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions