aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/Context.c
diff options
context:
space:
mode:
authorDenis Efremov <[email protected]>2019-09-30 23:31:47 +0300
committerKalle Valo <[email protected]>2019-10-02 20:21:28 +0300
commit315cee426f87658a6799815845788fde965ddaad (patch)
treec3d221f534ff425234f239fb5d6f64cf7dc271ca /tools/perf/scripts/python/Perf-Trace-Util/Context.c
parent1382993f882b6b96c99837fd8b705300a208de3a (diff)
ar5523: check NULL before memcpy() in ar5523_cmd()
memcpy() call with "idata == NULL && ilen == 0" results in undefined behavior in ar5523_cmd(). For example, NULL is passed in callchain "ar5523_stat_work() -> ar5523_cmd_write() -> ar5523_cmd()". This patch adds ilen check before memcpy() call in ar5523_cmd() to prevent an undefined behavior. Cc: Pontus Fuchs <[email protected]> Cc: Kalle Valo <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: David Laight <[email protected]> Cc: [email protected] Signed-off-by: Denis Efremov <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/Context.c')
0 files changed, 0 insertions, 0 deletions