linux/drivers/firmware/arm_scmi
Sudeep Holla ca64b719a1 firmware: arm_scmi: use strlcpy to ensure NULL-terminated strings
Replace all the memcpy() for copying name strings from the firmware with
strlcpy() to make sure we are bounded by the source buffer size and we
also always have NULL-terminated strings.

This is needed to avoid out of bounds accesses if the firmware returns
a non-terminated string.

Reported-by: Olof Johansson <olof@lixom.net>
Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
2018-09-10 10:08:44 +01:00
..
base.c firmware: arm_scmi: use strlcpy to ensure NULL-terminated strings 2018-09-10 10:08:44 +01:00
bus.c firmware: arm_scmi: improve exit paths and code readability 2018-05-10 10:51:59 +01:00
clock.c firmware: arm_scmi: use strlcpy to ensure NULL-terminated strings 2018-09-10 10:08:44 +01:00
common.h firmware: arm_scmi: drop unused con_priv structure member 2018-05-10 10:51:58 +01:00
driver.c ARM: SoC driver updates 2018-06-11 18:15:22 -07:00
Makefile firmware: arm_scmi: add device power domain support using genpd 2018-02-28 16:37:57 +00:00
perf.c firmware: arm_scmi: use strlcpy to ensure NULL-terminated strings 2018-09-10 10:08:44 +01:00
power.c firmware: arm_scmi: use strlcpy to ensure NULL-terminated strings 2018-09-10 10:08:44 +01:00
scmi_pm_domain.c firmware: arm_scmi: add device power domain support using genpd 2018-02-28 16:37:57 +00:00
sensors.c firmware: arm_scmi: use strlcpy to ensure NULL-terminated strings 2018-09-10 10:08:44 +01:00