aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorBjorn Andersson <[email protected]>2017-02-15 14:00:41 -0800
committerBjorn Andersson <[email protected]>2017-02-22 02:07:13 -0800
commit01625cc5e65f420dbea57f7de6b9552a0f807a84 (patch)
treedb133dd5046653862d136263a1238a185278d84a /tools/perf/util/trace-event-scripting.c
parent231c8dfd1a9ff530869e1327ba4168dbe592f3f9 (diff)
remoteproc: qcom: mdt_loader: Use signed type for offset
In the transition from using rproc_da_to_va(), the type of the load offset became unsigned. This causes the subsequent check to let negative values less than p_memsz + mem_size through and we write outside of the buffer. Change the type back to a signed value to catch this. Fixes: 7f0dd07a9b29 ("remoteproc: qcom: mdt_loader: Refactor MDT loader") Fixes: e7fd25226295 ("remoteproc: qcom: q6v5: Decouple driver from MDT loader") Reported-by: Dan Carpenter <[email protected]> Reported-by: Stanimir Varbanov <[email protected]> Acked-by: Andy Gross <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions