summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSkylar Chang <chiaweic@codeaurora.org>2017-03-01 16:08:27 -0800
committerSkylar Chang <chiaweic@codeaurora.org>2017-03-03 13:36:30 -0800
commit8c08d0e49858ed8fbfbd2e598d04f19e33729c02 (patch)
tree4a1295ce87610ebc717b22f3814a2426cf363aa7 /tools/perf/scripts/python
parent660ab6c3a2409a5de73575976a321b8ae7a4889b (diff)
msm: IPA: add the check on intf query
The ipa_ioc_query_intf_rx_props structure comes from the ioctl handler, and it is verified that the size of rx buffer does not exceed the IPA_NUM_PROPS_MAX elements. It is also verified that the "entry->rx" buffer does not exceed IPA_NUM_PROPS_MAX when "entry" is allocated. However, the sizes of the buffer "rx->rx" and the buffer "entry->rx" are not guaranteed to be the same and will lead memory corruption issue. The fix is to add the check before memcpy. Change-Id: Idf5c2d32f47c1a1cffeaa5607193855188893ddb Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions